Skip to main content
Barracuda MSP Partner Toolkit

Creating Custom Log Monitors

Managed Workplace allows you to configure many ways that devices or applications report their current status, including plain text log files. This type of monitoring is particularly useful when there are applications that only report their status with this kind of log file.

Custom log monitors cannot be included in Policy Modules (Templates) because they require the user to enter a valid path to the log file, which will not necessarily be the same on each monitored device.

As with any monitor, the trick is in knowing what information to alert upon. Take the time to review the vendor documentation and support forums, looking for common error messages that may appear in the logs. This kind of information is common in the documentation and will make creating the monitor and alert rules easy.

Once you have determined what text strings you would like to alert upon, follow the procedure below to configure the monitor:

  1. Click Configuration - Monitor and Alert Rules.
  2. Use the Site and Device selection lists to choose the device that contains the log file you wish to monitor. Select Custom Logs and click Add Monitor.
    clipboard_ef7df717b5e5b6bbdc4d464673c53725f.png
  3. Enter a Title for the monitor, adding a meaningful description if you wish. Enter the absolute UNC File Path the monitor will use to access the file. The log files must be accessible via UNC path. Network-mapped drives are user-specific and are not accessible to Windows services, so the UNC path must be to a share on a local disk only.
  4. In the Monitor Tab under Search Settings,  Enter the Search String, which will be the text characters the monitor looks for when parsing the file. You can check the following options to modify how the text string is handled:
    Match case makes the search case-sensitive.
    Match whole word prevents the string from being found within another word.
    Use regular expressions treats the Search String as a regular expression rather than an exact string.
    clipboard_e0a5734f5f11aa2501ebfef00708669b4.png
  5. Switch to the Alerts tab and click Add, opening the Alert Configuration dialog.
  6. Enter a Title and meaningful description if you wish. Click Add under Alert Rules. For this type of monitor, the alert rule is automatically populated based on the monitor's settings. Click Save.
  7. Select any appropriate Alert Actions and Notifications and click Save.
    Self-Heal is not available as an action because the condition triggering the alert (the text string) is a single occurrence measured by the line of text it was located in the file.
  8. Click Save to close the monitor dialog
    clipboard_edcd4e5928c802b13874d5e295c1ae5ad.png

Once you have created a Custom Log monitor, the Logs tab appears on the Device Information page for the device.