Simplify the steps from regex to grok format.
Create virtualenv:
$ virtualenv .env-python
$ source .env-python/bin/activate
(.env-python) $
Install regex2grok:
(.env-python) $ python setup.py install
Usage:
(.env-python) $ regex2grok -h
Usage:
regex2grok.py <regex_rules_file>
regex2grok.py <regex_rules_file> <output_grok_template>
regex2grok.py (-h | --help)
Options:
-h --help Show usage.
<regex_rules_file> The input RegEx rules file path.
<output_grok_template> The output grok template file path.
Run:
(.env-python) $ regex2grok input.ref.template