How to find logstash line number if we have multiple configuration files

Hi,

We have multiple configuration files in /etc/logstash/conf.d .How to find the line number as it is throwing following error at some line number?

Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, input, filter, output at line 2908, column 1

Regards,
Vivek

cat /etc/logstash/conf.d/* > /tmp/concatenated_config.txt

Then edit the result and go to line 2908.

Thank you Badger

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