Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

Exporting iRule logs from ltm log file

s_selvey
Nimbostratus
Nimbostratus

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

1 REPLY 1

Yoann_Le_Corvi1
Cumulonimbus
Cumulonimbus

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

https://clouddocs.f5.com/api/irules/HSL__send.html

Yoann