Dashboards & Visualizations

How to give specific color for each dot in Splunk cluster map ?

sandyIscream
Communicator

Hi Splunkers!

We need to show the number of dots for each zip code in Splunk cluster map. On hover on each dot, we should show the zip code and mark the dots with a specific color.

I have a table like below.

zipcode latitude longitude Avg(percent1) avg(percent2) avg(percent3)

currently we are doing like this-

geostats latifield=latitude longfield=longitude count by zipcode.

Which is showing the number of count in the map but we are not able to restrict the color codes based on (avg%percent).

Could you please help me out here!

Tags (2)
0 Karma

niketn
Legend

@sandyIscream, could you please add more details on how color needs to be applied? What role do the three fields play?

Avg(percent1) avg(percent2) avg(percent3)

If you can add some sample numbers/sla for colors that would be helpful.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

PowerPacked
Builder

Hi @sandyIscream

Can you try charting.fieldcolors like this.

<option name="charting.fieldColors">
      {"ERROR": 0xFF0000, "WARN": 0xFF9900, "INFO":0x009900, "NULL":0xC4C4C0}
    </option>

Thanks

0 Karma

sandyIscream
Communicator

I have tried this trick. But my fields are generated dynamically. So hard-coding the values in charting.fieldColors will not work.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...