how to implement the unit or integration tests for logstash configuration?

后端 未结 2 1635
悲哀的现实
悲哀的现实 2021-02-15 04:01

With the logstash 1.2.1 one can now have conditional to do various stuff. Even the earlier version\'s conf file can get complicated if one is managing many log files and impleme

2条回答
  •  佛祖请我去吃肉
    2021-02-15 04:43

    since logstash has been upgraded and now the command will be something like (give the folder)

    /opt/logstash/bin/logstash agent --configtest  -f /etc/logstash/logstash-indexer/conf.d
    

    If you see some warning, but the error message is mixed together, and you didn't know which one have issue. You have to check its file one by one

提交回复
热议问题