summaryrefslogtreecommitdiffstats
path: root/extras/gluster-rsyslog-5.8.conf
blob: da6232bc075c89a7f1996fd3c01ca08bcd060fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
##### gluster.conf #####
$RepeatedMsgReduction on

$ModLoad mmcount
$mmcountKey gf_code

$template Glusterfsd_dynLogFile,"/var/log/glusterfs/bricks/%app-name%.log"
$template Gluster_dynLogFile,"/var/log/glusterfs/%app-name%.log"

$template GLFS_Template,"%msgid%/%syslogfacility-text:::uppercase%/%syslogseverity-text:::uppercase% [%TIMESTAMP:::date-rfc3339%] %msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"

if $app-name contains 'gluster' then :mmcount:
if $app-name contains 'glusterfsd' then ?Glusterfsd_dynLogFile;GLFS_Template
if $app-name contains 'gluster' and not ( $app-name contains 'glusterfsd' ) then ?Gluster_dynLogFile;GLFS_Template
if $app-name contains 'gluster' then ~