So, I have a conf file for checking a mysql DB and adding new records. It works great when I run it via the terminal (bin/logstash -f <file.conf>) but when I move the .conf in the conf.d folder, it never runs.
I check the logs, it says the pipeline started, but never actually does any requests.
my config:
input {
jdbc {
jdbc_connection_string => "jdbc:mysql://mydb.com/dbname"
jdbc_user => "user"
jdbc_password => "pwd"
jdbc_driver_library => "/root/mysql-connector-java-8.0.18/mysql-connector-java-8.0.18.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
# our query
statement => "SELECT * FROM table WHERE id > :sql_last_value"
use_column_value => true
tracking_column => id
jdbc_paging_enabled => "true"
jdbc_page_size => "5000"
schedule => "* * * * *"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "db-%{+yyyy-MM-dd}"
}
}