Forum Discussion
iRule for logging LTM
Hi All,
Do you have an iRule to logs all traffic coming to bigIP? Or the log config is enough?
Dont worry about the resources utilization.
1 Reply
- VernonWells
Employee
If you have AFM licensed and provisioned, you can use firewall rule logging. Alternatively, if all of your traffic is HTTP and/or DNS, you can you HTTP and DNS logging profiles:
If that's not the case, you could use a simple iRule that logs information for each incoming flow:
when CLIENT_ACCEPTED { set hdl [HSL::open -publisher some_publisher] HSL::send $hdl "<134> [IP::client_addr] -> [IP::local_addr]" }If you want to log higher layer information (e.g., port information), the iRule becomes somewhat more complicated.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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