課程
/后端開發
/Java
/Springboot + ElasticSearch 構建博客檢索系統
老師,能提供logstash的mysql.cnf和mysql里的測試數據嗎?
2019-11-13
源自:Springboot + ElasticSearch 構建博客檢索系統 4-2
正在回答
我的數據庫數據沒進來
_小北
input{
? ? jdbc{
? ? ? ? jdbc_driver_library => "/Volumes/Data/logstash-6.3.2/mysql-connector-java-5.1.37.jar"
? ? ? ? jdbc_driver_class => "com.mysql.jdbc.Driver"
? ? ? ? jdbc_connection_string => "jdbc:mysql://127.0.0.1:3306/blog"
? ? ? ? jdbc_user => "root"
? ? ? ? jdbc_password => "123456"
? ? ? ? schedule => "* * * * *"
? ? ? ? clean_run => true
? ? ? ? statement => "select * FROM t_blog WHERE update_time > :sql_last_value AND update_time < NOW() ORDER BY update_time desc"
? ? }
}
output {
? ? elasticsearch{
? ? ? ? hosts => ["127.0.0.1:9200"]
? ? ? ? index => "blog"
? ? ? ? document_id => "%{id}"
input{????jdbc{????????jdbc_driver_library?=>?"/Volumes/Data/logstash-6.3.2/mysql-connector-java-5.1.37.jar"????????jdbc_driver_class?=>?"com.mysql.jdbc.Driver"????????jdbc_connection_string?=>?"jdbc:mysql://127.0.0.1:3306/blog"????????jdbc_user?=>?"root"????????jdbc_password?=>?"123456"????????schedule?=>?"*?*?*?*?*"????????clean_run?=>?true????????statement?=>?"select?*?FROM?t_blog?WHERE?update_time?>?:sql_last_value?AND?update_time?<?NOW()?ORDER?BY?update_time?desc"????}}output?{????elasticsearch{????????hosts?=>?["127.0.0.1:9200"]????????index?=>?"blog"????????document_id?=>?"%{id}"????}}
舉報
Springboot + ElasticSearch 構建個人博客檢索系統
4 回答測試ES獲取數據獲取不到
1 回答老師可以提供下插入測試數據的sql嗎
1 回答全量導入oracle的數據會遺漏數據
2 回答mysql的源數據
1 回答數據從哪里獲取
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-11-28
我的數據庫數據沒進來
2019-11-19
input{
? ? jdbc{
? ? ? ? jdbc_driver_library => "/Volumes/Data/logstash-6.3.2/mysql-connector-java-5.1.37.jar"
? ? ? ? jdbc_driver_class => "com.mysql.jdbc.Driver"
? ? ? ? jdbc_connection_string => "jdbc:mysql://127.0.0.1:3306/blog"
? ? ? ? jdbc_user => "root"
? ? ? ? jdbc_password => "123456"
? ? ? ? schedule => "* * * * *"
? ? ? ? clean_run => true
? ? ? ? statement => "select * FROM t_blog WHERE update_time > :sql_last_value AND update_time < NOW() ORDER BY update_time desc"
? ? }
}
output {
? ? elasticsearch{
? ? ? ? hosts => ["127.0.0.1:9200"]
? ? ? ? index => "blog"
? ? ? ? document_id => "%{id}"
? ? }
}
2019-11-19