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

Include Regex Pattterns from grok #115

Open
mardukbp opened this issue Dec 31, 2023 · 1 comment
Open

Include Regex Pattterns from grok #115

mardukbp opened this issue Dec 31, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@mardukbp
Copy link

mardukbp commented Dec 31, 2023

grok is a Logstash filter with a similar functionality to TTP. It includes a list of commonly used regex patterns.

This would be a nice addition to TTP. Thank you for writing this awesome library!

@mardukbp mardukbp changed the title Include Regex Include Regex Pattterns from grok Dec 31, 2023
@dmulyalin
Copy link
Owner

Its fairly easy to add new regexes, need to add them into this file - https://github.com/dmulyalin/ttp/blob/master/ttp/patterns/get_pattern.py - can add a few if you have a need for any particular of them but I am personally has no need for all grok regexes, besides, match variable re function allows to source your own regexes, including from variables or local files.

If you feel like to, maybe you can raise a pull request and add new patterns to above file, but also need to add tests for each new regex and update documentation accordingly.

@dmulyalin dmulyalin added the enhancement New feature or request label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants