|
Aim of this article |
This section explains how to set up advanced alerts that scan logs for specific logging levels (e.g., errors, warnings) and notify specified recipients about matching events. It also explains how to create a Logic Change rule in Global Alerts. |
|---|---|
|
Related sections |
Account Notifications (Reference Manual) |
|
Required permissions |
Alerts - edit
|
To create a new alert:
-
Go to Account > Notifications > Alert Rules.
-
Click New Rule.
-
Fill in the following fields:
-
Rule Name – Enter a unique name of the rule.
-
Enabled – Allows you to turn on and off the rule.
-
Select Service – Select either IM instance or partition or Accelerator whose log file should be monitored.
Accelerator can be selected only from the Global Alerts section.
-
Matching Rule – Define what logging level from the log file should trigger the alert.
To trigger an alert for lines with the status ERROR
level:ERRORTo trigger an alert for any line in the log
level:* -
Email Notifications: Enter the email addresses of recipients who should receive notifications. Each email includes the following details:
-
Identification of the account and the monitored partition or integration
-
Total number of alert occurrences
-
Alert reason – explains why the alert was triggered
-
A "More information" link that redirects to the corresponding log entry in the Integration Overview > Log History screen in PlatformManager
-
A JSON file (as an email attachment) containing the first five records that triggered the alert
-
-
Webhook Notification – Enter MS Teams or Slack webhook URL, so that you receive the notification in one of these channels. For details see How to Get Webhook URL.
-
Frequency – Currently, the alert is executed every 5 minutes and this value cannot be changed.
-
Occurrence – Allows you to specify after how many occurrences of the given logging level the alert should be triggered.
-
Severity – Allows you to decide on the criticality of the alert. Select from: Critical, High, Medium or Low.
-
-
Save the rule.
Create a Logic Change Rule
A Logic Change rule notifies you when a user who is not on the allowed list changes a logic on a production partition. The Logic Change rule type is available only in Global Alerts.
Unlike a query rule, a Logic Change rule has no Select Service, Matching Rule, Frequency, or Occurrence field and no Test Rule button. PlatformManager checks the rule every 5 minutes.
Prerequisites
-
You have the Global Alerts - edit permission.
-
The monitored partitions run Pricefx version 17.3 or later and have the Environment value
PROD. Partitions on earlier versions or without this Environment value produce no logic change records.
To create a Logic Change rule:
-
Go to Administration > Global Alerts > Rules.
-
Click New Rule.
-
In the New Rule menu, select Logic Change.
The New Logic Change Rule form opens.
-
In Rule Name, enter a unique name of the rule.
-
Turn on Enabled.
-
In Partitions, select All production partitions, or select Selected partitions and select one or more partitions in Production partitions.
All production partitions also covers partitions that become production partitions after you save the rule.
Production partitions lists only partitions whose Environment value is
PROD. A saved partition that is no longer a production partition shows "(no longer a production partition)". -
In Allowed users, enter at least one partition user name. Logic changes by these users do not trigger the alert. Matching ignores case. Add technical users, such as pipeline and service accounts, explicitly.
Allowed users suggests the users who changed logics in the last 90 days. The suggestions cover the selected partitions, or all production partitions when you select no partition.
-
Enter recipients in Email Notification, a Teams or Slack webhook URL in Webhook Notification, or both. The rule needs at least one of them.
-
In Severity, select the criticality of the alert.
-
Click Save.
Expected Result
The rule list shows the rule with the type Logic Change.
When a user who is not on the allowed list changes a logic on a partition of the rule, PlatformManager sends an alert. The alert goes to every email recipient, and to the webhook if the rule has one. The alert arrives within one 5-minute check cycle plus the log ingestion delay. Changes on the same partition found in one check cycle arrive as one alert. Changes made before you created the rule, or while the rule was off, do not trigger the alert.
The email subject is "Platform Manager - {Severity} Alert", for example "Platform Manager - Medium Alert". The email contains:
-
The rule name, the severity, the partition, and the cluster.
-
A table of the logic changes with the columns Time (UTC), User, Logic type, Logic name, Valid after, Action, and Client.
-
A "Show logic changes" button that opens Production Logic Changes filtered to the partition, its cluster, and the period of the alert. Only Pricefx users can open Production Logic Changes.
If the Logic Change rule does not save, check that the rule has:
-
At least one allowed user.
-
At least one email recipient or a webhook URL.
-
At least one partition, or All production partitions. Each partition you add to the rule must be a production partition.
You cannot change the type of a saved rule. To use another type, create a new rule.