Testing filebeat

Hi,
I'd like to know how to test a filebeat configuration. I have filebeat installed locally, so I can do filebeat test config -c $MY_FILE. That is good to test if the configuration is semantically correct.
However, I'd like to test that the configuration rules are as I want. Something like:

filebeat test match -c $MY_FILE -i FILE_TO_TEST and output could be all lines that have passed, for example.
Alternatively, something like:
filebeat test match -c $MY_FILE -i FILE_TO_TEST -i $MY_STRING

Thanks

You could probably do something with filebeat stdin input, but you would need to develop it as the command doesn't have this feature.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.