The Log script command logs message contents to a filename in the Logs directory named by the current LogFilename variable. The current message contents to be logged are naturally set by the last SNMP message or last HTTP message parsed by HTTP script.
Syntax: | Log | Comment | |||
Example: | ![]() |
Log to current LogFilename | |||
Associated command may be bound to Log to set the logfilename | |||||
Example: | ![]() |
LogFilename | = | "water monitor state" | Associated command to set LogFilename |
![]() |
Log to water monitor state | ||||
Associated commands may be bound to Log to replace the message contents to be logged with anything in variable space (fixed or user created variables) | |||||
Example: | ![]() |
LogFilename | = | "water monitor state" | Associated command to set LogFilename |
![]() |
Associated command to clear prior message contents list | ||||
![]() |
MessageResponseTime | Associated command to add fixed variable to message contents list | |||
![]() |
metric | Associated command to add user created variable to message contents list | |||
![]() |
Log to water monitor state |