[rsyslog-notify] Forum Thread: Update to new config format - (Mode 'post')

noreply at adiscon.com noreply at adiscon.com
Wed Aug 3 16:05:20 CEST 2016


User: noel123 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26849#p26849

Message: 
----------
I have an old conf file based off v5 and want to update it to v8 
I have little experience on this and am updating a legacy application
I am wondering is the following correct?
Cant seem to find in documentation how to change $RepeatedMsgReduction

OLD FILE
==========
[code:2u2e710i]# load module to read from local files
$ModLoad imfile

# for each local log file path, duplicate the 6 lines below and edit lines
1 and 3
$InputFileName /var/log/path/thefile.log
$InputFileTag
$InputFileStateFile thefile-state-file
$InputFileFacility local7
$InputFilePersistStateInterval 1000
$InputRunFileMonitor

# Disable repeated message reduction
$RepeatedMsgReduction off

# Creates a template for the log event sent to the remote logging server
$template TheTemplateName,"<%PRI%>ApplicationName: %msg%\n"

# destination
local7.* @logs.thedestination.com:5514;TheTemplateName

# stop processing the log event
& ~[/code:2u2e710i]

NEW FORMAT
===========
[code:2u2e710i]# load module to read from local files, needs to be done
just once
module(load="imfile" )

input(type="imfile"
      File="/var/log/thepath/thefile.log"
	  PersistStateInterval=1000
      Facility="local7"
	  InputRunFileMonitor)
	  
# Disable repeated message reduction
$RepeatedMsgReduction off

# Creates a template for the log event sent to the remote logging server
template (name="TheTemplateName" type="string"
string="<%PRI%>ApplicationName: %msg%\n")

# destination
local7.* @logs.thedestination.com:5514;TheTemplateName
	  
# stop processing the log event
& stop[/code:2u2e710i]


More information about the rsyslog-notify mailing list