How to add custom field in Topbeat


(Mohanasundaram Ponnusamy) #1

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

thanks,

Mohan.


(ruflin) #2

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


(Ron Pritchett) #3

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


(ruflin) #4

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


(michaelshi) #5

You can try this way

input{
...
}

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

output {
...
}


(system) #6