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: Ensure threaded eve honors SIGHUP #5382

Closed
wants to merge 1 commit into from

Conversation

jlucovsky
Copy link
Contributor

@jlucovsky jlucovsky commented Sep 8, 2020

This commit ensures that all logging contexts register for the file
rotation mechanism (SIGHUP and configured).

Describe changes:

  • Register file rotation flag when creating context
  • Set is_regular correctly

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/3915

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 ensures that all logging contexts register for the file
rotation mechanism (SIGHUP and configured).
@jlucovsky jlucovsky requested a review from a team as a code owner September 8, 2020 12:41
thread->Write = SCLogFileWriteNoLock;
thread->Close = SCLogFileCloseNoLock;
OutputRegisterFileRotationFlag(&thread->rotation_flag);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The non-threaded logger has an associated OutputUnregisterFileRotationFlag for each register. This probably needs the same.

@jlucovsky
Copy link
Contributor Author

Continued in #5394

@jlucovsky jlucovsky closed this Sep 9, 2020
@jlucovsky jlucovsky deleted the sighup/1 branch December 20, 2020 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants