All Apps and Add-ons

How to use google Maps?

akash3664
New Member

Hello All,

I am new to Google maps app in splunk and I am trying to plot the data on the graph but I am not able to get any point the graph.

I have one CSV file which has below information:

name _geo
Florida "27.664827,-81.515753"
Texas "31.968599,-99.901813"

I have uploaded this file and when I executed the search:
source="try2.csv" | geoip name

it does not show any point on the map and not getting any result in Geo result but in the events it shows data

Can anybody help me with this?

0 Karma

Jon_Webster
Splunk Employee
Splunk Employee

Check the README.txt file in the SPLUNK_HOME/etc/apps/maps directory.

The map expects the _geo field to contain latitude and longitude in the format "27.664827,-81.515753", so you have the correct data, but you need to place it in the _geo field.

Assuming that your field extractions are mapped like this:
Field names: Name, _geo
Data: Florida, "27.664827,-81.515753"
Data: Texas, "31.968599,-99.901813"

This search should map all events that contain a valid latitude/longitude in the _geo field:
source="try2.csv"

You may be merging several ideas here and getting confused. If you are using the csv file as a lookup, so you can pass a state name to the lookup and get back the lat/long, then your search should be referencing the lookup you created for the csv file.

The "geoip" command that you're using is meant to pass an IP address and return a field named _geo that contains the latitude and longitude. Since you're not passing it an IP address you're not getting back the lat/long, and nothing appears on the map.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...