Splunk Search

How to get Country and City from latitude and longitude logs

herguzav
Explorer

Hi frends

 

I have logs like

_time=time latitude=1 longitude=-1 other fields ...

_time=time latitude=1 longitude=-2 other fields ...

Etc

The objective is to translate the latitude and longitude values ​​to their associated countries and then apply

filters on these values ​​but I only have these values.

 

Hope can help me.

 

Regards

 

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Splunk has a built-in lookup table for converting lat/long into country name.

| lookup geo_countries latitude longitude OUTPUT featureId as country
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Splunk has a built-in lookup table for converting lat/long into country name.

| lookup geo_countries latitude longitude OUTPUT featureId as country
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...