Managing static alerts


The following video (2:34) illustrates the steps to create an alert policy for static thresholds.

icon-play@2x.pnghttps://youtu.be/wLZKUqels4o

To create a static alert policy

  1. In BMC Helix Log Analytics, navigate to the Alerts > Alert Policies button page and click Create.
  2. Add the policy information by performing the following steps:
    1. Enter a unique name and description for the alert.
    2. In the  Precedence  field, set a precedence for the policy.
      The precedence number defines the priority for executing the policy. A policy with a lower precedence number is executed first. 
  3. In the  Policy Selection Criteria  section, perform the following steps:
    1. Configure the condition for which the event will be generated.
      For example, enter status Equals 401 AND filename EQUALS BMC_Apache_SantaClara.log. When you click in the box , you are prompted to make a selection. Each time you make a selection, you are progressively prompted to make another selection. 
      The selection criteria consist of an opening parenthesis, followed by the slot name, the operator, the slot value (which can be a string based on the type of slot selected), and the closing parenthesis. You can optionally select the logical operator AND or OR to add additional conditions. Specifying the opening and closing parentheses is optional.

      Important

      • The values that you enter for a field in the selection criteria are case-sensitive. For example, if the host name is WebServer.example.com, add the selection criteria as (host_name Equals WebServer.example.com). If you enter (host_name Equals webserver.example.com), the event is not generated.
      • Ideally,  each policy should be for a single data source.
    2. To group occurrences of a condition, perform one of the following actions:
      • In the  Group by  field, enter the values by which you want to group occurrences of a condition.
        For example, to group all occurrences of status 401 on a particular host name, enter the host name. You can enter a maximum of three values, but one must be the host name.
      • Click in the  Group by  field and select an appropriate option.
        The default value is  log_source_host .
    3. Select the Static Thresholds button and perform the following steps:
      1. In the  Alert Condition   field, decide how many times the condition must occur in a time period to generate the event
      2. Enter the status of the event.
      3. Enter and select the values in the  Minutes,  Minimum count is fields.
        For example, when status 401 is reported a minimum of 50 times within a 5-minute period, a critical event is generated.
    4. In the Alert Parameters section, complete the following steps:
      • To add host name to the event, in the  Alert Parameters  section, perform one of the following actions:
        This value helps you correlate events in BMC Helix AIOps.
        • In the  Hostname  field, enter a host name.
        • Click in the  Hostname  field and select the appropriate option.
          The default value is  log_source_host .
      • In the Message field, change the default message, if required.
        To use a log field value in the message, put double curly brackets around the field name such as {{ $.location }} .
      • In  Additional Details, configure additional event parameters such as source identifier.
        These values are set for the generated event.
  4. For data-level access control, select one or more user groups from the User Group list.

    Important

    Make sure that you select the same user group that you selected in the collection policy.

    With this setting, the system generates alerts, and only the selected user group can access them.
    Alerts are not generated if you select different user groups in the collection and alert policies.

  5. Enable and save the policy by performing the following steps:
    1. Select Enable Policy.
      You can choose to enable the collection policy later.
    2. Click Save.
      View all your policies on the Alert Policies page.


To edit a static alert policy

  1. In BMC Helix Log Analytics, navigate to Alerts > Alert Policies.
  2. Click the Action menu of the policy that you want to edit.
    AlertPolicies.png
  3. Make your changes and save the policy.

    Important

    You cannot change the policy name. If you want to change the name, create a new alert policy with the changed name.


Where to go from here

To create an alert policy to detect log anomalies, see Detecting-anomalies-from-logs.

For information about log events, see WIP-Log-events.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*