[rsyslog-notify] Forum Thread: omprog retries over a long period - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Fri Jun 10 01:45:04 CEST 2016
User: itgeek
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26567#p26567
Message:
----------
We have a custom omprog binary that forwards messages to a remote server
over a websocket. It exits is the websocket closes. Exits if the network
goes down. Exits on EOF. Exits on SIGTERM. Exits on startup (without
reading from stdin) if it cannot connect to the server over the websocket.
We're running rsyslog 8.6.0
The program doesn't seem to get restarted if we have a long outage. Things
work great when I test with a 5-15 minute network outage, but if I do a 24
hour test, it never seems to restart once network connectivity is restored.
Have I misconfigured things?
local0.* {
# File
action( type="omfile" file="/var/log/ourprogram.log"
template="ourprogram_log_template" queue.type="Direct")
action(
type="omprog"
binary="/opt/ourcompany/bin/ourprogram <!-- m --><a
class="postlink"
href="wss://websocketserver.ourcompany.com">wss://websocketserver.ourcompany.com</a><!--
m -->"
template="logserver"
queue.type="LinkedList"
queue.size="10000"
queue.discardmark="9750" # Discard 'low priority' messages
if queue has > 9750 messages
queue.discardseverity="notice" # Messages lower than notice will
be considered 'low priority'
queue.spoolDirectory="/var/spool/rsyslog"
queue.filename="ourprogram_spool"
queue.maxdiskspace="10000000" # bytes = 10mb Discard messages
once we hit 10mb
queue.saveOnShutdown="on"
action.resumeRetryCount="-1"
action.reportSuspension="on"
action.reportSuspensionContinuation="on"
)
& stop
}
More information about the rsyslog-notify
mailing list