deviantony / docker-elk

The Elastic stack (ELK) powered by Docker and Compose.
MIT License
17.06k stars 6.74k forks source link

How to send a log to logstash #985

Closed martinGM05 closed 3 months ago

martinGM05 commented 3 months ago

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

antoineco commented 3 months ago

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