31-Jul-2020 09:02
31-Jul-2020
12:14
- last edited on
04-Jun-2023
21:20
by
JimmyPackets
Below iRule will log Client IP, Http host and URI to LTM log
when HTTP_REQUEST {
log local0. "You custom message: [IP::client_addr] >>> [HTTP::host][HTTP::uri]"
}
Hope this helps.
02-Aug-2020
15:44
- last edited on
04-Jun-2023
21:20
by
JimmyPackets
Hi Ashu Aggarwal,
For remote logging:
Create a syslog pool.
And change pool name in below iRule.
when HTTP_REQUEST {
HSL::send [HSL::open -proto UDP -pool syslog_server_pool] "VS: [virtual name] - CIP: [IP::client_addr] - Host: [HTTP::host] - URI: [HTTP::uri]"
}