You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The log must appear in elasticsearch and the node process must end.
Actual behavior:
The node process never ends. The log doesn't appear in ES.
The process hangs. If I manually finalize the process using ctrl+C, then it stops and the log appears in ES.
This issue may be quite old, but I ran into the same problem.
Looking at the code and thanks to this answer on Stackoverflow, I change the line 133 in file index.js to this.socket.write(message + '\n', undefined, callback);
and this fixed the problem for TCP.
Prerequisites
Description
I'm using the same example at the readme. It works with UDP. Using UDP it hangs.
Steps to Reproduce
Expected behavior:
The log must appear in elasticsearch and the node process must end.
Actual behavior:
The node process never ends. The log doesn't appear in ES.
The process hangs. If I manually finalize the process using ctrl+C, then it stops and the log appears in ES.
Reproduces how often:
Always
Versions
-- winston 3.3.3
-- winston3-logstash-transport 1.2.3
Additional Information
If I run logstash using UDP and winston using mode: 'udp' it works. But I want TCP mode.
The text was updated successfully, but these errors were encountered: