Input Filter to Ignore IPs

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
sagansapien
Posts: 4
Joined: Mon Dec 21, 2020 2:01 pm

Input Filter to Ignore IPs

Post by sagansapien »

Greetings,

We have several devices that are intermittently sending log data which I wish to ignore.

Is it possible to configure an input filter to drop all log data from specific IPs? I want to keep these devices off the "Not Sending" report.

Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Input Filter to Ignore IPs

Post by scottwilkerson »

Code: Select all

if [host] == 'xxx.xxx.xxx.xxx' {
    drop{ }
}
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sagansapien
Posts: 4
Joined: Mon Dec 21, 2020 2:01 pm

Re: Input Filter to Ignore IPs

Post by sagansapien »

Thank you!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Input Filter to Ignore IPs

Post by scottwilkerson »

sagansapien wrote:Thank you!
No problem

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