Hello, It's my logstash config file
> input {
jdbc { jdbc_connection_string => "jdbc:mysql://localhost:3306/ejabberd" jdbc_user => "ejabber" jdbc_password => "password" jdbc_driver_library => "mysql-connector-java-5.1.39-bin.jar" jdbc_driver_class => "com.mysql.jdbc.Driver" statement => "SELECT * FROM ejabberd.archive" } } output { # stdout { codec => json_lines } elasticsearch { index => "messages" hosts => ["localhost:9200"] } }
Im getting data from mysql, but when im put new record to db, elasticsearch can't see my newest records. Data are update only then im' restart logstash. How can i get live updated records from logstash? Thank you