1.參考文檔
https://doc.yonyoucloud.com/doc/logstash-best-practice-cn/index.html
2. 參數與配置
-e: 執行命令行中配置的參數啓動實例 ;./bin/logstash -e ‘input {stdin {}} output {stdout {}}’ -f: 通過配置文件啓動實例; ./bin/logstash -f config/logstash.conf -t: 測試配置文件正確性; ./bin/logstash -f config/logstash.conf -t -l: 啓動實例後,指定打印日誌文件目錄; ./bin/logstash-f config/logstash.conf -l logs/logstash.log -w: 指定filter 線程數量,默認是5; ./bin/logstash-f config/logstash.conf -w 8