Validating .conf file

Hello,

We wrote our first configuration file for a type of log and we would like to test out our code before moving along further. What is the procedure to test it out?

Do I run logstash, and then run the a GET command in ElasticSearch / Marvel? If so, what is the exact command?

Else, is there a 3rd party tool that we can use to test out part of our code?

Regards,

I'd grab some representative lines from a real log file and feed them to Logstash via a stdin input and the actual filters you're planning on using. Use a stdout { codec => rubydebug } output to see if you get what you expect.

I'm working on a tool to write tests for filter configurations but it's at least weeks away.

1 Like