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

Dev log rollover v4 - Signal Based Logfile Rotation #977

Closed
wants to merge 4 commits into from

Conversation

jasonish
Copy link
Member

Jason Ish added 4 commits May 23, 2014 10:09
for log rotation.  Have the LogFileCtx handle the log rotation.
Useful for using passing the buffer through to another writer
such as LogFileCtx.
- alert debug log
- fast log
- stats log
- dns log
- drop log
- file log
- http log
- tls log
- eve/json log
@inliniac
Copy link
Contributor

I'm wondering how this will work with the unix-socket runmode. There the logger threads are created and destroyed per pcap. How will this affect the 'reload' flag? As I'm not seeing a unregister call, I fear we may end up with dangling pointers there.

@jasonish
Copy link
Member Author

Good point. I wonder if this type of rotation should be disabled in this mode?

@inliniac
Copy link
Contributor

I would prefer to just handle it, so that we don't have too many exceptions. If we can 'un-register' at thread shutdown, it should automatically handle this case.

@jasonish jasonish mentioned this pull request May 28, 2014
@jasonish jasonish closed this May 28, 2014
inliniac pushed a commit that referenced this pull request Nov 21, 2014
Have -T / --init-errors-fatal process all rules so that it's easier
to debug problems in ruleset. Otherwise it can be a lengthy fix, test
error cycle if multiple rules have issues.

Convert empty rulefile error into a warning.

Bug #977
inliniac pushed a commit that referenced this pull request Nov 23, 2014
Have -T / --init-errors-fatal process all rules so that it's easier
to debug problems in ruleset. Otherwise it can be a lengthy fix, test
error cycle if multiple rules have issues.

Convert empty rulefile error into a warning.

Bug #977
inliniac pushed a commit that referenced this pull request Nov 27, 2014
Have -T / --init-errors-fatal process all rules so that it's easier
to debug problems in ruleset. Otherwise it can be a lengthy fix, test
error cycle if multiple rules have issues.

Convert empty rulefile error into a warning.

Bug #977
inliniac pushed a commit that referenced this pull request Dec 4, 2014
Have -T / --init-errors-fatal process all rules so that it's easier
to debug problems in ruleset. Otherwise it can be a lengthy fix, test
error cycle if multiple rules have issues.

Convert empty rulefile error into a warning.

Bug #977
inliniac pushed a commit that referenced this pull request Dec 5, 2014
Have -T / --init-errors-fatal process all rules so that it's easier
to debug problems in ruleset. Otherwise it can be a lengthy fix, test
error cycle if multiple rules have issues.

Convert empty rulefile error into a warning.

Bug #977
ndenev pushed a commit to ndenev/suricata that referenced this pull request Feb 5, 2015
Have -T / --init-errors-fatal process all rules so that it's easier
to debug problems in ruleset. Otherwise it can be a lengthy fix, test
error cycle if multiple rules have issues.

Convert empty rulefile error into a warning.

Bug OISF#977
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants