Dashboards & Visualizations

Is there any way of displaying empty map if there is no data in simple xml?

nivethainspire_
Explorer
 
Tags (2)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Yeah, similar approach as when e.g. filling a zero into a single value when there is no data.

Take the sample search from the Splunk 6 Dashboard Examples app:

| inputlookup geomaps_data.csv | iplocation device_ip | geostats latfield=lat longfield=lon count by method

That returns a bunch of geo buckets. If I modify it to return no data by adding a where 1=2, the map disappears. By adding a little appendpipe to the end the map is back but empty:

| inputlookup geomaps_data.csv | iplocation device_ip | where 1=2 | geostats latfield=lat longfield=lon count by method
| appendpipe [stats count | where count=0 | eval geobin = "bin_id_zl_0_y_3_x_2" | eval latitude= -10.00000 | eval logitude = -55.00000]

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

Yeah, similar approach as when e.g. filling a zero into a single value when there is no data.

Take the sample search from the Splunk 6 Dashboard Examples app:

| inputlookup geomaps_data.csv | iplocation device_ip | geostats latfield=lat longfield=lon count by method

That returns a bunch of geo buckets. If I modify it to return no data by adding a where 1=2, the map disappears. By adding a little appendpipe to the end the map is back but empty:

| inputlookup geomaps_data.csv | iplocation device_ip | where 1=2 | geostats latfield=lat longfield=lon count by method
| appendpipe [stats count | where count=0 | eval geobin = "bin_id_zl_0_y_3_x_2" | eval latitude= -10.00000 | eval logitude = -55.00000]
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...