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

log/eve: Threaded filename change: eve.N.json #5463

Closed
wants to merge 5 commits into from

Conversation

jlucovsky
Copy link
Contributor

Continuation of #5461

This commit changes the name of the file used with threaded eve logging
to better support log rotation

Instead of using "eve.json.N" and creating potential issues with log
rotation (which also uses a ".N" suffix), the eve logs will be named
"eve.N.json" when threaded.

Describe changes:

  • Eliminates memory leak in error condition in `LogFileNewThreadedCtx1

PRScript output (if applicable):

#suricata-verify-pr:
#suricata-verify-repo:
#suricata-verify-branch:
#suricata-update-pr:
#suricata-update-repo:
#suricata-update-branch:
#libhtp-pr:
#libhtp-repo:
#libhtp-branch:

This commit returns the basename of a file, if it exists
in the same way that `basename(1)` works.
This commit changes the name of the file used with threaded eve logging
to better support log rotation

Instead of using "eve.json.N" and creating potential issues with log
rotation (which also uses a ".N" suffix), the eve logs will be named
"eve.N.json" when threaded.
@victorjulien
Copy link
Member

I'll squash the commits, but in the future please fix the commit that introduced the issue instead of adding a 'fix' commit.

@victorjulien victorjulien mentioned this pull request Oct 5, 2020
@victorjulien
Copy link
Member

Merged in #5464, thanks.

@jlucovsky jlucovsky deleted the filename/7 branch October 5, 2020 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants