課程
/后端開發(fā)
/Java
/Springboot + ElasticSearch 構(gòu)建博客檢索系統(tǒng)
徐老師視頻中講解提到Logstash對應(yīng)的conf目錄中的mysql.conf文件,麻煩提供下相應(yīng)的文件下載路徑或提供該文件的完整內(nèi)容
2021-07-16
源自:Springboot + ElasticSearch 構(gòu)建博客檢索系統(tǒng) 4-2
正在回答
把你下載的.conf修改成mysql.conf
對啊 為啥下載了后沒有這個文件呢
input {
jdbc {
jdbc_driver_library => "D:\\data_of_programming\\L2R\\ElasticSearch\\logstash-6.3.2\\mysql-connector-java-5.1.44.jar"
? ? ? ? jdbc_driver_class => "com.mysql.jdbc.Driver"
? ? ? ? jdbc_connection_string => "jdbc:mysql://localhost:3306/blog?serverTimezone=UTC&characterEncoding=utf8"
? ? ? ? jdbc_user => "root"
? ? ? ? jdbc_password => "root"
? ? ? ? # 定時任務(wù),默認(rèn)一分鐘,"* * * * *"代表設(shè)置為無延遲
? ? ? ? schedule => "* * * * *"
? ? ? ? # 清空上一次sql_last_value記錄
? ? ? ? clean_run => true
? ? ? ? statement => "SELECT * FROM t_blog"
}
output {
? ? elasticsearch {
? ? ? ? hosts => ["127.0.0.1:9200"]
? ? ? ? index => "blog"
? ? ? ? document_id => "%{id}"
? ? }
舉報
Springboot + ElasticSearch 構(gòu)建個人博客檢索系統(tǒng)
1 回答下載的logstash 的config目錄下沒有mysql的配置文件呀
1 回答logstash -f ../config/mysql.conf報錯異常怎么解決
3 回答對應(yīng)版本的 ik 配置好 無法啟動 elasticsearc
1 回答logstash怎么和springboot項目結(jié)合一起用的
1 回答我的 logstash 報警告不執(zhí)行
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2022-05-28
2022-04-16
對啊 為啥下載了后沒有這個文件呢
2021-08-11
input {
jdbc {
jdbc_driver_library => "D:\\data_of_programming\\L2R\\ElasticSearch\\logstash-6.3.2\\mysql-connector-java-5.1.44.jar"
? ? ? ? jdbc_driver_class => "com.mysql.jdbc.Driver"
? ? ? ? jdbc_connection_string => "jdbc:mysql://localhost:3306/blog?serverTimezone=UTC&characterEncoding=utf8"
? ? ? ? jdbc_user => "root"
? ? ? ? jdbc_password => "root"
? ? ? ? # 定時任務(wù),默認(rèn)一分鐘,"* * * * *"代表設(shè)置為無延遲
? ? ? ? schedule => "* * * * *"
? ? ? ? # 清空上一次sql_last_value記錄
? ? ? ? clean_run => true
? ? ? ? statement => "SELECT * FROM t_blog"
}
}
output {
? ? elasticsearch {
? ? ? ? hosts => ["127.0.0.1:9200"]
? ? ? ? index => "blog"
? ? ? ? document_id => "%{id}"
? ? }
}