Do we have any flow variables for geoip for APIGEE API call logs?

How can we get these fields for Apigee API call logs in Elasticsearch using logstash.

Naincy_kumari_0-1679299130421.png

I am using message logging policy for sending API call logs to kibana. Inside message logging policy I am using flow variables. But I am not able to get those fields I have shown in image.

How can we get that?

0 1 80
1 REPLY 1

Apigee flow variables don't provide client IP address by location details. You can do the following:
In PostClientFlow of your proxy execution make ServiceCallout to an (external) API endpoint which  can convert IP address to location and use the data in your logstash message.

Have you checked out this out-of-box geo report provided by Apigee. This report gives the traffic information by location, you can fetch this data via API and stream to your ElasticSearch.

Thanks