Closed pol closed 6 years ago
As a note, I changed "myprogram" to "blarg" because I wanted it to print out an error.
What's in /opt/logstash/logstash.conf?
Here it is (with some of the sensitive matchers removed): https://gist.github.com/pol/08a9b6521c08d91589eb3ae8c0412623
It's not very exotic.
You can't have any inputs (or outputs) in the configuration file you feed to LFV since they'll cause Logstash to not shut down when all test events have been processed. Just split your configuration in two or more files and pass the one containing filters to LFV. See #10.
Thanks for the quick response, I will give this a try.
This is precisely what was wrong. Perhaps consider adding documentation that you need to remove any inputs and/or outputs if they are currently configured. Or even splitting the inputs, filters, and outputs into separate files for ease of testing.
Logstash Version 2.1.1 Ubuntu 16.04, x86_64 Using the downloaded amd64 binary
Using this as my test.json:
First attempt at running printed an "address in use" error, so I stopped logstash. Now, running with "loglevel=DEBUG", I get:
Here it just hangs forever. I am running as root, so it shouldn't be a permissions issue. What am I doing wrong?