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!

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...