Logstash error

I am getting below error in logstash log

Apr 18 12:24:19 pldevelk03 logstash[12013]: ERROR: Failed to parse YAML file "/etc/logstash/logstash.yml". Please confirm if the YAML structure is valid (e.g. look for
Apr 18 12:24:19 pldevelk03 logstash[12013]: [FATAL] 2025-04-18 12:24:19.828 [main] Logstash - Logstash stopped processing because of an error: (SystemExit) exit

I checked logstash.yml but not able to find any error .Please help finding me error in yaml file

sharing the file might help us help you?

You can also try tools like

You can use :

  • LS parameter -t or --config.test_and_exit, it's the same, to test .conf including and logstash.yml i.e.
    bin/logstash -f /etc/logstash/conf.d/file.cont -t
    Full list of LS params you can find here.
  • tool like YAML Lint
  • copy here, remove sensitive data

this is solved now ,thanks

1 Like