Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs not being forwarded to logstash after re-connect #9

Open
sheshum opened this issue Apr 26, 2021 · 1 comment
Open

Logs not being forwarded to logstash after re-connect #9

sheshum opened this issue Apr 26, 2021 · 1 comment

Comments

@sheshum
Copy link

sheshum commented Apr 26, 2021

Prerequisites

Description

If connection to logstash service is lost and re-established, logs are not being
forwarded to logstash service anymore.

Also, "retries" property is not incremented while re-connecting so max connection retries is
never reached.

my logstash transport configuration:
{
mode: 'tcp',
host: 'myhostIP',
port: 5044,
maxConnectRetries: 500,
timeoutConnectRetries: 60000
}

Steps to Reproduce

  1. Set Logstash transport to connect to you logstash service
  2. Make sure that your app logs are being forwarded to logstash and are visible in kibana
  3. Stop logstash service and start it again or reboot VM that is hosting the service.
  4. Check if messages arrive to logstash/elasticsearch after restart of logstash service.

Expected behavior:
Logs should be forwarded to logstash after connection is broken and re-established.

Actual behavior:
Logs are not visible in kibana and after debugin the lib it seems that transport is not used by winston logger anymore.
Even though the logstash transport is connected to logstash service.

Reproduces how often:
Reproduces every time, 10/10.

Versions

npm: 6.13.4
nodejs: v12.14.1
"winston": "3.3.3",
"winston-daily-rotate-file": "4.5.0",
"winston3-logstash-transport": "1.0.1-c",

Additional Information

my logstash transport configuration:
{
mode: "tcp",
host: 'myhostIP',
port: 5044,
maxConnectRetries: 500,
timeoutConnectRetries: 60000,
}

@dhemiwc
Copy link

dhemiwc commented Jun 12, 2024

same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants