Logstash is failing with syntax error

Your syntax is OK. Can you check is there another .conf in the same directory?
Are you running in the service or process mode?
You can test the .conf fiel from the cmd line with option -t to validate .conf file.