Forum Discussion
Need to log client IP
Hello guys,
Is there any way to to send logged client IP address at some location instead of local0. I have iRule to log same but looking for something to have data at some customized location.
Local0 stores at var/log/ltm. pls correct me if I am wrong.
- vigyuAltocumulus
You can send log to external syslog with HSL.
For example:
when CLIENT_ACCEPTED {
set my_hsl [HSL::open -publisher /Common/LOGPUB_SYSLOG]
HSL::send $my_hsl ""New TCP connection from [IP::client_addr]:[TCP::client_port] to [IP::local_addr]:[TCP::local_port]"
}
- BK1Cirrus
Thanks, I will try this.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com