Forum Discussion

tankaro's avatar
tankaro
Icon for Nimbostratus rankNimbostratus
Mar 06, 2024

Test message is not present in the log file.

Hi,

 

I would like to ask your support please. We are beginning of creating an iRule and at first we would write something into the log but for some reasons it is failing.

The script what we used is the following:

when HTTP_RESPONSE {
  HTTP::collect 1024
  set response_data [HTTP::payload]
  log local0. "TEST HTTP RESPONSE: '$response_data'"

 

  set today [clock format [clock seconds] -format %Y-%m-%d]
  log local0. "TODAY: '$today'"
}

but the log shows no information for it using the command "tail /var/log/ltm" or "grep TEST  /var/log/ltm".

Thank you in advance.

Best Regards

Robert

No RepliesBe the first to reply