Forum Discussion

Jose_34113's avatar
Jose_34113
Icon for Nimbostratus rankNimbostratus
Oct 06, 2010

New log file associated with a localX.

I'd like write access logs in a log different from those already defined: https://support.f5.com/kb/en-us/solutions/public/6000/400/sol6420.html

 

To do this I would use a iRules like this: http://devcentral.f5.com/wiki/default.aspx/iRules/Apache_style_logging__slightly_modified_.html

 

 

what steps should I do? (Syslog-ng, bigip_error_maps.dat, ...??)

 

 

Thanks.

1 Reply

  • Hi Jose,

     

     

    You can send specific log messages to a different file using syslog-ng customizations to filters and destinations. The way to implement this changed in 9.4.2. For pre-9.4.2 you can edit the syslog-ng.conf file directly. For 9.4.2 and higher, you can use a syslog include file and bpsh.

     

     

    Here are a few related links for syslog-ng:

     

     

    http://www.campin.net/syslog-ng/faq.html

     

     

    LTM 9.4.2+: Custom Syslog Configuration

     

    http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=155

     

     

    And here are a few related posts:

     

     

    How to filter syslog messages

     

    http://devcentral.f5.com/Default.aspx?tabid=53&forumid=31&tpage=1&view=topic&postid=62132

     

     

    syslog-ng filter not working

     

    http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&tpage=1&view=topic&postid=56442

     

     

    Aaron