Splunk Search

Replace map markers by piecharts

Dreads94
Explorer

Hey there!

We just updated to Splunk 6 and I wanted to create a new panel with the new integrated maps. That was easy to realize...but now I would like to replace the markers of the search results by pie charts. Unfortunately, I've absolutely no idea how to do it.

Please help. Thanks!

0 Karma
1 Solution

wpreston
Motivator

There is an example using piecharts on a map in the Splunk 6 Dashboard Examples app. I believe you just use the geostats command, like this:

... <your search string> ... | geostats latfield=lat longfield=lon count by <yourField>

From the docs on geostats:

You can now display geographic data and summaries on maps directly within Splunk. To do so, first run your reporting search with geostats, save it as a report or to a dashboard, then edit the Simple XML to include the visualization element. For more information, see:

"Visualization reference" in the Splunk Data Visualizations Manual.

The map element in the Simple XML Reference.

View solution in original post

wpreston
Motivator

There is an example using piecharts on a map in the Splunk 6 Dashboard Examples app. I believe you just use the geostats command, like this:

... <your search string> ... | geostats latfield=lat longfield=lon count by <yourField>

From the docs on geostats:

You can now display geographic data and summaries on maps directly within Splunk. To do so, first run your reporting search with geostats, save it as a report or to a dashboard, then edit the Simple XML to include the visualization element. For more information, see:

"Visualization reference" in the Splunk Data Visualizations Manual.

The map element in the Simple XML Reference.

Dreads94
Explorer

Thank you!

0 Karma
Get Updates on the Splunk Community!

Observability Highlights | January 2023 Newsletter

 January 2023New Product Releases Splunk Network Explorer for Infrastructure MonitoringSplunk unveils Network ...

Security Highlights | January 2023 Newsletter

January 2023 Splunk Security Essentials (SSE) 3.7.0 ReleaseThe free Splunk Security Essentials (SSE) 3.7.0 app ...

Platform Highlights | January 2023 Newsletter

 January 2023Peace on Earth and Peace of Mind With Business ResilienceAll organizations can start the new year ...