发布网友 发布时间:2022-04-07 15:08
共5个回答
懂视网 时间:2022-04-07 19:29
https://www.elastic.co/cn/downloads/logstash
2.配置
input {
stdin {
}
jdbc {
type => "tb_role"
jdbc_connection_string => "jdbc:mysql://192.168.3.167:3306/zwls?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true"
jdbc_user => "root"
jdbc_password => "123456"
record_last_run => "true"
use_column_value => "true"
tracking_column => "id"
clean_run => "false"
jdbc_driver_library => "D:softsoftinstallapache-maven-3.3.9
espmysqlmysql-connector-java8.0.16mysql-connector-java-8.0.16.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_paging_enabled => "true"
jdbc_page_size => "500"
statement => "select * from tb_role"
schedule => "* * * * *"
}
jdbc {
type => "tb_order"
jdbc_connection_string => "jdbc:mysql://192.168.3.167:3306/zwls?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true"
jdbc_user => "root"
jdbc_password => "123456"
record_last_run => "true"
use_column_value => "true"
tracking_column => "order_id"
clean_run => "false"
jdbc_driver_library => "D:softsoftinstallapache-maven-3.3.9
espmysqlmysql-connector-java8.0.16mysql-connector-java-8.0.16.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_paging_enabled => "true"
jdbc_page_size => "500"
statement => "select * from tb_order"
schedule => "* * * * *"
}
}
output {
if [type]=="tb_order" {
elasticsearch {
#ESIP地址与端口
hosts => "localhost:9200"
#ES索引名称(自己定义的)
index => "order"
document_id => "%{order_id}"
}
}
if [type]=="tb_role" {
elasticsearch {
#ESIP地址与端口
hosts => "localhost:9200"
#ES索引名称(自己定义的)
index => "role"
document_id => "%{id}"
}
}
}
3.执行命令
logstash -f 配置文件地址
logstash通过mysql数据库多张表
标签:ssl host cte from enc page sea 数据库 arch
热心网友 时间:2022-04-07 16:37
SQL Server 的每个数据库最多可存储 20 亿个表,每个表可以有 1024 列。热心网友 时间:2022-04-07 17:55
要看你的硬盘有多大了,数量上没有*,但是容量上有你硬盘的*,你给的有够大,就可以建了热心网友 时间:2022-04-07 19:30
22热心网友 时间:2022-04-07 21:21
这个就不好说了,人家有大小,这要看你表里面的内容多少,如果内容多了,相应的表就少了