@@ -6611,6 +6611,7 @@ components:
66116611 - Select value from matching element
66126612 - Compute array length
66136613 - Append a value to an array
6614+ - Extract key-value pairs from an array
66146615 properties:
66156616 is_enabled:
66166617 default: false
@@ -6633,6 +6634,7 @@ components:
66336634 - $ref: "#/components/schemas/LogsArrayProcessorOperationAppend"
66346635 - $ref: "#/components/schemas/LogsArrayProcessorOperationLength"
66356636 - $ref: "#/components/schemas/LogsArrayProcessorOperationSelect"
6637+ - $ref: "#/components/schemas/LogsArrayProcessorOperationExtractKeyValue"
66366638 LogsArrayProcessorOperationAppend:
66376639 description: Operation that appends a value to a target array attribute.
66386640 properties:
@@ -6662,6 +6664,44 @@ components:
66626664 type: string
66636665 x-enum-varnames:
66646666 - APPEND
6667+ LogsArrayProcessorOperationExtractKeyValue:
6668+ description: Operation that extracts key-value pairs from a `source` array and stores the result in the `target` attribute.
6669+ properties:
6670+ key_to_extract:
6671+ description: Key of the attribute in each array element that holds the name to use for the extracted attribute.
6672+ example: name
6673+ type: string
6674+ override_on_conflict:
6675+ default: false
6676+ description: Whether to override the target element if it's already set.
6677+ type: boolean
6678+ source:
6679+ description: Attribute path of the array to extract key-value pairs from.
6680+ example: tags
6681+ type: string
6682+ target:
6683+ description: Attribute that receives the extracted key-value pairs. If not specified, the extracted attributes are added at the root level of the log.
6684+ example: extracted
6685+ type: string
6686+ type:
6687+ $ref: "#/components/schemas/LogsArrayProcessorOperationExtractKeyValueType"
6688+ value_to_extract:
6689+ description: Key of the attribute in each array element that holds the value to use for the extracted attribute.
6690+ example: value
6691+ type: string
6692+ required:
6693+ - type
6694+ - source
6695+ - key_to_extract
6696+ - value_to_extract
6697+ type: object
6698+ LogsArrayProcessorOperationExtractKeyValueType:
6699+ description: Operation type.
6700+ enum: [key-value]
6701+ example: key-value
6702+ type: string
6703+ x-enum-varnames:
6704+ - KEY_VALUE
66656705 LogsArrayProcessorOperationLength:
66666706 description: Operation that computes the length of a `source` array and stores the result in the `target` attribute.
66676707 properties:
@@ -6746,7 +6786,7 @@ components:
67466786 type: string
67476787 override_on_conflict:
67486788 default: false
6749- description: Override or not the target element if already set,
6789+ description: Whether to override the target element if it's already set.
67506790 type: boolean
67516791 preserve_source:
67526792 default: false
@@ -7912,7 +7952,7 @@ components:
79127952 type: string
79137953 override_on_conflict:
79147954 default: false
7915- description: Override or not the target element if already set.
7955+ description: Whether to override the target element if it's already set.
79167956 type: boolean
79177957 preserve_source:
79187958 default: false
0 commit comments