Hi
I did research in this forum and documentation but couldn't find any solution so posting here for help.
OS : windows 10
Filebeat : 6.4.2 sending 2 CSV files to Logstash
File name London.csv , Australia.csv
Logstash config has following for output.
output {
elasticsearch {
if ([source] =~ \London.csv)
{
hosts => "http://myESSErver:port"
manage_template => true
index => "London-%{+YYYY.MM.dd}"
}
if ([source] =~ \Australia.csv)
{
hosts => "http://myESSErver:port"
manage_template => true
index => "Australia-%{+YYYY.MM.dd}"
}
}
When i start my logstash I get error like
[2018-11-07T13:56:16,779][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, => at line 15, column 7 (byte 2230) after output {\n elasticsearch {\n if "
So am i doing something which i m not supposed to ?