2022-05-19 00:29:43 +08:00
|
|
|
# Map enum values according to given table.
|
|
|
|
|
[[processors.enum]]
|
|
|
|
|
[[processors.enum.mapping]]
|
2025-03-26 22:02:56 +08:00
|
|
|
## Names of the fields to map. Globs accepted.
|
|
|
|
|
fields = ["status"]
|
2022-05-19 00:29:43 +08:00
|
|
|
|
2025-04-08 20:34:24 +08:00
|
|
|
## Name of the tags to map. Globs accepted.
|
|
|
|
|
# tags = ["status"]
|
2022-05-19 00:29:43 +08:00
|
|
|
|
|
|
|
|
## Destination tag or field to be used for the mapped value. By default the
|
|
|
|
|
## source tag or field is used, overwriting the original value.
|
|
|
|
|
dest = "status_code"
|
|
|
|
|
|
|
|
|
|
## Default value to be used for all values not contained in the mapping
|
|
|
|
|
## table. When unset and no match is found, the original field will remain
|
|
|
|
|
## unmodified and the destination tag or field will not be created.
|
|
|
|
|
# default = 0
|
|
|
|
|
|
|
|
|
|
## Table of mappings
|
|
|
|
|
[processors.enum.mapping.value_mappings]
|
|
|
|
|
green = 1
|
|
|
|
|
amber = 2
|
|
|
|
|
red = 3
|