Alan Martinovic
2018-11-14 18:08:46 UTC
Hi,
am testing out a config file that should resend logs if there is a WiFi
drop followed by a restart.
The following steps show the issue:
[Starting state] rsyslog running. Internet connection stable
Killing the internet connection
logger "No internet connection. There wont be one before a system restart"
system restart
[Final state] rsyslog running. Internet connection stable
The logger message doesn't end up on the remote log server.
My conceptual idea was to set up a Disk-Assisted Memory Queue[1]
so the unset logger message survives restart by being written on the disk
and is resent once the network is back on.
I thought the following options:
```
...
action.resumeRetryCount="-1"
queue.type="LinkedList"
queue.filename="disk-queue"
queue.saveOnShutdown="on"
...
```
would make that happen, but it didn't.
Hunches on what could be wrong?
Be Well,
Alan
[1] https://www.rsyslog.com/doc/v8-stable/concepts/queues.html#disk-assisted-memory-queues
-----------------------------
Additional details:
```
cat /etc/rsyslog.conf
$ModLoad immark
$ModLoad imuxsock
$ModLoad imklog
$MaxMessageSize 64k
$WorkDirectory /var/spool/rsyslog
template(name="LogglyFormat"
type="string"
string="removing not to show token"
)
action(type="omfwd"
protocol="tcp" target="removed.log.url" port="514"
template="LogglyFormat"
action.resumeRetryCount="-1"
queue.type="LinkedList"
queue.filename="disk-queue"
queue.saveOnShutdown="on"
queue.size="5000"
queue.maxDiskSpace="20m"
)
ls -lad /var/spool/rsyslog/
drwxr-xr-x 2 root root 4096 Nov 14 17:43 /var/spool/rsyslog/
```
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
am testing out a config file that should resend logs if there is a WiFi
drop followed by a restart.
The following steps show the issue:
[Starting state] rsyslog running. Internet connection stable
Killing the internet connection
logger "No internet connection. There wont be one before a system restart"
system restart
[Final state] rsyslog running. Internet connection stable
The logger message doesn't end up on the remote log server.
My conceptual idea was to set up a Disk-Assisted Memory Queue[1]
so the unset logger message survives restart by being written on the disk
and is resent once the network is back on.
I thought the following options:
```
...
action.resumeRetryCount="-1"
queue.type="LinkedList"
queue.filename="disk-queue"
queue.saveOnShutdown="on"
...
```
would make that happen, but it didn't.
Hunches on what could be wrong?
Be Well,
Alan
[1] https://www.rsyslog.com/doc/v8-stable/concepts/queues.html#disk-assisted-memory-queues
-----------------------------
Additional details:
```
cat /etc/rsyslog.conf
$ModLoad immark
$ModLoad imuxsock
$ModLoad imklog
$MaxMessageSize 64k
$WorkDirectory /var/spool/rsyslog
template(name="LogglyFormat"
type="string"
string="removing not to show token"
)
action(type="omfwd"
protocol="tcp" target="removed.log.url" port="514"
template="LogglyFormat"
action.resumeRetryCount="-1"
queue.type="LinkedList"
queue.filename="disk-queue"
queue.saveOnShutdown="on"
queue.size="5000"
queue.maxDiskSpace="20m"
)
ls -lad /var/spool/rsyslog/
drwxr-xr-x 2 root root 4096 Nov 14 17:43 /var/spool/rsyslog/
```
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.