Writing to and rotating custom log files
Sometimes I need to log information from iRules to debug something. So I add a simple log statement, like this:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/secure" } {
log local0. "[IP:...
Published May 27, 2010
Version 1.0smp_86112
Cirrostratus
Joined November 14, 2006
smp_86112
Cirrostratus
Joined November 14, 2006
svs
Nov 04, 2015Cirrostratus
Great article. The configuration seems very dirty to me. In 11.6.0 I had issues with indentation. I got the message
"Application error for confpp: syntax error in /etc/syslog-ng/syslog-ng.conf".
So what worked for me was to go without indentation for the syslog-ng configuration and with indentation for the logrotate configuration: http://pastebin.com/ENq36JQG
(Couldn't paste the config here directly. ASM of DevCentral throwed an exception... :-()
I checked the configuration with 12.0 and 11.6.0. The only difference I was able to see was, that with 12.0 the logfile was created directly after restarting the syslog daemon, while in 11.6.0 there had to come logs from the iRule, before the logfile was created.
Once again: Great article! Many thanks, saved my day.
Greets,
svs