-
Notifications
You must be signed in to change notification settings - Fork 90
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
createst: Allow to exclude certain fields #2115
createst: Allow to exclude certain fields #2115
Conversation
Ticket: #4062
if "event_type" in md and md["event_type"] == "stats": | ||
continue | ||
all_content_list.append(md) | ||
all_content_list.append(md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit typo added space
timestamp: 2016-07-13T22:42:07.011401+0000should not be re-added |
with open(eve_path, "r") as fp: | ||
content = fp.read() | ||
content_list = content.strip().split("\n") | ||
jcontent_list = [json.loads(e) for e in content_list] | ||
all_content_list = [] | ||
for e in jcontent_list: | ||
md = {k: v for k, v in e.items() if k not in skip_fields} | ||
md = exclude_nested_fields(e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skip_fields
should till be used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skip_fields
should still be used
@catenacyber noted ...working on it |
work continued in #2135 |
Ticket: #4062
Link to redmine ticket: https://redmine.openinfosecfoundation.org/issues/4062
Ticket
Before:
After: