Default localhost logging how to stop and delete logs

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
matthewpaler
Posts: 2
Joined: Wed Feb 26, 2020 1:55 pm

Default localhost logging how to stop and delete logs

Post 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
matthewpaler
Posts: 2
Joined: Wed Feb 26, 2020 1:55 pm

Re: Default localhost logging how to stop and delete logs

Post by matthewpaler »

After 24 hours of no activity, the index for yesterday was available to delete, nice! Issue resolved.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Default localhost logging how to stop and delete logs

Post by scottwilkerson »

matthewpaler wrote:After 24 hours of no activity, the index for yesterday was available to delete, nice! Issue resolved.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked