Hi Guys,
I need to pickup the ip address from the Logs
Example Message resullt from the logs: <110.54.203.170>: user ppp1 authentication failed
~I only need the 110.54.203.170..
I’ve tested your code (setting $logEntryMessage to “<110.54.203.170>: user ppp1 authentication failed”) and seems ok to me… ¿Maybe $logEntryMessage doesn’t have that format?
But a much better approach are to use an external Syslog handler and with Splunk you can make nice graph out of this , like i have done. Look link in my signature for example.