Exporting iRule logs from ltm log file

Hi All,

How do I separate iRule logs from the other logs in the ltm log file?

To give a bit of background info… I had an initial request to log any source IP connecting to a particular VIP. I used this rule to log the IPs but underestimated how many connections there would be…so now about 80% of the ltm log file is irule logs.

Is there a way to grep on the event and write it to another file that I can then export?

Thanks

Hi

Two easy ways :

1 - Prefix your logs with a specific string easily searcheable with “grep”

log local0. "[VIP-CONNECT-SRC] $ipmessage"

2 - Use HSL with a remote syslog

Yoann