Splunk Search

Removing latitude and longitude display when hovering over map point

keerthana_k
Communicator

Hi,

We are using Splunk native apps to display geo based information. When we hover over the points plotted, the latitude and longitude information gets displayed. Is there any way we can avoid it? I want only the metric to be displayed. My search query is as below:

my search | geostats sum(Count) as Total

Here I want only the Total value to be displayed and the latitude and longitude values to be removed. Please help me out.

Thanks,

Keerthana

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You can add this fairly brutal piece of CSS to your dashboard.css:

div.leaflet-popup-content tr:first-child {
  display: none;
}
div.leaflet-popup-content tr:nth-child(2) {
  display: none;
}

Word of warning, doesn't work on IE8 or lower. If it needs to work there you can use this slightly more ugly syntax instead to refer to the second tr tag:

div.leaflet-popup-content tr:first-child {
  display: none;
}
div.leaflet-popup-content tr:first-child + tr {
  display: none;
}

View solution in original post

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You can add this fairly brutal piece of CSS to your dashboard.css:

div.leaflet-popup-content tr:first-child {
  display: none;
}
div.leaflet-popup-content tr:nth-child(2) {
  display: none;
}

Word of warning, doesn't work on IE8 or lower. If it needs to work there you can use this slightly more ugly syntax instead to refer to the second tr tag:

div.leaflet-popup-content tr:first-child {
  display: none;
}
div.leaflet-popup-content tr:first-child + tr {
  display: none;
}
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...