Answers for "logstash input file example for configuration to connect database"

SQL
0

logtash mysql cofiguration file

input {
  jdbc {
    jdbc_driver_library => "mysql-connector-java-5.1.36-bin.jar"
    jdbc_driver_class => "com.mysql.jdbc.Driver"
    jdbc_connection_string => "jdbc:mysql://localhost:3306/mydb"
    jdbc_user => "mysql"
    parameters => { "favorite_artist" => "Beethoven" }
    schedule => "* * * * *"
    statement => "SELECT * from songs where artist = :favorite_artist"
  }
}
Posted by: Guest on September-09-2020

Code answers related to "logstash input file example for configuration to connect database"

Code answers related to "SQL"

Browse Popular Code Answers by Language