課程
/后端開發(fā)
/Java
/Springboot + ElasticSearch 構(gòu)建博客檢索系統(tǒng)
老師,能提供logstash的mysql.cnf和mysql里的測(cè)試數(shù)據(jù)嗎?
2019-11-13
源自:Springboot + ElasticSearch 構(gòu)建博客檢索系統(tǒng) 4-2
正在回答
我的數(shù)據(jù)庫數(shù)據(jù)沒進(jìn)來
_小北
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}"????}}
舉報(bào)
Springboot + ElasticSearch 構(gòu)建個(gè)人博客檢索系統(tǒng)
4 回答測(cè)試ES獲取數(shù)據(jù)獲取不到
1 回答老師可以提供下插入測(cè)試數(shù)據(jù)的sql嗎
1 回答全量導(dǎo)入oracle的數(shù)據(jù)會(huì)遺漏數(shù)據(jù)
2 回答mysql的源數(shù)據(jù)
1 回答數(shù)據(jù)從哪里獲取
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2019-11-28
我的數(shù)據(jù)庫數(shù)據(jù)沒進(jìn)來
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