How to add custom field in Topbeat

Hello,
How to add custom fields in Topbeat yml as it is in filebeat prospectors fields ?

thanks,

Mohan.

Fields are currently not supported in topbeat. You can use "tags" which are part of the shipper config: https://www.elastic.co/guide/en/beats/topbeat/current/topbeat-configuration-options.html#_tags

This would be a useful feature. Is it being planned for a future release?

Best is to have a look at this issue: https://github.com/elastic/beats/issues/726

1 Like

You can try this way

input{
...
}

filter {
mutate { add_field => {"field_name" => "field_value"} }
}

output {
...
}