0

我无法在 Elastic Cloud 的 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"
        }
    }
4

0 回答 0