[RUM] Enrich document with HTTP request headers

Kibana version: 7.11.0

Elasticsearch version: 7.11.0

APM Server version: 7.11.0

APM Agent language and version: RUM JS library

To respect user privacy, our front load-balancers inject geoip data (X-Geo-Country ..) within HTTP request headers and replace client IP header by a hash.

As such, elasticsearch apm-geoip ingest pipeline cannot use client.ip :pensive:

Is it possible to use HTTP headers from ajax call "rum-js-lib ---> APM Server" as user context ?

Hi Thomas,

Thanks for reaching out.

Your use-case of protecting users' privacy makes perfect sense.
At the moment, this is not possible with the APM server, however, I have created this enhancement request to keep track of this.

Please feel free to comment on that issue.


1 Like

Hello Hamidreza, many thanks.

Yes privacy is important! Also, this make possible to inject some data that end-user cant see and modify, I am thinking about A/B testing.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.