サポートと今すぐチャット
サポートとのチャット

syslog-ng Store Box 7.4.0 - User Guide

Setting up alerts on the search interface

This section describes how to set up alerts using the search interface.

To set up alerts using the search interface

  1. Configure a target where you wish to send your content-based alerts.

    Alert targets are set up and modified by superusers or user groups that have been assigned read and write/perform access to the Policies object on the AAA > Access Control page.

    To specify an alert target:

    1. Go to Policies > Alert targets.

    2. Click .

      The new tab that opens allows you to record an alert target.

      Figure 18: Policies > Alert targets — Alert targets page

    3. Enter a name for your alert target.

      NOTE: Alert target names must be unique.

    4. In the Target email address field, enter the email address where you wish to send alerts.

      NOTE: You can specify only one email address per target. However, you can add multiple targets per alert, which allows you to send a specific alert to more than one email addresses (if required).

    5. In the Cooldown period field, enter the minimum amount of time (in seconds) that should pass between the sending of two alert messages to this target.

      The minimum value is 60 seconds, and the maximum value is 999999 seconds.

      NOTE: An alert message is sent only when a match is found between the contents of log messages and a search expression. This means that if no match is found, more time may pass between two alert messages than the interval specified as the cooldown period.

    6. Click to save your details.

      Expected result:

      You have successfully configured a target for your alert where alert messages will be sent.

  2. (Optional) You can also specify the email address from which the alerts are sent to your targets. Configuring an email address from where you wish to receive emails can be useful for filtering purposes. If you do not specify such an email address, a default address will be used.

    For detailed instructions, see the steps describing how to specify a Send emails as email address in Configuring email alerts in the Administration Guide.

  3. Once you have set up a target or targets, navigate to the search interface by going to Search > Logspaces.

    Figure 19: Search > Logspaces — Setting up alerts on the search interface

  4. In the Logspace name menu, select the relevant logspace.

  5. In the Search expression field, enter the search expression that you wish to receive alerts about and click .

  6. To configure additional details for the alert, click . The Content-based alerting panel is displayed.

    Figure 20: Search > Logspaces — Content-based alerting panel

    The Logspace field displays the name of the logspace that you have selected from the Logspace name menu. The Search expression field displays the search expression that you entered in the Search expression field.

  7. Enter a name for your alert in the Alert name field.

    NOTE: Alert names must be globally unique. Using a prefix before alert names can help avoid specifying a name that is already in use.

  8. Select a target from Targets. You can select multiple targets if you wish to distribute the alert to multiple email addresses.

    You can remove targets you have already added by clicking (Delete target) in front of the target's name.

  9. To save your details, click .

    NOTE: If you want to modify your alert later on, you can make changes via Search > Content-Based Alerts. For more information, see Setting up alerts on the Search > Content-Based Alerts page.

Setting up alerts on the Search > Content-Based Alerts page

This section describes how to set up alerts on the Search > Content-Based Alerts page.

To set up alerts on the Search > Content-Based Alerts page

  1. Configure a target where you wish to send content-based alerts. For details on how to do this, see Step 1 in Setting up alerts on the search interface.

  2. (Optional) You can also specify the email address from which alerts are sent. Configuring an email address from where you wish to receive emails can be useful for filtering purposes. If you do not specify such an email address, a default address will be used.

    For detailed instructions, see the steps describing how to specify a Send emails as email address in Configuring email alerts in the Administration Guide.

  3. Once you have set up a target or targets, navigate to Search > Content-Based Alerts.

  4. Click .

    The new tab that opens allows you to specify a content-based alert.

    Figure 21: Search > Content-Based Alerts — Setting up content-based alerts on the Search

  5. Enter a name for your alert.

    NOTE: Alert names must be globally unique. Using a prefix before alert names can help avoid specifying a name that is already in use.

  6. In the Search expression field, enter the search expression that you wish to receive alerts about.

  7. Select the appropriate logspace from the Logspace menu.

  8. Select a target or targets from the Alert targets menu. You can select multiple targets if you wish to distribute the alert to multiple email addresses.

    You can remove targets you have already added by clicking .

  9. To save your details, click .

    NOTE: If you wish to modify your alert later on, you can make changes by revisiting the relevant steps on the Search > Content-Based Alerts page.

Format of alert messages

Once content-based alerts have been created, syslog-ng Store Box(SSB) will send alert messages to the configured targets.

The alert email's subject line will follow this format:

Alert: [myalert][mylogspace]

Alert messages will be presented in the following format:

Alert: There were at least 10000 matches between Mon 18 Apr 2016 10:45:38 CEST and Mon 18 Apr 2016 10:45:43 CEST on
 * logspace: "<mylogspace>"
 * alert: "<myalert>"
 * search expression: "<mysearchexpression>"

To review these matches on your SSB appliance, see:
https://<IP_address_of_SSB>:<port_number>/index.php?_backend=SearchLogspace#logspace_name=mylogspace&
from=1460976338&to=1460976343&search_expression=mysearchexpression

Note: You will not receive a new alert message for a cooldown period of 1 minute for this alert.

Note that the contents of the log messages are not shared in the alert message. A URL is provided to direct users to their SSB appliance.

関連ドキュメント

The document was helpful.

評価を選択

I easily found the information I needed.

評価を選択