https://github.com/walles/logstashtester
Test your grok patterns, even multi-line ones
https://github.com/walles/logstashtester
Last synced: 11 months ago
JSON representation
Test your grok patterns, even multi-line ones
- Host: GitHub
- URL: https://github.com/walles/logstashtester
- Owner: walles
- Created: 2017-12-12T07:19:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-02T09:53:51.000Z (about 7 years ago)
- Last Synced: 2025-07-08T01:56:26.576Z (12 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Logstashtester
Tests [logstash](https://www.elastic.co/products/logstash) configurations with example
input.
Prints on stdout what logstash would have sent to Elasticsearch for
the given config file and input.
Syntax: `logstashtester logstash.conf [--type=]`.
Logstash config is read from `logstash.conf`, and log lines from `STDIN`.
If your config file depends on the input type, you can specify the type of your
log lines using the `--type` option.
## Requirements
To run the Logstashtester you first need to have
[Docker](https://store.docker.com/search?type=edition&offering=community)
running on your system.
# TODO
* Hint user if `docker` is not available
## DONE
* Add command line parsing
* Actually use the user specified logstash config file
* Customize user logstash file for testing before executing it