statement里面怎么写都不能正确的判定为正确得sql
logstash得output中怎么引用数组类型,用双引号包含着以智慧被转为字符串
jdbc{
driver_jar_path => "D:\elk\logstash-7.4.2\bin\mysql-connector-java-8.0.18.jar"
driver_class => "com.mysql.jdbc.Driver"
connection_string => "jdbc:mysql://127.0.0.1:3306/ddt2?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true"
username => "root"
password => "123456"
statement => "${[@metadata][statement]}"
}
logstash得output中怎么引用数组类型,用双引号包含着以智慧被转为字符串
jdbc{
driver_jar_path => "D:\elk\logstash-7.4.2\bin\mysql-connector-java-8.0.18.jar"
driver_class => "com.mysql.jdbc.Driver"
connection_string => "jdbc:mysql://127.0.0.1:3306/ddt2?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true"
username => "root"
password => "123456"
statement => "${[@metadata][statement]}"
}
0 个回复