docker-elk icon indicating copy to clipboard operation
docker-elk copied to clipboard

How to send a log to logstash

Open martinGM05 opened this issue 1 year ago • 1 comments

Hello everyone, I have a question about the logstash, I don't know what configuration I need set in my client to send logs to get it in logstash.

I have this Server in Express image

I have this configuration image

When I go into the port which Docker say is the logstashs I can see this. image

martinGM05 avatar May 16 '24 20:05 martinGM05

I'm not familiar with winston, but the UDP input isn't enabled by default:

https://github.com/deviantony/docker-elk/blob/4df8c50ba8a1891c2cb4cd502ffc11868aec8cf1/logstash/pipeline/logstash.conf#L6-L8

In case your client doesn't support TCP, your can enable the UDP input inside the pipeline configuration: https://www.elastic.co/guide/en/logstash-versioned-plugins/current/v3.5.0-plugins-inputs-udp.html

antoineco avatar May 16 '24 22:05 antoineco