Hi all,
We have Logstashe service behind F5 and SNAT. Is there any way/iRule how can we add the actual client IP address to a syslog message (“host IP address”)?
Thanks,
Ondrej
Hi all,
We have Logstashe service behind F5 and SNAT. Is there any way/iRule how can we add the actual client IP address to a syslog message (“host IP address”)?
Thanks,
Ondrej
You can use the command [IP::client_addr] to log the client IP address in the originating request. This will log to /var/log/ltm and if you have configured a syslog, will also log to the configured server.
E.g.
when CLIENT_CONNECTED {
log local0. "Client IP:[IP::client_addr]"
}
Alternatively you may want to look at X-Forwarded-For headers if it is appropriate for your environment.