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

后端 未结 2 1080
盖世英雄少女心
盖世英雄少女心 2021-02-15 04:00

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条回答
  •  猫巷女王i
    2021-02-15 04:49

    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

提交回复
热议问题