[rsyslog-notify] Forum Thread: Failover log to file - (Mode 'post')

noreply at adiscon.com noreply at adiscon.com
Wed Apr 23 00:31:49 CEST 2014


User: Perlovka 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24574#p24574

Message: 
----------
Hi all,

I'm trying to force rsyslog to write log to file, if server is not
available.
Here is relevant part of my config:

[code:3nx9t6ih]template(name="WebLogFormat" type="list") {
        constant(value="# ")
        property(name="hostname")
        constant(value=" #: ")
        property(name="msg")
        constant(value="\n")
        }

if $syslogfacility-text == 'local5' then { action(
		type="omfwd"
		target="syslog"
		port="514"
		protocol="tcp"
		action.resumeretrycount="1"
		queue.FileName="apache_static_fwd"
		queue.MaxFileSize="1m"
		queue.MaxDiskSpace="1m"
		queue.SaveOnShutdown="on"
		queue.Type="LinkedList"
)
action(type="omfile"
action.execOnlyWhenPreviousIsSuspended="on"
Template="WebLogFormat"
file="/var/lib/rsyslog/test.log"
) stop }[/code:3nx9t6ih]

I'm wondering why when DA queue file is filled (1m limit) and server still
is not available, it does not starting to write logs in
/var/lib/rsyslog/test.log
I tried to create debug file, but dont know what to search there (it is
about 300m in size =) )

Please help =)

Thanks in advance.


More information about the rsyslog-notify mailing list