我无法在弹性云的filebeats中连接mysql。我没有错。
有人能指导我怎么做吗?
我正在使用的配置
input {
jdbc {
jdbc_driver_library => "mysql-connector-java-5.1.46-bin.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://connectionstring"
jdbc_user => "username"
jdbc_password => "password"
schedule => "* * * * *"
statement => "SELECT * from tablename"
}
}
output {
stdout { codec => json_lines }
elasticsearch {
"hosts" => "hostId"
"index" => "index"
"document_type" => "data"
}
}
暂无答案!
目前还没有任何答案,快来回答吧!