I'm using Elastic Cloud. I've integrated APM with my services. The metrics are pushed to APM Server(i.e. deployment) and I can see them in Kibana.
I would like to manipulate certain custom labels of my APM metrics(e.g. IP to Geo). I know I can do this through Logstash(available as part my deployment) pipeline. I tried creating a pipeline with the following pipeline body. But it doesn't the geo field that I'm trying to add. I'm not sure whether Logstash is even receiving the data. Is there any other config I need to do on my deployment to make APM Server route the data through Logstash?
input {
beats {
port => 5044
}
}
filter {
geoip {
source => "labels.app_client_ip"
target => "labels.app_client_geo"
}
}
output {
elasticsearch {
hosts => ["[http://localhost:9200](http://localhost:9200/)"]
index => "%{[@metadata][index]}"
}
}
Thanks.