Full name: projects.locations.instances.generateUdmKeyValueMappings
GenerateUDMKeyValueMappings generates key value mapping of a raw log. For a JSON raw log { "menu": { "id": "file", "popup": { "value": "New", } } } The generated key value mappings will be: "menu.id": "file" "menu.popup.value": "New"
HTTP request
POST https://chronicle.googleapis.com/v1alpha/{instance}:generateUdmKeyValueMappings
Path parameters
Parameters | |
---|---|
instance |
Required. The Chronicle instance associated with the request. Format: projects/{project}/locations/{location}/instances/{instance} |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"log_format": enum ( |
Fields | |
---|---|
log_format |
Log format of the raw log. |
log |
The raw log. A base64-encoded string. |
use_array_bracket_notation |
Optional. Flag to format arrays as bracket notation. When true, arrays will be serialized with brackets surrounding the index When false, there will be no change in the serialization of arrays and the default dot (.) notation will be used. |
compress_array_fields |
Optional. Flag to compress array fields. When true, array fields will be truncated to include only the first element and elipssis (...) will be used to indicate if it has more elements. Also there will be no index supplied for the array elements. When false, array fields will be serialized with all elements. |
Response body
Response message for GenerateUDMKeyValueMappingsResponse.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "field_mappings": { string: string, ... } } |
Fields | |
---|---|
field_mappings |
map of extracted fields. An object containing a list of |
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.parserExtensions.generateKeyValueMappings
For more information, see the IAM documentation.