Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionality for running on Windows, testing metadata and allowing new command line arguments #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

domule
Copy link

@domule domule commented Mar 13, 2019

Hi!

What do you think about these enhancements?

I found your Python script incredibly useful. I was relieved to find it after getting frustrated with not being able to run logstash-filter-verifier on Windows. Since Python is a lot more accessible to me than Golang I then also made a few more changes, in particular being able to test metadata.

There are also a few other ideas that I have and would like to implement, like being able to use regexes in addition to literal string comparisons in the test case definitions. Would be great to hear your feedback on this.

Dom

- Now adds a copy of the [@metadata] field to the output called __[@metadata]. This allows testing metadata fields.
- Now also produces an output file in Awesome Print format using the rubydebug codec. This is just another format in addition to the JSON file that's already produced and it's not actually used by logstash-filter-test, but it can be useful for debugging as it contains [@metadata] field and is formatted in a more human-readable way.
…of "yes" and "no".

- Now accepts the new argument --logstash to set the location of the Logstash executable.
@domule domule changed the title Added functionality for running on Windows, testing metdata and allowing new command line arguments Added functionality for running on Windows, testing metadata and allowing new command line arguments Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant