Error message:
Expected one of [ \\t\\r\\n], \”#\”, \”input\”, \”filter\”, \”output\” at line 1, column 1 (byte 1)
Logstash run command:./logstash – f config MySQL/
SQL configuration file:/home/ES/logstash/bin/config MySQL/mysql-1.conf
SQL statement file:/home/ES/logstash/bin/config MySQL/tk.sql
JDBC configuration uses the configuration: statement_ filepath => “/home/es/logstash/bin/config-mysql/tk.sql”
terms of settlement:
Put tk.sql in another file, for example:/home/ES/logstash/config/tk.sql
As long as it is not in the same directory as the SQL configuration file, it is OK