[rsyslog-notify] Forum Thread: Re: can you use regex to filter fromhost-ip? - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Wed Jan 28 22:10:14 CET 2015
User: mwk at umn.edu
Forumlink: http://kb.monitorware.com/viewtopic.php?p=25209#p25209
Message:
----------
[quote="dlang":18mnhz4m]having two machines with the same hostname is a bad
idea, for exactly the reason that you are running into)
you probably don't want to use a regex, but the question is what is
different between the two systems that will let you tell them apart?
Once you identify what's different, you can then write rules to make use of
this difference.[/quote:18mnhz4m]
Well that's the trick right. A host(node) I care about has a hostname like
x-192.168.1.22.ourdomain.umn.edu and one I don't care so much about is
x-192.168.1.236.ourdomain.umn.edu so if I can figure out how to get it to
differentiate is why I'm asking. If it was 10 ip address' no problem, it's
>200 so differentiating down to the last octet is ugly as far as I can
tell.
More information about the rsyslog-notify
mailing list