Page 1 of 1

Default localhost logging how to stop and delete logs

Posted: Wed Feb 26, 2020 2:02 pm
by matthewpaler
Just installed the VM for ESXi and really like it. However, I would like to completely remove the localhost information from the home screen and reports. I believe I figured out how to stop the data, but have no clue how to remove the logs and not have it show up on the home screen as a unique host. Here is my nagioslogserver.conf file:
# ### begin forwarding rule ###
#
# NAGIOS LOG SERVER
#
$WorkDirectory /var/lib/rsyslog # where to place spool files
$ActionQueueFileName fwdRule1 # unique name prefix for spool files
$ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible)
$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
$ActionQueueType LinkedList # run asynchronously
$ActionResumeRetryCount -1 # infinite retries if host is down
# *.* @@localhost:5544
#
# ### end of the forwarding rule ###

By putting the # in front of *.*@@localhost:5544 that appears to have stopped the host I want from putting data in the system. My other syslog feed is still working.
Now how do I delete all that data so the 8,566 log entries are deleted and it doesn't show up on the home screen or under reports?

IP Address (Hostname) Log Count
0:0:0:0:0:0:0:1 (localhost) 8,566

Re: Default localhost logging how to stop and delete logs

Posted: Thu Feb 27, 2020 12:29 pm
by matthewpaler
After 24 hours of no activity, the index for yesterday was available to delete, nice! Issue resolved.

Re: Default localhost logging how to stop and delete logs

Posted: Thu Feb 27, 2020 2:03 pm
by scottwilkerson
matthewpaler wrote:After 24 hours of no activity, the index for yesterday was available to delete, nice! Issue resolved.
Great!

Locking thread