Log file monitor

The Log file monitor can read a text file and check for appended lines containing one of the specified strings. The monitor generates an alarm if the specified search criteria are met. The monitor uses SMB for connecting to an asset. This means that the only credentials configurable are Windows accounts. You will need to set a Windows account even if the target operating system is non-Windows using Samba.

  • System type: All
  • Category: Log

NOTE   Only monitor specific settings are documented here. See Standard monitor settings.

Monitor specific properties

  • Path - Absolute path of the the file, including the name of the host. For example, \\myhost\C$\test.txt.
  • Search string - String to search for. Multiple strings can be searched. Separate each sub string with a comma. If multiple substrings are entered, the test performs a logical OR operation on the string.
  • Alert if no change - If checked, the test fails if the file has not changed since last the test. If checked, search string tests are not performed.
  • Restart - If checked, the monitor restarts from the top of the log file for each test.
  • Inherit credentials - If checked, inherits credentials from the asset. If blank, enter monitor-specific credentials.
  • Domain or Computer/Username/Password - Credential used to authenticate access for this monitor.

Path field formatting flags

The following formatting variables can be included when specifying a path.

  • %[system.time_hour] - Hour in 24-hour format (00 -23)
  • %[system.time_hour2] - Hour in 12-hour format (01 -12)
  • %[system.time_minute] - Minute as decimal number (00 -59)
  • %[system.time_second] - Second as decimal number (00 – 59)
  • %[system.date_year] - Year with century, as decimal number
  • %[system.date_year2] - Year without century, as decimal number
  • %[system.date_month] - Month as decimal number (01 – 12)
  • %[system.date_day_of_month] - Day of month as decimal number (01 – 31)
  • %[system.date_day_of_year] - Day of year as decimal number (001 – 366)
  • %[system.date_weekday] - Weekday as decimal number (0 – 6; Sunday is 0)