From e75071a5eee1a69caac4d0477f5458ddfe776f07 Mon Sep 17 00:00:00 2001 From: "Bala.FA" Date: Fri, 9 Aug 2013 17:21:56 +0530 Subject: log: add rsyslog gluster configuration file This patch comes with rsyslog gluster configuration file for fedora and rhel >= 6. It disables syslog at rpm build time if targetted platform is rhel < 6 as there is no rsyslog support. Change-Id: I95c076874b6891ff08dee1b35980f95529fb0f37 BUG: 928648 Signed-off-by: Bala.FA Reviewed-on: http://review.gluster.org/5543 Reviewed-by: Vijay Bellur Tested-by: Gluster Build System --- extras/gluster-rsyslog-5.8.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 extras/gluster-rsyslog-5.8.conf (limited to 'extras/gluster-rsyslog-5.8.conf') diff --git a/extras/gluster-rsyslog-5.8.conf b/extras/gluster-rsyslog-5.8.conf new file mode 100644 index 000000000..da6232bc0 --- /dev/null +++ b/extras/gluster-rsyslog-5.8.conf @@ -0,0 +1,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 ~ -- cgit