- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- UdmEventListOptions
- EventCountTimelineOptions
- UdmFieldAggregationsOptions
- DetectionOptions
- DetectionListOptions
- FunctionParameter
- GroupByField
- SelectedField
- FunctionType
- OrderBy
- UdmPrevalenceOptions
- UdmSearchAggregationBucketFunction
- UdmEventList
- EventCountTimeline
- EventCountTimelineBucket
- UdmFieldAggregations
- UdmFieldAggregation
- UdmValueCount
- UdmFieldValue
- Detections
- FunctionResponse
- FunctionResponseRow
- UdmPrevalenceResponse
- UdmPrevalenceBucket
- UdmPrevalence
- FieldAndValue
- KValueType
- Try it!
Full name: projects.locations.instances.legacy.legacyFetchUdmSearchView
Legacy endpoint for fetching events, filters, and histograms matching UDM search.
HTTP request
POST https://chronicle.googleapis.com/v1alpha/{instance}/legacy:legacyFetchUdmSearchView
Path parameters
Parameters | |
---|---|
instance |
Required. Chronicle instance this request is sent to. Format: projects/{project}/locations/{location}/instances/{instance} |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "baseline_query": string, "snapshot_query": string, "baseline_time_range": { object ( |
Fields | |
---|---|
baseline_query |
Required. Boolean query to search for events. You can refer to https://cloud.google.com/chronicle/docs/investigation/udm-search for the query syntax. Example: 'ip=/172.*/ AND metadata.event_type!="NETWORK_CONNECTION" AND ( target.ip = "3.225.179.73" OR target.ip = "23.47.48.70")' |
snapshot_query |
Query applied to the baseline query's events. In other words, this query is applied to the Snapshot produced from the baseline query. The |
baseline_time_range |
Required. Required, the time range to search for [inclusive start time, exclusive end time). |
snapshot_time_range |
The time range to filter for [inclusive start time, exclusive end time). This time range must be completely within |
event_list |
Parameters for the Events that will be streamed back. |
timeline |
Parameters for the EventCountTimeline that will be streamed back. |
field_aggregations |
Parameters for the Aggregated UDM fields that will be streamed back. |
case_insensitive |
If true, the search should be performed in a case-insensitive manner. This applies to both baseline and snapshot queries. |
detection_options |
Fetch alerts/detections relevant to the search result. |
stats_function_parameter |
The request to apply statistical function on filtered data. |
draft_data_access_scope |
Data access scope used to filter events. This is intended to be used by admins to preview in-development scopes. Should only be called by users with global access. If the caller does not have global access, the request will fail. |
prevalence |
Parameters to get prevalence counts on Events returned by UDM Search |
Response body
Depending on the parameters in ListUdmEventsV3Request, stream back some combination of UDM Events, EventCountTimeline, and UdmFieldAggregations.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "progress": number, "too_many_events": boolean, "complete": boolean, "valid_baseline_query": boolean, "baseline_events_count": integer, "valid_snapshot_query": boolean, "query_validation_errors": [ { object ( |
Fields | |
---|---|
progress |
Progress of the query represented as a double between 0 and 1. |
too_many_events |
If true, there are too many events to return and some have been omitted. |
complete |
Streaming for this response is done. There will be no additional updates. |
valid_baseline_query |
Indicates whether the request baseline_query is a valid structured query or not. If not, |
baseline_events_count |
The number of events in the baseline query. |
valid_snapshot_query |
Indicates whether the request baseline and snapshot queries are valid. If not, |
query_validation_errors[] |
Parse error for the baseline_query and/or the snapshot_query. |
runtime_errors[] |
Runtime errors. |
filtered_events_count |
The number of events in the snapshot that match the snapshot_query. This is <= |
stats_function_parameter_validation_error_message |
If the request's stats_function_parameter` is invalid, this field will contain the detailed error message. |
prevalence |
Prevalence results on Events returned by UDM Search |
events |
List of UDM events. |
timeline |
Timeline of event counts broken into buckets. |
field_aggregations |
List of UDM fields with aggregated values. |
grouped_field_aggregations |
List of grouped fields with aggregated values. |
detections |
List of relevant detections, if detection_list.max_returned_detections was set. |
stats_function_response |
Result for statistical function. |
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.legacyFetchUdmSearchView
For more information, see the IAM documentation.
UdmEventListOptions
JSON representation |
---|
{ "max_returned_events": integer } |
Fields | |
---|---|
max_returned_events |
|
EventCountTimelineOptions
This type has no fields.
UdmFieldAggregationsOptions
JSON representation |
---|
{ "max_values_per_field": integer } |
Fields | |
---|---|
max_values_per_field |
|
DetectionOptions
JSON representation |
---|
{ "snapshot_query": string, "detection_list": { object ( |
Fields | |
---|---|
snapshot_query |
|
detection_list |
|
field_aggregations |
|
DetectionListOptions
JSON representation |
---|
{ "max_returned_detections": integer } |
Fields | |
---|---|
max_returned_detections |
|
FunctionParameter
JSON representation |
---|
{ "grouped_fields": [ { object ( |
Fields | |
---|---|
grouped_fields[] |
|
selected_fields[] |
|
orders[] |
|
max_returned_rows |
|
GroupByField
JSON representation |
---|
{ "udm_field_path": string, "to_lower_case": boolean, // Union field |
Fields | |
---|---|
udm_field_path |
|
to_lower_case |
|
Union field
|
|
resolution_in_nano_seconds |
|
cidr_prefix_length_in_bits |
|
top_n_level_domain |
|
get_registered_domain |
|
SelectedField
JSON representation |
---|
{
"udm_field_path": string,
"function_type": enum ( |
Fields | |
---|---|
udm_field_path |
|
function_type |
|
percentile |
|
FunctionType
Enums | |
---|---|
FUNCTION_TYPE_UNSPECIFIED |
|
FUNCTION_TYPE_SUM |
|
FUNCTION_TYPE_COUNT |
|
FUNCTION_TYPE_COUNT_DISTINCT |
|
FUNCTION_TYPE_AVERAGE |
|
FUNCTION_TYPE_STDDEV |
|
FUNCTION_TYPE_MIN |
|
FUNCTION_TYPE_MAX |
OrderBy
JSON representation |
---|
{ "field_index": integer, "is_descending_order": boolean } |
Fields | |
---|---|
field_index |
|
is_descending_order |
|
UdmPrevalenceOptions
JSON representation |
---|
{
"get_prevalence": boolean,
"bucket_size": {
object ( |
Fields | |
---|---|
get_prevalence |
|
bucket_size |
|
UdmSearchAggregationBucketFunction
JSON representation |
---|
{ "resolution_in_seconds": integer } |
Fields | |
---|---|
resolution_in_seconds |
|
UdmEventList
JSON representation |
---|
{
"events": [
{
object ( |
Fields | |
---|---|
events[] |
|
EventCountTimeline
JSON representation |
---|
{
"buckets": [
{
object ( |
Fields | |
---|---|
buckets[] |
|
size_of_bucket_ms |
|
EventCountTimelineBucket
JSON representation |
---|
{ "baseline_event_count": integer, "event_count": integer, "baseline_alert_count": integer, "alert_count": integer } |
Fields | |
---|---|
baseline_event_count |
|
event_count |
|
baseline_alert_count |
|
alert_count |
|
UdmFieldAggregations
JSON representation |
---|
{
"fields": [
{
object ( |
Fields | |
---|---|
fields[] |
|
UdmFieldAggregation
JSON representation |
---|
{ "field_name": string, "baseline_event_count": integer, "event_count": integer, "too_many_values": boolean, "value_count": integer, "all_values": [ { object ( |
Fields | |
---|---|
field_name |
|
baseline_event_count |
|
event_count |
|
too_many_values |
|
value_count |
|
all_values[] |
|
top_values[] |
|
bottom_values[] |
|
UdmValueCount
JSON representation |
---|
{
"value": {
object ( |
Fields | |
---|---|
value |
|
baseline_event_count |
|
event_count |
|
UdmFieldValue
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
string_value |
|
int32_value |
|
uint32_value |
|
int64_value |
|
uint64_value |
|
float_value |
|
double_value |
|
enum_value |
|
bool_value |
|
bytes_value |
A base64-encoded string. |
is_null |
|
timestamp_value |
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Detections
JSON representation |
---|
{ "detections": [ { object ( |
Fields | |
---|---|
detections[] |
|
complete |
|
too_many_detections |
|
valid_snapshot_query |
|
baseline_alerts_count |
|
filtered_alerts_count |
|
detection_field_aggregations |
|
FunctionResponse
JSON representation |
---|
{
"rows": [
{
object ( |
Fields | |
---|---|
rows[] |
|
too_many_rows |
|
FunctionResponseRow
JSON representation |
---|
{
"values": [
{
object ( |
Fields | |
---|---|
values[] |
|
UdmPrevalenceResponse
JSON representation |
---|
{
"buckets": [
{
object ( |
Fields | |
---|---|
buckets[] |
|
UdmPrevalenceBucket
JSON representation |
---|
{
"prevalence": [
{
object ( |
Fields | |
---|---|
prevalence[] |
|
UdmPrevalence
JSON representation |
---|
{
"artifacts": [
{
object ( |
Fields | |
---|---|
artifacts[] |
|
prevalence |
|
FieldAndValue
JSON representation |
---|
{ "value": string, "entity_namespace": string, // Union field |
Fields | |
---|---|
value |
|
entity_namespace |
|
Union field
|
|
field_path |
|
kvalue_type |
|
KValueType
Enums | |
---|---|
UNKNOWN |
|
COLLECTOR_ID |
|
EVENT_SHARD |
|
ASSET_IP_ADDRESS |
|
MAC |
|
HOSTNAME |
|
PRODUCT_SPECIFIC_ID |
|
NAMESPACE |
|
DOMAIN_NAME |
|
RESOLVED_IP_ADDRESS |
|
STEMMED_DOMAIN_NAME |
|
PROCESS_ID |
|
FULL_COMMAND_LINE |
|
FILE_NAME |
|
FILE_PATH |
|
HASH_MD5 |
|
HASH_SHA256 |
|
HASH_SHA1 |
|
RAW_PID |
|
PARENT_PROCESS_ID |
|
EMAIL |
|
USERNAME |
|
WINDOWS_SID |
|
EMPLOYEE_ID |
|
PRODUCT_OBJECT_ID |
|
CLOUD_RESOURCE_NAME |
|
REGISTRY_KEY |
|
REGISTRY_VALUE_DATA |
|
REGISTRY_VALUE_NAME |