---
agentTools:
  projectIndex: https://help.logichub.com/llms.txt
---

# AlienVault USM

Version: 2.0.0

AlienVault USM is a SaaS security monitoring platform designed to centralize threat detection, incident response and compliance management of cloud, hybrid cloud, and on-premises environments from a cloud-based console.

# Connect AlienVault USM with LogicHub

1. Navigate to **Automations** > **Integrations**.
2. Search for **AlienVault USM**.
3. Click **Details**, then the **+** icon. Enter the required information in the following fields.
   * **Label**: Enter a connection name.
   * **Reference Values**: Define variables here to templatize integration connections and actions. For example, you can use <https://www.{{hostname}}.com> where, hostname is a variable defined in this input. For more information on how to add data, see ['Add Data' Input Type for Integrations](add-an-integration-connection#add-data-input-type-for-integrations).
   * **Verify SSL**: Select option to verify connecting server's SSL certificate (Default is Verify SSL Certificate).
   * **Remote Agent**: Run this integration using the LogicHub Remote Agent.
   * **URL**: URL to your AlienVault USM instance. Example: <https://subdomain.alienvault.cloud>.
   * **Client ID**: Client id for AlienVault USM.
   * **Secret Key**: Secret key for AlienVault USM.
4. After you've entered all the details, click **Connect**.

# Actions for AlienVault USM

## Search Alarms

Retrieves alarms from AlienVault (optionally filtered on various fields).

### Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

[block:parameters]
{
  "data": {
    "h-0": "Input Name",
    "h-1": "Description",
    "h-2": "Required",
    "0-0": "Filter: Suppressed",
    "0-1": "Select True to show only those alarms that have suppressed flag set.",
    "0-2": "Optional",
    "1-0": "Filter: Rule Intent",
    "1-1": "Enter [jinja-templated](https://help.logichub.com/docs/jinja-template) intent of the rule that triggered the alarm. Eg: `Environmental Awareness` or `{{rule_intent_column}}`.",
    "1-2": "Optional",
    "2-0": "Filter: Rule Method",
    "2-1": "Enter [jinja-templated](https://help.logichub.com/docs/jinja-template) method of the rule that triggered the alarm. Eg: `AWS EC2 Security Group Modified` or `{{rule_method_column}}`.",
    "2-2": "Optional",
    "3-0": "Filter: Rule Strategy",
    "3-1": "Enter [jinja-templated](https://help.logichub.com/docs/jinja-template) strategy of the rule that triggered the alarm. Eg: `Network Access Control Modification` or `{{rule_strategy_column}}`.",
    "3-2": "Optional",
    "4-0": "Filter: Sensor",
    "4-2": "Optional",
    "4-1": "Select column that contains uuid of the sensor to filter results for.",
    "5-0": "Filter: Start Time",
    "5-1": "Enter timestamp (in epoch millis) to only include alarms that occurred after this timestamp. Enter `flow-start-time` to use start-time of the time-range of the flow. Leaving it empty will not apply the filter.",
    "5-2": "Optional",
    "6-0": "Filter: End Time",
    "6-1": "Enter timestamp (in epoch millis) to only include alarms that occurred before this timestamp. Enter `flow-end-time` to use end-time of the time-range of the flow. Leaving it empty will not apply the filter.",
    "6-2": "Optional",
    "7-0": "Maximum Number Of Results To Return",
    "7-2": "Optional",
    "7-1": "The maximum number of results to return per call (Default is 100,000)."
  },
  "cols": 3,
  "rows": 8
}
[/block]

### Output

A JSON object containing multiple rows of results:

* has\_error: True/False
* error: message/null
* other keys containing information of Alarms

## Search Alarms V2

Retrieves alarms from AlienVault (optionally filtered on various fields).

### Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

[block:parameters]
{
  "data": {
    "h-0": "Input Name",
    "h-1": "Description",
    "h-2": "Required",
    "0-0": "Filter: Suppressed",
    "0-1": "Select True to show only those alarms that have suppressed flag set.",
    "0-2": "Optional",
    "1-0": "Filter: Rule Intent",
    "1-1": "Enter [jinja-templated](https://help.logichub.com/docs/jinja-template) intent of the rule that triggered the alarm. Eg: `Environmental Awareness` or `{{rule_intent_column}}`.",
    "1-2": "Optional",
    "2-0": "Filter: Rule Method",
    "2-1": "Enter [jinja-templated](https://help.logichub.com/docs/jinja-template) method of the rule that triggered the alarm. Eg: `AWS EC2 Security Group Modified` or `{{rule_method_column}}`.",
    "2-2": "Optional",
    "3-0": "Filter: Rule Strategy",
    "3-1": "Enter [jinja-templated](https://help.logichub.com/docs/jinja-template) strategy of the rule that triggered the alarm. Eg: `Network Access Control Modification` or `{{rule_strategy_column}}`.",
    "3-2": "Optional",
    "4-0": "Filter: Sensor",
    "4-2": "Optional",
    "4-1": "Select column that contains uuid of the sensor to filter results for.",
    "5-0": "Filter: Start Time",
    "5-1": "[Jinja-templated](https://help.logichub.com/docs/jinja-template) timestamp (in epoch millis) to only include alarms that occurred after this timestamp. Example {{start_time}} (Default value will be flow start time)",
    "5-2": "Optional",
    "6-0": "Filter: End Time",
    "6-1": "[Jinja-templated](https://help.logichub.com/docs/jinja-template) timestamp (in epoch millis) to only include alarms that occurred before this timestamp. Example {{end_time}} (Default value will be flow end time)",
    "6-2": "Optional",
    "7-0": "Maximum Number Of Results To Return",
    "7-2": "Optional",
    "7-1": "The maximum number of results to return per call (Default is 100,000)."
  },
  "cols": 3,
  "rows": 8
}
[/block]

