Forum Discussion
Ryanne_Frost_76
Nimbostratus
Jan 18, 2006help logging to local3
Hi Everyone, I'm trying to set up an iRule that logs Http request to the local3 facility.
Is there any changes I have to make to the syslog-ng.conf file for this to happen? my iRule works fine if...
Jan 20, 2006
By default all other log facilities are setup to log a level of info and above. debug which is the default level when not speified in the log command, is not turned on for those facilities.
You have a few options.
1) Manually specify a level in your log statement
log [.]
facility: local0, local1, local2, etc
level: debug (default), info, emerg
Your code more than likely looks like this:
when HTTP_REQUEST {
log local3. "I'm logging something!"
}
You'll notice that the level is omitted and thus defaulting to debug. You can specify info which should make it to all the other pre-defined facilities.
when HTTP_REQUEST {
log local3.info "I'm logging something!"
}
2) Modify the syslog-ng configuration. I can't give you advice here because that falls outside of the support realm of devcentral. Feel free to look at that configuration file on your system and copy what's done for the local0 filter. Just make sure you backup the original configuration in case you get into problems.
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
