Syslog rules enable processing and generating alerts from Syslog events received from various devices, applications, and systems. They allow you to define how OpsRamp should react to specific log messages.

Create Syslog Rules

To create syslog rules:

  1. Navigate to Setup > Account > Monitoring.

  2. Select the Metrics & Events tab.

  3. Select the Syslog Rules tab.

  4. Click +ADD. The Add Syslog Rule page is displayed.

  5. Enter values for the following fields:

    FieldDescription
    NameName of the syslog rule.
    ActionAvailable options: Include and Exclude.
    RegEx PatternThe regular expression for search action. For example - .*
    Metric NameEnter the metric name.
    Component NameThe component name to which the metric belongs.
    Alert SubjectShort title for the alert generated when the syslog rule matches.
    Alert DescriptionDetailed message for the alert, describing the matched syslog event.
    Alert SeverityAvailable options: Warning, Critical, Info, or OK
    TagsLabels for grouping and filtering.
  6. Click Add Syslog Rule. The syslog rule is added and available in the listing page.

Filter Syslog Rules

To filter syslog rules:

  1. Click the Filter drop-down on the top left corner of the Syslog Rules page. The filter options are displayed.

  2. Select the items to narrow your search and then click Filter. The syslog rules that meet the filter criteria are displayed.

Version History

Configuration version history provides a record of changes made to a syslog rule. You can use it to review the current configuration, compare it with an earlier version, and restore a previous version.

Version history is enabled by default for syslog rules. A version is created when a syslog rule is created or updated.

Permissions

Your access to version history is based on your permissions for the syslog rule:

  • To view version history, you must have permission to view the syslog rule.
  • To restore a version, you must have permission to modify or update the syslog rule.

Why use version history?

Updating a syslog rule, including its RegEx Pattern, component, alert severity, action, or other settings, can change when alerts are triggered for incoming syslog messages. For example, an unintended change to a rule’s severity can cause alerts to trigger incorrectly, generating excessive notifications or false alarms, or can cause genuine issues to go undetected.

Use version history to:

  • View snapshots of a syslog rule configuration.
  • Identify values that changed between versions.
  • Compare the current version with an earlier version.
  • Compare two older versions.
  • Restore a suitable earlier version.

View version history

View the version history of a syslog rule to review its current configuration and previously saved versions.

Follow these steps to view a syslog rule’s version history:

  1. On the Syslog Rules listing page, search for the syslog rule whose version history you want to view.
  2. Mouse hover over the row and click the ellipsis (…) icon.

    SysLog version history option
  3. Select Version History. The Version History page appears with the current syslog rule configuration, by default. The dropdown lists the versions with timestamp.

    SysLog version history
  4. Clicking the dropdown lists the available earlier versions.

    view previous versions

You can click the versions in the dropdown to review the changes. The selected version displays the syslog rule configuration, allowing you to compare it with the current version and identify any values that changed.

Compare versions

Compare syslog rule versions to see how changes affect alerts. This comparison helps you find what caused unexpected alerts and decide whether to restore an earlier version.

Follow these steps to compare versions:

  1. On the Syslog Rules listing page, search for the syslog rule whose version you want to compare.
  2. Mouse hover over the row and click the ellipsis (…) icon.
  3. Select Version History. The Version History page appears with the current syslog rule configuration, by default.
  4. Click +Compare at the top right corner of the page.

    compare syslog versions
    By default, the system compares the current version with the version immediately preceding it.

    compare versions
    The comparison highlights the changes made. Review the differences between the configuration values.
  • You can select another older version to compare with the current version, or compare two older versions.

Comparison helps you determine which change might have caused unexpected alerts.

Restore a version

Restore an earlier version of a syslog rule when you need to revert recent configuration changes. The restored configuration becomes the current version while preserving the existing version history.

Follow these steps to restore a version:

  1. On the Syslog Rules listing page, search for the syslog rule you want to restore version.
  2. Mouse hover over the row and click the ellipsis (…) icon.
  3. Select Version History. The Version History page appears with the current syslog rule configuration, by default.
  4. Click +Compare at the top right corner of the page.

    SysLog compare versions
    By default, the system compares the current version with the version immediately preceding it.
  5. From the dropdown on the right, select the version you want to restore.

    restore versions - SysLog
  6. Click Restore. A confirmation message appears.

    Confirm restore message
  7. Review the message and click Restore.

Restoring a version creates a new version. Existing versions remain in the version history. After the operation is complete, the restored values become the current configuration.

Version retention and deleted syslog rules

Version history is retained only while the syslog rule exists.

Tabbed Interface with Table