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

Simply configuration #9

Open
JustinAzoff opened this issue Mar 26, 2018 · 1 comment
Open

Simply configuration #9

JustinAzoff opened this issue Mar 26, 2018 · 1 comment

Comments

@JustinAzoff
Copy link
Owner

JustinAzoff commented Mar 26, 2018

Minimally now that I have

        "file_glob": "/bro/logs/*/notice.*gz",
        "recent_file_glob": "/bro/logs/%Y-%m-%d/notice.*gz",

Currently if recent_file_glob is missing, it can just default to file_glob. However, if only recent_file_glob is present, one could just convert the %X to * giving /bro/logs/*-*-*/notice.*gz which would also work in place of file_glob, so both are probably not needed.

@JustinAzoff
Copy link
Owner Author

Another idea is to replace


YYYY => (?P<year>\\d\\d\\d\\d)
MM => (?P<month>\\d\\d)
DD => (?P<day>\\d\\d)
HH => (?P<hour>\\d\\d)
MM => (?P<minute>\\d\\d)

which would simplify some of the regexes to stuff like

"filename_to_time_regex": "nfcapd.YYYYMMDDHHMM",

instead of what is there now.

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

No branches or pull requests

1 participant