Skip to content

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

Conversation

vignesh-terafast
Copy link
Contributor

Added st2auth.log and st2auth.audit.log to conf/logrotate.conf

@Kami
Copy link
Member

Kami commented Dec 14, 2015

Good catch - no idea how we missed that :)

@@ -20,6 +20,23 @@ notifempty
endscript
}

## AUTH
/var/log/st2/st2auth.log {
Copy link
Contributor

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?

Copy link
Member

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.

Copy link
Contributor

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
}

Copy link
Member

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.

Copy link
Contributor

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. :-)

Copy link
Member

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.

Kami added a commit that referenced this pull request Dec 14, 2015
…o-st2conflogrotat

Task/vki/pxpse 421 add st2auth to st2conflogrotat
@Kami Kami merged commit 57a4210 into StackStorm:master Dec 14, 2015
@Kami
Copy link
Member

Kami commented Dec 14, 2015

Merged, thanks.

@andrew-regan andrew-regan deleted the task/vki/PXPSE-421-add-st2auth-to-st2conflogrotat branch December 29, 2015 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants