For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

rhuyerman's avatar
rhuyerman
Icon for Nimbostratus rankNimbostratus
Apr 12, 2010

how do I insert the LTM date & time into hsl log

I have writen an irule which sends an apache type log via HSL to our syslog server.

 

We also us caching.

 

 

For the HTTP response I use the date filed in the HTTP response header.

 

 

For the cache repsonse I want to insert the date and time from the LTM, which is synched via ntp, into the HSL log.

 

How can I do this?

1 Reply

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    You can use the TCL clock command to get the current time and format it:

     

     

    http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm

     

     

    % clock format [clock seconds]

     

    Mon Apr 12 9:12:14 AM GMT Daylight Time 2010

     

     

    % clock format [clock seconds] -gmt 1

     

    Mon Apr 12 8:12:07 AM GMT 2010

     

     

    Aaron