experimental[]
The extract_array
processor populates fields with values read from an array
field.
The following example populates source.ip
with the first element of
the my_array
field, destination.ip
with the second element, and
network.transport
with the third.
- extract_array:
field: my_array
mappings:
source.ip: 0
destination.ip: 1
network.transport: 2
processors.asciidoc :works-with-fields!:
Name | Required | Default | Description |
---|---|---|---|
|
Yes |
The array field whose elements are to be extracted. |
|
|
Yes |
Maps each field name to an array index. Use 0 for the first element in the array. Multiple fields can be mapped to the same array element. |
|
|
No |
|
Whether to ignore events where the array field is missing. If |
|
No |
|
Whether to overwrite target fields specified in the mapping if the fields already exist. If |
|
No |
|
If |
|
No |
|
Whether empty values are extracted from the array. If |