Forum Discussion
irules logs
Where I can find logs related to an Irule
3 Replies
- Seth_Cooper
Employee
iRules will generally log to /var/log/ltm
-Seth
- VernonWells
Employee
If a runtime exception is thrown from an iRule, it will go to /var/log/ltm (unless you changed the syslog-ng configuration). If you use the
command, the destination will depend on two things: 1. the declared facility; and 2. the syslog-ng config. By default, if you don't declare a facility (e.g., you sayloglog "this is a message", then the facility is local0. Otherwise, you can (and really, should) declare the facility (e.g.,log local2. "This is a message"). Where the message goes depends on the syslog-ng configuration. Most people don't mess with that (and generally, it's not a good idea). Assuming you have not, then this solution article explains the defaults:If you are logging non-debug message from an iRule, you should strongly consider using High-Speed Logging instead of the
command:log - VernonWells
Employee
If a runtime exception is thrown from an iRule, it will go to /var/log/ltm (unless you changed the syslog-ng configuration). If you use the
command, the destination will depend on two things: 1. the declared facility; and 2. the syslog-ng config. By default, if you don't declare a facility (e.g., you sayloglog "this is a message", then the facility is local0. Otherwise, you can (and really, should) declare the facility (e.g.,log local2. "This is a message"). Where the message goes depends on the syslog-ng configuration. Most people don't mess with that (and generally, it's not a good idea). Assuming you have not, then this solution article explains the defaults:If you are logging non-debug message from an iRule, you should strongly consider using High-Speed Logging instead of the
command:log
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