Answer the question
In order to leave comments, you need to log in
How to check Logstash from console?
I need help!
I need my application to send logs to logstash. As Nikita said, I deployed the logstash in the docker.
I sent him a config:
input {
tcp {
port => 9000
codec => json_lines
}
}
output {
stdout { codec => json }
}
docker run -it -v /configs/logstash/:/usr/share/logstash/pipeline/ -p 9000:9000 5d448d68a8ee
Answer the question
In order to leave comments, you need to log in
You have a codec json_lines
, so send JSON of the form { "key": "value" }
( examples of the jsonl format).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question