mk8570
1
How can i filter the syslog record using regex ?
This is the filter condition that i was trying and cannot seem to get it working
filter f_proxyhosts { (host("^192\.68\.47\.121\smyhost0[1-9]|1[0-2]")) };
syslog-ng log
Feb 9 16:26:53 192.68.47.121 myhost01-server: #Version: 1.0_
Aia
2
What program are you using this regex with? Your program must support the PCRE
form of regex for \s
In any case:
^192\.68\.47\.121\smyhost0[1-9]|1[0-2]
will not match
Feb 9 16:26:53 192.68.47.121 myhost01-server: #Version: 1.0_
This might:
192\.68\.47\.121\smyhost(0[1-9]|1[0-2])