AlertRules
AlertRules - Activate
Activates the alert rule with given id.
POST
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/AlertRules/{id}/activateParameter
id
-
String
Alert rule id. Mandatory Field
Request Example
{
"data": {}
}Success Response
{
"status": "Success",
"message": "/monitorapi/{pool_UUID}/{logpoint_identifier}/orders/{request_id}"
}AlertRules - Create
Create a new alert rule
POST
Parameter
aggregate
Risk Calculation Function
String
Risk Calculation Function. Accepts values such as "min","max" and "avg". Used for calculating Risk Value of the alert. Mandatory Field
apply_jinja_template
Apply Jinja Template
String
Option to view rows that is displayed in Incident Data View in a format defined by the Jinja template. Optional Field
alert_context_template
Template Syntax
String
Specify the Jinja Template syntax for rows that is displayed in the Incident Data View. Optional Field
assigned_to
Assigned To
String
ID of the user who can re-assign, comment on and view the data of the generated incident. Optional Field
attack_tag
Attack Tag
[String]
List of attack tag IDs to categorize the alert rules. Use MitreAttacks - FetchMitreAttacks to obtain value for this parameter. Optional Field
condition_option
Condition
String
Accepts values such as "greaterthan", "lessthan", "equalsto", "lessequal", "equals", "moreequal" and "notequal". Mandatory Field
condition_value
Condition
int
Can be positive integer or 0. Mandatory Field
delay_interval_minute
Delay Threshold (Minutes)
int
Specify the value of delay interval in minutes to wait for the logs before processing. To set the value, "timestamp_on" parameter value must be "log_ts" in SystemSettingsGeneral API. Accepts values from 1 to 1440 only. Optional Field.
description
Description
String
Description of the alert rule. Optional Field
flush_on_trigger
Flush On Trigger
String
Enabling Flush on Trigger activates the next alert rule only by new set of events. Accepts only "on" as value to enable flush on trigger. Optional Field
limit
Limit
int
Number of logs. Minimum value for the field is 1. Mandatory Field
log_source
Log Sources
[String]
List of log sources from where the logs should be collected. Optional Field
manageable_by
Manageable by
[String]
A list of incident user groups ID where users can re-assign, comment on, view data and resolve the generated incidents. Optional Field
metadata
Metadata
[json]
Optional Field. Array of key-value pair objects to define custom metadata for an alert rule. Each object in the array must include the following parameters: field: Field for the custom metadata. value: Value associated with the given field.
original_data
Alert using original data
boolean
Alert will be generated with encrypted data where Data Privacy Module is enabled. Setting this value as "true" sends request to generate alert with original data. Can be true/false. Optional Field
owner
-
String
ID of the user who owns alert rule. Mandatory Field
query
Query
String
The query for which the alert rule should be fired. Optional Field
repos
Repos
[String]
The list of the Repos that you want to monitor for the matching alert condition. Use Repos - FetchRemoteRepos to obtain value for this parameter. Mandatory Field
risk
Risk
String
Risk level of the Alert. Accepts values such as "low", "medium", "high" and "critical". Used for calculating Risk Value of the alert. Mandatory Field
search_interval_minute
Search Interval (Minutes)
int
Specify the custom search interval for retrieving the logs via search in minutes. Optional Field
searchname
Name
String
Name of the alert. It should be a unique valid string. Mandatory Field
throttling_enabled
Alert Throttling
String
Accepts "on" as value to enable Alert Throttling. Can be "on" only. Optional Field
throttling_field
Field
String
Specify a field on the basis of which alert throttling will be applied. Can be positive integer or 0. Mandatory only when the value of throttling_enabled is "on". Optional Field
throttling_time_range
Minutes
int
Specify a time in minutes for which alert will not be dispatched. Mandatory only when the value of the value of throttling_enabled is "on". Optional Field
timerange_day
Day
int
Specify the timerange in Day for which the alert condition is to be matched. Either timerange_day or timerange_hour must be present when timerange_minute is not present in the request. Optional Field
timerange_hour
Hour
int
Specify the timerange in Hour for which the alert condition is to be matched. Either timerange_day or timerange_hour must be present when timerange_minute is not present in the request. Optional Field
timerange_minute
Minute
int
Specify the timerange in Minute for which the alert condition is to be matched. Mandatory only when timerange_day and timerange_hour is not present in the request. Optional Field
Request Example
Success Response
AlertRules - Deactivate
Deactivates the alert rule with given id.
POST
Parameter
id
-
String
Alert rule id. Mandatory Field
Request Example
Success Response
AlertRules - Edit
Edit alert rule with given id
PUT
Parameter
aggregate
Risk Calculation Function
String
Risk Calculation Function. Accepts values such as "min","max" and "avg". Used for calculating Risk Value of the alert. Mandatory Field
alert_context_template
Template Syntax
String
Specify the Jinja Template syntax for rows that will be displayed in the Incident Data View. Optional Field
assigned_to
Assigned To
String
ID of the user who can re-assign, comment on and view the data of the generated incident. Optional Field
attack_tag
Attack Tag
[String]
List of attack tag IDs to categorize the alert rules. Use MitreAttacks - FetchMitreAttacks to obtain value for this parameter. Optional Field
condition_option
Condition
String
Accepts values such as "greaterthan", "lessthan", "equalsto", "lessequal", "equals", "moreequal" and "notequal". Mandatory Field
condition_value
Condition
int
Can be positive integer or 0. Mandatory Field
delay_interval_minute
Delay Threshold (Minutes)
int
See Create for details. Optional Field
description
Description
String
Description of the alert rule. Optional Field
flush_on_trigger
Flush On Trigger
String
Accepts only "on". Optional Field
id
-
String
Alert rule id. Mandatory Field
limit
Limit
int
Number of logs. Minimum value for the field is 1. Mandatory Field
log_source
Log Sources
[String]
List of log sources from where the logs should be collected. Optional Field
manageable_by
Manageable by
[String]
List of incident user groups ID. Optional Field
metadata
Metadata
[json]
Array of key-value pair objects for custom metadata. Optional Field
original_data
Alert using original data
boolean
Can be true/false. Optional Field
query
Query
String
The query for which the alert rule should be fired. Optional Field
repos
Repos
[String]
The list of the Repos that you want to monitor for the matching alert condition. Mandatory Field
risk
Risk
String
Risk level of the Alert. Mandatory Field
search_interval_minute
Search Interval (Minutes)
int
Optional Field
searchname
Name
String
Name of the alert rule. Mandatory Field
throttling_enabled
Alert Throttling
String
Accepts "on". Optional Field
throttling_field
Field
String
Mandatory only when throttling_enabled is "on". Optional Field
throttling_time_range
Minutes
int
Mandatory only when throttling_enabled is "on". Optional Field
timerange_day
Day
int
Either timerange_day or timerange_hour must be present when timerange_minute is not present. Optional Field
timerange_hour
Hour
int
See above. Optional Field
timerange_minute
Minute
int
Mandatory only when timerange_day and timerange_hour are not present. Optional Field
Request Example
Success Response
AlertRules - EmailNotification
Setup email notification for an alert rule
POST
Parameter
b64_logo
-
String
Base64 encoded logo image. Only "jpeg" image type upto 160*75 dimension is allowed. Should be a comma separated value containing type of image and base64 encoded value. Mandatory only when logo_enable is "true". Optional Field
dispatch_option
Notification Trigger
String
"auto" or "manual". Optional Field
email_emails
Emails
[String]
List of email addresses. Mandatory only when notify_email is "on". Optional Field
email_template
Message
String
Message of the Email. Optional Field
email_threshold_option
Threshold
String
Time Unit for email threshold. Can be minute/hour/day. Mandatory only when email_threshold_value is required. Optional Field
email_threshold_value
Threshold
int
Value for email threshold. Can be positive integer. Mandatory only when email_threshold_option is required. Optional Field
id
-
String
Alert rule id. Mandatory Field
link_disable
Disable Search Link
boolean
true to disable the search link in the email, false to enable. Optional Field
logo_enable
Enable Logo
boolean
true to add a logo or false to remove/disable the logo. Optional Field
notify_email
Notify via email
String
Accepts on/off. Mandatory Field
simple_view
Toggle Simple View
boolean
Option to edit the notification message in plain text or view a rendered preview.
subject
Subject
String
Subject of the Email. Optional Field
Request Example
Success Response
AlertRules - FetchMyRules
Fetches all alert rules defined under MyRules.
POST
Parameter
active
-
boolean
Status (active/deactive) of the alert rules to fetch. true fetches active rules. Optional Field
log_source
-
[String]
List of log sources to filter alert rules. Optional Field
Request Example
Success Response
AlertRules - FetchSharedRules
Fetches all alert rules that has been shared.
POST
Parameter
Field
Label in UI
Type
Description
active
-
boolean
Status(active/deactive) of the alert rules to fetch. Setting this value as "true" sends request to generate all active alert rules defined under SharedRules section. Can be true/false. Optional Field
log_source
-
[String]
List of log sources. Filters alert rules according to the specified log sources in the list. If at least one log source in the alert rule matches one in the list, it is included in the filtered results. Optional Field.
Request Example
Success Response
AlertRules - FetchUsedRules
Fetches all the vendor alert rules that have been used.
POST
Parameter
Field
Label in UI
Type
Description
active
-
boolean
Status(active/deactive) of the alert rules to fetch. Setting this value as "true" sends request to generate all active alert rules defined under UsedRules section. Can be true/false. Optional Field
log_source
-
[String]
List of log sources. Filters alert rules according to the specified log sources in the list. If at least one log source in the alert rule matches one in the list, it is included in the filtered results. Optional Field.
Request Example
Success Response
AlertRules - FetchUsedSharedRules
Fetches the alert rules that were shared by users and are currently being used in the given Logpoint.
POST
Parameter
Field
Label in UI
Type
Description
active
-
boolean
Status(active/deactive) of the alert rules to fetch. Setting this value as "true" sends request to generate all active alert rules defined under UsedSharedRules section. Can be true/false. Optional Field
log_source
-
[String]
List of log sources. Filters alert rules according to the specified log sources in the list. If at least one log source in the alert rule matches one in the list, it is included in the filtered results. Optional Field.
Request Example
Success Response
AlertRules - FetchVendorRules
Fetches all alert rules provided by the vendor.
POST
Parameter
log_source
-
[String]
List of log sources. Optional Field.
Request Example
Success Response
AlertRules - HTTPNotification
Setup HTTP notification for an alert rule.
POST
Parameter
dispatch_option
Notification Trigger
String
"auto" or "manual". Optional Field
http_body
String
Template for the body of the HTTP notification. Provide only when http_request_type is POST, PUT, or PATCH. Optional Field
http_header
Headers
json
Define auth_type (basic_auth/api_token/bearer_token), auth_key, auth_value (for api_token), auth_pass (for basic_auth). Optional Field
http_querystring
Query String
String
Query string. Mandatory only when notify_http is "on". Optional Field
http_request_type
Request Type
String
GET/POST/PUT/DELETE/PATCH/HEAD. Mandatory only when notify_http is "on". Optional Field
http_threshold_option
Threshold
String
Time Unit for http threshold. minute/hour/day. Optional Field
http_threshold_value
Threshold
int
Value for http threshold. Optional Field
http_url
Base URL
String
URL to send HTTP notification. Mandatory only when notify_http is "on". Optional Field
id
-
String
Alert rule id. Mandatory Field
notify_http
Notify via HTTP
String
Accepts on/off. Mandatory Field
protocol
Protocol
String
HTTP/HTTPS. Optional Field (default HTTP when notify_http is "on" and protocol not provided).
Request Example
Success Response
AlertRules - Install
Install a given alertrule pak file
POST
Parameter
file_location
-
String
Location of the file to install. Can be either 'private' or 'public'. Mandatory Field
file_name
Alert Rules
String
Name of the pak file for AlertRules. Mandatory Field
owner
-
String
ID of the user who owns alert rule. Mandatory Field
Request Example
Success Response
AlertRules - ListPrivateUploads
List all the pak files that contain alert rules in private storage
GET
Success Response
AlertRules - ListPublicUploads
List all the pak files that contain alert rules in public storage
GET
Success Response
AlertRules - SMSNotification
Setup SMS notification for an alert rule.
POST
Parameter
dispatch_option
Notification Trigger
String
"auto" or "manual". Optional Field
id
-
String
Alert rule id. Mandatory Field
notify_sms
Notify via SMS
String
Accepts on/off. Mandatory Field
sms_body
Body
String
SMS notification message. Optional Field
sms_password
Password
String
SMS server password. Mandatory only when notify_sms is "on". Optional Field
sms_port
Port
int
Port number of SMS server. Mandatory only when notify_sms is "on". Optional Field
sms_receivers
Receivers
[String]
List of receiver phone numbers (3-15 digits). Mandatory only when notify_sms is "on". Optional Field
sms_sender
Sender ID
String
Sender ID for the SMS server. Mandatory only when notify_sms is "on". Optional Field
sms_server
SMSC Server
String
Destination server address. Mandatory only when notify_sms is "on". Optional Field
sms_threshold_option
Threshold
String
Time Unit for sms threshold. minute/hour/day. Optional Field
sms_threshold_value
Threshold
int
Value for sms threshold. Optional Field
sms_username
Username
String
Username for the SMS server. Mandatory only when notify_sms is "on". Optional Field
Request Example
Success Response
AlertRules - SNMPNotification
Setup SNMP notification for an alert rule
POST
Parameter
dispatch_option
Notification Trigger
String
"auto" or "manual". Optional Field
id
-
String
Alert rule id. Mandatory Field
notify_snmp
Notify via SNMP Traps
String
Accepts on/off. Mandatory Field
snmp_agent
Agent
String
Name of the agent that sends SNMP trap. Mandatory when snmp_version is SNMPv2c. Optional Field
snmp_authorization_key
Authorization Key
String
Authorization Key for SNMPv3. Mandatory when snmp_version is SNMPv3. Optional Field
snmp_community_string
Community String
String
Passphrase for SNMPv2c. Optional Field
snmp_ip
IP
String
IP address of trap receiver. Mandatory only when notify_snmp is "on". Optional Field
snmp_message
Message
String
OID's corresponding value in the Message. Optional Field
snmp_oid
OID
String
Valid SNMP trap or Enterprise specific OID in dotted decimal format. Mandatory only when notify_ssh is "on". Optional Field
snmp_port
Port
int
Port number of trap receiver. Mandatory only when notify_snmp is "on". Optional Field
snmp_private_key
Private Key
String
Private Key for SNMPv3. Optional Field
snmp_threshold_option
Threshold
String
Time Unit for snmp threshold. minute/hour/day. Optional Field
snmp_threshold_value
Threshold
int
Value for snmp threshold. Optional Field
snmp_username
Username
String
Username for SNMPv3. Optional Field
snmp_version
SNMP Version
String
SNMPv2c or SNMPv3. Optional Field
Request Example
Success Response
AlertRules - SSHNotification
Setup SSH notification for an alert rule.
POST
Parameter
dispatch_option
Notification Trigger
String
"auto" or "manual". Optional Field
id
-
String
Alert rule id. Mandatory Field
notify_ssh
Notify via SSH
String
Accepts on/off. Mandatory Field
ssh_auth_password
Password
String
Password. Mandatory when ssh_auth_type is "password". Optional Field
ssh_auth_type
Authentication
String
"password" or "certificate". Mandatory only when notify_ssh is "on". Optional Field
ssh_cert_type
Certificate Type
String
Use when ssh_auth_type is certificate. Values: system_cert, user_cert. Optional Field
ssh_command
Command
String
Command to execute when the alert rule is fired. Mandatory only when notify_ssh is "on". Optional Field
ssh_port
Port
int
Port number. Mandatory only when notify_ssh is "on". Optional Field
ssh_server
Server
String
Destination server address. Mandatory only when notify_ssh is "on". Optional Field
ssh_threshold_option
Threshold
String
Time Unit for ssh threshold. minute/hour/day. Optional Field
ssh_threshold_value
Threshold
int
Value for ssh threshold. Optional Field
ssh_username
Username
String
Username for the destination server. Optional Field
Request Example
Success Response
AlertRules - ShareWithUsers
Shares the alert rule by id with specified usergroups or users with specific permissions.
POST
Parameter
id
-
String
Alert rule id. Mandatory Field
rbac_config
-
[json]
Alert sharing config using RBAC. Either empty list or objects with group_id (mandatory), group_permission (READ/EDIT/FULL) or user_permissions (list). For user_permissions, each object must have user_id and permission (READ/EDIT/FULL). Mandatory Field
Request Example
Success Response
AlertRules - SyslogNotification
Setup Syslog notification for an alert rule
POST
Parameter
dispatch_option
Notification Trigger
String
"auto" or "manual". Optional Field
facility
Facility
int
Values 0 to 23. Optional Field
id
-
String
Alert rule id. Mandatory Field
message
Message
String
Free-form message. Optional Field
notify_syslog
Notify via Syslog
String
Accepts on/off. Mandatory Field
port
Port
int
Port number of remote syslog server. Mandatory only when notify_syslog is "on". Optional Field
protocol
-
String
UDP/TCP. Mandatory only when notify_syslog is "on". Optional Field
server
Server
String
Server address of remote syslog server. Mandatory only when notify_syslog is "on". Optional Field
severity
Severity
int
Values 0 to 7. Mandatory only when notify_syslog is "on". Optional Field
split_rows
-
boolean
true/false. If true send each new line as separate syslog message. Optional Field
threshold_option
Threshold
String
Time Unit for syslog threshold. minute/hour/day. Optional Field
threshold_value
Threshold
int
Value for syslog threshold. Optional Field
Request Example
Success Response
AlertRules - TransferOwnership
Transfer ownership of the alert rule to another user.
POST
Parameter
id
-
String
Alert rule id. Mandatory Field
userid
-
String
Transfer ownership to this User id. Mandatory Field
Request Example
Success Response
AlertRules - Trash
Deletes the alert rule with given id.
DELETE
Parameter
id
-
String
Alert rule id. Mandatory Field
Success Response
AlertRules - TrashPrivateUploads
Delete the file with given name from private storage
DELETE
Parameter
file_name
String
Name of the file to be deleted. Mandatory Field
Success Response
AlertRules - TrashPublicUploads
Delete the file with given name from public storage
DELETE
Parameter
file_name
String
Name of the file to be deleted. Mandatory Field
Success Response
AlertRules - UnshareWithUsers
Unshares the alert rule with given id from all users within the pool.
POST
Parameter
id
-
String
Alert rule id. Mandatory Field
Request Example
Success Response
AlertRules - Upload
Upload pak files that contains alert rules to private storage. This upload should be used for alert rules only.
POST
Header
file_name
Name of the file to be uploaded.
Content-Type
application/octet-stream
replace_existing
Set 'true' to replace existing file with same name. Default 'false'. Optional
Parameter
file
[Object]
(pak) to be uploaded. Mandatory Field
Success Response
AlertRules - UploadPublic
Upload pak files that contain alert rules to public storage. This upload should be used for alert rules only.
POST
Header
file_name
Name of the file to be uploaded.
Content-Type
application/octet-stream
replace_existing
Set 'true' to replace existing file with same name. Default 'false'. Optional
Parameter
file
[Object]
(pak) to be uploaded. Mandatory Field
Success Response
AlertRules - UseAlertRules
Use the alert rules shared by other LogPoint users or the vendor alert rules.
POST
Parameter
id
-
String
Alert rule id. Mandatory Field
owner
-
String
ID of the user who will use the given alert rule. Mandatory Field
Request Example
Success Response
AlertRules - UseVendorRules
DEPRECATED — Will be removed in future version.
Use AlertRules - UseAlertRules API instead.
POST
Parameter
id
-
String
Alert rule id. Mandatory Field
owner
-
String
ID of the user who owns alert rule. Mandatory Field
Request Example
Success Response
Last updated
Was this helpful?