logstash

logstash文檔地址:

https://www.elastic.co/guide/en/logstash/index.html

logstash 命令

接收輸入並輸出

logstash -e 'input { stdin { } } output { stdout {} }'

其它命令

--node.name NAME
-f, --path.config CONFIG_PATH
-e, --config.string CONFIG_STRING
--config.debug
--log.level LEVEL
-t, --config.test_and_exit
-r, --config.reload.automatic
-V, --version

logstash

檢查配置是否有誤

logstash -f mysql.conf --config.test_and_exit

automatic config reloading

logstash -f mysql.conf --config.reload.automatic

logstash 支持很多中輸入源
這裏使用jdbc作爲測試
logstash

logstash input

Drivers

數據庫驅動的位置

Scheduling

檢測輸入源的週期
0 6 * 每天早上6點執行

State

執行的sql
sql_last_value參數會記錄最後一次的更新時間

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章