Splunk Search

Input Latitude & Longtitude directly

materaj
New Member

Dear ziegfried,

Firstly, I really like your Google Maps App. but I have question about input. When I search with geoip like "sourcetype=gps | geoip src",src is source-ip of client, it's work correctly .But can I input latitude and longitude directly like "sourcetype=gpslocation | geoip latitude,longtitude" , latitude and longitude are the location of client.Or some syntax like that, please tell me.

Thank you for create this apps.

Tags (2)
0 Karma

ziegfried
Influencer

You don't need to call the geoip command if your results already contain latitude and longitude information. The best way to have it displayed is to set the _lat and _lng fields:

sourcetype=gpslocation | eval _lat=latitude | eval _lng=longitude

It should work without setting _lat and _lng, the geonormalize command is automatically invoked on the results before displaying the results on the map, but maybe there's a bug and it's not detecting the fields. Please try searching just for sourcetype=gpslocation in the maps view.

ziegfried
Influencer

Does it work for you?

0 Karma

materaj
New Member

Thank you for your answer.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...