I'm trying to setup a self-managed docker appsearch instance, together with kibana and elasticsearch, queried by a uvicorn python app, proxied by a nginx webserver
My current issue is that the appsearch logs show the python default user-agent and IP in the appsearch logs (i.e. python-requests/2.22.0 and a LAN IP).
I would like to forward the nginx custom headers that contain the correct IP and user agent of the remote client, to the appsearch logs that are so nicely queryable in kibana.
I've noticed that there is the output.elasticsearch.headers
that can be set to custom headers in environment or filebeat.yml.
Do you guys have any ideas about this ?
Thank you.