Method: legacy.legacySearchAlerts

Full name: projects.locations.instances.legacy.legacySearchAlerts

Legacy endpoint for retrieving a list of all alerts(with Events and Raw Logs as clients require in requests) within the customer's environment.

HTTP request

GET https://chronicle.googleapis.com/v1alpha/{instance}/legacy:legacySearchAlerts

Path parameters

Parameters
instance

string

Required. Chronicle instance this request is sent to. Format: projects/{project}/locations/{location}/instances/{instance}

Query parameters

Parameters
startTime

string (Timestamp format)

Required. Beginning of time range, inclusive, to search for alerts.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

endTime

string (Timestamp format)

Required. End of time range, exclusive, to search for alerts.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

pageSize

integer

The maximum number of Alerts to return. The service may return fewer than this value. If unspecified, at most 100,000 Artifacts will be returned. The maximum value is 100,000; values above 100,000 will be coerced to 100,000.

pageToken

string

A page token, received from a previous ListAlerts call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to ListAlerts must match the call that provided the page token.

alertResponseMode

enum (AlertResponseMode)

Retrieve the full raw log associated with each event.

Request body

The request body must be empty.

Response body

Response message for LegacySearchAlerts.

If successful, the response body contains data with the following structure:

JSON representation
{
  "alerts": [
    {
      object (AssetAlert)
    }
  ],
  "next_page_token": string,
  "user_alerts": [
    {
      object (UserAlert)
    }
  ]
}
Fields
alerts[]

object (AssetAlert)

A list of alerts associated with certain assets.

next_page_token

string

A page token, to be used in a future ListAlerts call. Provide this token in the next ListAlerts call in the page_token field to get the next page of results.

user_alerts[]

object (UserAlert)

A list of alerts associated with certain users.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the instance resource:

  • chronicle.legacies.legacySearchAlerts

For more information, see the IAM documentation.

AlertResponseMode

Alert response mode.

Enums
ALERT_RESPONSE_MODE_UNSPECIFIED Default value has the same effect as INCLUDE_RAW_LOG.
INCLUDE_RAW_LOG Full Event including Raw Log.
EVENT_ONLY Retrieve event only.

AssetAlert

Several alerts related to a single asset.

JSON representation
{
  "asset": {
    object (AssetIndicator)
  },
  "alert_infos": [
    {
      object (AlertInfo)
    }
  ]
}
Fields
asset

object (AssetIndicator)

The asset triggering the alert.

alert_infos[]

object (AlertInfo)

Detailed information about the alerts.

AlertInfo

Information pertaining to a specific alert.

JSON representation
{
  "name": string,
  "source_product": string,
  "severity": string,
  "timestamp": string,
  "raw_log": string,
  "uri": [
    string
  ],
  "udm_event": {
    object (UDM)
  }
}
Fields
name

string

The name of the alert.

source_product

string

The source of the alert.

severity

string

Normalized severity level of the alert.

timestamp

string (Timestamp format)

Timestamp of the alert.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

raw_log

string (bytes format)

This is the raw event log of the corresponding alert event.

A base64-encoded string.

uri[]

string

URLs that direct into the Backstory UI.

udm_event

object (UDM)

UDM event corresponding to the alert.

UserAlert

Several alerts related to a single user.

JSON representation
{
  "user": {
    object (UserIndicator)
  },
  "alert_infos": [
    {
      object (AlertInfo)
    }
  ]
}
Fields
user

object (UserIndicator)

The user triggering the alert.

alert_infos[]

object (AlertInfo)

Detailed information about the alerts.