Skip to content

Commit

Permalink
Use the modern standard rsyslog format
Browse files Browse the repository at this point in the history
Also, check that the program name starts with slurm, this avoid having
pam_slurm messages in the slurm.log (they belong in the
auth.log/secure/etc.).

Finally, stop processing after this so slurm messages don't get
replicated in other log files.
  • Loading branch information
jabl committed Oct 14, 2016
1 parent 3118c97 commit 17965d3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/slurm_rsyslog.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Managed by ansible
if $programname contains_i 'slurm' then {
/var/log/slurm/slurm.log

if $programname startswith 'slurm' then {
/var/log/slurm/slurm.log;RSYSLOG_FileFormat
stop
}

0 comments on commit 17965d3

Please sign in to comment.