Splunk Enterprise

help on map visualisation

jip31
Motivator

hi

I use a basic search in order to count the number of incidents by town

index=toto sourcetype=tutu 
| stats dc(id) by site

Now I would be able o display this results on a map in order to have a bubble with the number of incidents for each site

So I have created a lookup (gps.csv) like this

site,Longitude,Latitude,
AGDE,3.4711992,43.3154
NANTES,-1.58295,47.235197
TOULOUSE,1.3798,43.6091

So what I have to for doing a cross between my search and my lookup in order to have a bubble count on my map vizualisation?

thanks

 

Tags (1)
0 Karma

jip31
Motivator

I see the events only in the "events" tab

jip31_0-1638424905047.pngjip31_0-1638424905047.png

But i cant see the events related to my lookup 

Yet, if i just execute, I can see the events

| lookup gps.csv site 

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Does this help?

| lookup gps.csv site
0 Karma

jip31
Motivator

I have no isssue but nothing is dispalyed on the map.....

I have done this

 

index=toto sourcetype=tutu  
| lookup gps.csv site 
| geostats dc(id) latfield=Latitude longfield=Longitude by site

 

what is wrong please??

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

What are your resilts after just lookup?

What are your results after geostats?

0 Karma

jip31
Motivator

After lookup I have results (73 events)

But geostats when I a m going in visualisation tab, there is no map displayed

jip31_0-1638169748625.pngjip31_0-1638169748625.png

 

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You have no results (Statistics (0)!) - what does the rest of your search actually look like?

0 Karma

jip31
Motivator

here is the search

index=tutu sourcetype=toto 
| search site=*agde* OR site=*nantes* OR site=*toulouse* 
| lookup gps4.csv site 
| geostats count(signaler_id) latfield=latitude longfield=longitude by site
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

If your examples are anything to go by your site is in lowercase whereas your lookup in is uppercase - either convert the site from the search to uppercase or make sure you have set up a case-insensitive lookup definition

0 Karma

jip31
Motivator

I have added an upper command but it changes anything

index=toto sourcetype=tutu
| search site=*agde* OR site=*nantes* OR site=*toulouse*
| eval site=upper(site)
| lookup gps4.csv site 
| geostats count(signaler_id) latfield=latitude longfield=longitude by site

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

The issue is probably with your events - if you don't share them, anonymised of course, it is very difficult to help you.

0 Karma

jip31
Motivator

Yes, but it's difficult to share events dont displayed....

The only thing I can say is that the site field in "gps.csv" is in Upper case

jip31_0-1638461753989.pngjip31_0-1638461753989.png

 

 

 

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Previously, you said you had 73 events (prior to lookup?) - can you share some of them?

0 Karma

PickleRick
SplunkTrust
SplunkTrust

I understand that you get some results. But what do they look like?

0 Karma

jip31
Motivator

Hi

I have explained it in the previous message

I cant share nothing interesting....

0 Karma
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!

Where Innovation Takes Flight: The Splunk4Aviation Flight Sim Lands at .conf26

If you hear someone at .conf26 shouting "gear down, GEAR DOWN" across the show floor, you have found us.  The ...

Turn Cisco Telemetry Into Action with Cisco Data Fabric, powered by the Splunk ...

The surge in machine data is already hitting enterprise budgets, and the agentic era will only intensify it. ...

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...