Splunk Search

How to display cities by color based on severity level in Splunk 6 maps and display city name and severity level in tooltip?

Venkat_16
Contributor

Hi. I am working on displaying cities with different severity levels. Cities with sev1 should be in red, sev2 in amber and sev3 in yellow. I also want to display city name and sev level in tooltip. I tried this solution:
http://answers.splunk.com/answers/137571/displaying-city-in-splunk-6-map-tooltip.html

But the issue is, all the cities are displayed in different colors. I want to display the city based on the color I specify. I have even inserted the color in map element xml view.{sev1:0xFF3300,sev2:0xFFCC66,sev3:0xFFFF66}. the query am using is...."

eval sev=case(units>=120,"sev1",units<120 AND units>=50,"sev2",units<25,"sev3") |  eval new_field=city.": ".sev | lookup cities.csv cityname as city OUTPUTNEW latitude,longitude| geostats globallimit=0 latfield=latitude longfield=longitude count by new_field"
0 Karma

richaGindodia
Path Finder

Hi Venkat, Did you find an answer to your question because i have similar requirement. Any pointers

0 Karma

mikaelbje
Motivator

I believe this question is a duplicate of http://answers.splunk.com/answers/106729/map-visualization-regex-for-mapping-fieldcolors.html

Try looking for the solution there. It involves using the xyseries command.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...