-
-
Notifications
You must be signed in to change notification settings - Fork 758
Task/vki/pxpse 421 add st2auth to st2conflogrotat #2294
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
Task/vki/pxpse 421 add st2auth to st2conflogrotat #2294
Conversation
…PXPSE-421-add-st2auth-to-st2conflogrotat
Good catch - no idea how we missed that :) |
@@ -20,6 +20,23 @@ notifempty | |||
endscript | |||
} | |||
|
|||
## AUTH | |||
/var/log/st2/st2auth.log { |
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.
Should this be "/var/log/st2/st2auth*.log" since the audit entry added below is identical to this one?
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.
We only run one instance of st2auth process and don't include PID in the log file name (like in the action runner case) so I believe this is fine.
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.
I probably should have said use this "/var/log/st2/st2auth*.log" and then eliminate this identical section for audit:
/var/log/st2/st2auth.audit.log {
daily
rotate 5
postrotate
st2ctl reopen-log-files st2auth
endscript
}
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.
Usually it's better to have two entries one for normal and one for audit file - the reason for that is that users might want to keep audit log files longer than regular log files.
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.
Should we break out results tracker, notifier, and sensor container into separate entries for audit and non-audit to be consistent? They are currently using *.log. Last question. :-)
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.
IIRC, only st2api and st2auth really log audit log messages so we should be fine.
…o-st2conflogrotat Task/vki/pxpse 421 add st2auth to st2conflogrotat
Merged, thanks. |
Added st2auth.log and st2auth.audit.log to conf/logrotate.conf