### Output

A JSON object containing multiple rows of results:

* has\_error: True/False
* error: message/null
* other keys containing information of Alarms

## Get Alarm

Retrieve details for an alarm

### Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

[block:parameters]
{
  "data": {
    "h-0": "Input Name",
    "h-1": "Description",
    "h-2": "Required",
    "0-0": "Alarm ID",
    "0-1": "Select column that contains a value for an alarm id to fetch details.",
    "0-2": "Required"
  },
  "cols": 3,
  "rows": 1
}
[/block]

### Output

A JSON object containing multiple rows of results:

* has\_error: True/False
* error: message/null
* other keys containing Alarm Details

## Get Events by Alarm

Retrieve events associated with an alarm

### Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

[block:parameters]
{
  "data": {
    "h-0": "Input Name",
    "h-1": "Description",
    "h-2": "Required",
    "0-0": "Alarm ID",
    "0-1": "Select column that contains a value for an alarm id to fetch associated events.",
    "0-2": "Required"
  },
  "cols": 3,
  "rows": 1
}
[/block]

### Output

A JSON object containing multiple rows of results:

* has\_error: True/False
* error: message/null
* other keys containing Event Details

## Search Events

Retrieves events from AlienVault (optionally filtered on various fields)

### Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

[block:parameters]
{
  "data": {
    "0-0": "Filter: Account Name",
    "0-1": "Enter [jinja-templated](https://help.logichub.com/docs/jinja-template) name of the account to filter on. \nExample: `account` or `{{account_column}}`.",
    "h-1": "Description",
    "h-0": "Input Name",
    "h-2": "Required",
    "1-0": "Filter: Suppressed",
    "1-1": "Select True to show only those alarms that have suppressed flag set.",
    "0-2": "Optional",
    "1-2": "Optional",
    "2-2": "Optional",
    "3-2": "Optional",
    "4-2": "Optional",
    "5-2": "Optional",
    "6-2": "Optional",
    "2-0": "Filter: Plugin",
    "2-1": "Enter [jinja-templated](https://help.logichub.com/docs/jinja-template) name of the plugin to filter events on. \nExample: `plugin` or `{{plugin_column}}`.",
    "3-0": "Filter: Event Name",
    "3-1": "Enter [jinja-templated](https://help.logichub.com/docs/jinja-template) name of the event to filter events on. \nExample: `name` or `{{name_column}}`.",
    "4-0": "Filter: Source Name",
    "4-1": "Enter [jinja-templated](https://help.logichub.com/docs/jinja-template) name of the source to filter events on. \nExample: `name` or `{{name_column}}`.",
    "5-0": "Filter: Source Username",
    "5-1": "Enter [jinja-templated](https://help.logichub.com/docs/jinja-template) name of the user that triggered the event to filter events on. \nExample: `user@email.com` or `{{userid_column}}@email.com`.",
    "6-0": "Filter: Sensor",
    "6-1": "Select column that contains uuid of the sensor to filter results for.",
    "7-0": "Filter: Start Time",
    "7-1": "Enter timestamp (in epoch millis) to only include alarms that occurred after this timestamp. Enter `flow-start-time` to use start-time of the time-range of the flow. Leaving it empty will not apply the filter.",
    "7-2": "Optional",
    "8-2": "Optional",
    "8-0": "Filter: End Time",
    "8-1": "Enter timestamp (in epoch millis) to only include alarms that occurred before this timestamp. Enter `flow-end-time` to use end-time of the time-range of the flow. Leaving it empty will not apply the filter.",
    "9-0": "Page",
    "10-0": "Size",
    "9-1": "Enter page number (0 based) of results to return.",
    "10-1": "Enter number of results to return on each page.",
    "9-2": "Optional",
    "10-2": "Optional"
  },
  "cols": 3,
  "rows": 11
}
[/block]

### Output

A JSON object containing multiple rows of results:

* has\_error: True/False
* error: message/null
* other keys containing Event Details

## Add Label To Alarm

Add a label to an alarm in AlienVault

[block:callout]
{
  "type": "info",
  "title": "",
  "body": "To get \"Label ID\", update the label without made any changes using inspect element/network tab. The following image is shown for reference."
}
[/block]

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/c3d649c-label_id.png",
        "label_id.png",
        3350,
        1592,
        "#bec1c3"
      ]
    }
  ]
}
[/block]

### Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

[block:parameters]
{
  "data": {
    "h-0": "Input Name",
    "h-1": "Description",
    "h-2": "Required",
    "0-0": "Alarm ID",
    "0-1": "Jinja-templated text containing the id of the alarm. Example: {{alarm_id_column}}.",
    "0-2": "Required",
    "1-0": "Label ID",
    "1-1": "Jinja-templated text containing the id of the label. Example: {{label_id_column}}",
    "1-2": "Required"
  },
  "cols": 3,
  "rows": 2
}
[/block]

### Output

A JSON object containing multiple rows of results:

* has\_error: True/False
* error: message/null

# Release Notes

* `v2.0.0` - Updated architecture to support IO via filesystem
* `v1.3.3` - Updated search alarms action input of start and end time to jinja.