This is the error getting when i tried to test my logstash config in server

root@logserver:~# tail -f /var/log/logstash/logstash.log
{:timestamp=>"2017-03-24T06:57:54.132000-0400", :message=>"SIGTERM received. Shutting down the pipeline.", :level=>:warn}
{:timestamp=>"2017-03-24T06:58:33.872000-0400", :message=>"Error: Expected one of #, if, ", ', } at line 49, column 2 (byte 1331) after filter\n{\n ", :level=>:error}
{:timestamp=>"2017-03-25T01:41:24.836000-0400", :message=>"Error: Expected one of #, if, ", ', } at line 49, column 2 (byte 1331) after filter\n{\n ", :level=>:error}
{:timestamp=>"2017-03-25T02:10:05.535000-0400", :message=>"Error: Expected one of #, if, ", ', } at line 49, column 2 (byte 1331) after filter\n{\n ", :level=>:error}
{:timestamp=>"2017-03-25T02:10:31.130000-0400", :message=>"Error: Expected one of #, if, ", ', } at line 49, column 2 (byte 1331) after filter\n{\n ", :level=>:error}
{:timestamp=>"2017-03-25T02:26:32.499000-0400", :message=>"Error: Expected one of #, if, ", ', } at line 49, column 2 (byte 1331) after filter\n{\n ", :level=>:error}
{:timestamp=>"2017-03-25T03:06:19.081000-0400", :message=>"Error: Expected one of #, if, ", ', } at line 49, column 2 (byte 1331) after filter\n{\n ", :level=>:error}
{:timestamp=>"2017-03-25T03:07:11.035000-0400", :message=>"Error: Expected one of #, if, ", ', } at line 49, column 2 (byte 1331) after filter\n{\n ", :level=>:error}

You probably need to show your configuration for anyone to be able to help with this.

Can you please post your config file? The error is in line 49.

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