Add Field Processor - logzio/sawmill GitHub Wiki
Add Field [addField]
Using this processor you can add a field to the document, this field can have data from other fields using the Template feature - in this case check that the fields exists first. It can also be used to "replace" a field value or just as a new field with a static value.
- path (the path to the field to add, doted fqdn) (required)
- value (required)
Examples
{
"steps": [
{
"addField": {
"config": {
"path": "field",
"value": "value"
}
}
}
]
}
{
"steps": [
{
"if": {
"condition": {
"and": [
{
"exists": {
"field": "Date"
}
},
{
"exists": {
"field": "time"
}
}
]
},
"then": [
{
"addField": {
"config": {
"path": "timestamp",
"value": "{{Date}} {{time}}"
}
}
}
]
}
}
]
}