Logstash does not send logs into the file

Hi, from filebeat, i send log to logstash, if I listen in tcpdump I see the logs arrive but Logstash don't send Log tothe file i specified in the pipelines, this is the Pipelines :

input {
beats {
port => 5044
}
}

output {
file {
path => "/tmp/filebeat/filebeat.txt"
codec => line { format => "custom format: %{message}"}
}
}

What's the problem, i don't see anyone file under /tmp/filebeat.
Thanks

Have you tried to just output to the screen to see what you get?

output {
  stdout {}
}

If this works then I'd check permissions on your /tmp/filebeat/ folder.

i don't see log on the journalctl

Are you running this pipeline via command line or within Kibana?

What do you get when you try this?

output {
  file {
    path => "/tmp/filebeat/filebeat.txt"
  }
}

i found the issues

Thanks for your help :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.