Convert Processor - logzio/sawmill GitHub Wiki
Convert [convert]
This processor will convert the format of a field/s to a different type.
Must provide exactly one of path or paths:
- path
- paths - a list of strings representing paths. (optional - either use path or paths depending on if you want to convert multiple values or one)
- type - one of [int,long,double,string,boolean]
Examples
{
"steps": [
{
"convert": {
"config": {
"path": "ENV_VAR",
"type": "string"
}
}
}
]
}
{
"steps": [
{
"convert": {
"config": {
"paths": [
"json.account_uri",
"json.exit_code",
"json.group",
"json.level",
"json.message_id"
],
"type": "string"
}
}
}
]
}