Splunk Search
Highlighted

can we give colors in Geostats based on ranges of some value?

Contributor

Hi.

Can we use rangemaps to give colors to the charts in the geostats map. I am having some range values. they should be in some colors to be displayed in the pie charts on maps. is it possible.
i have used this query but not able to get the defined colors.

 source="Churn_Map.csv" sourcetype="Churn_map" 
| eval Churn = if(Churn="True.","1","0") 
| eventstats sum(Churn) as true_churn , count(Churn) as total_churn by state  
| eval prop= true_churn*100 / total_churn  
| rangemap field=prop green=0-5 yellow=6-10 orange=11-15 default=red
| geostats values(prop) by StateName   globallimit=0

Thanks.

Tags (3)
0 Karma
Highlighted

Re: can we give colors in Geostats based on ranges of some value?

Builder

You will find that rangemap uses the following fields:
none = black
low = green
guarded = blue
elevated = yellow
high = orange
severe = red
default

Hope this helps

Highlighted

Re: can we give colors in Geostats based on ranges of some value?

Contributor

Hi @markthompson rangemap command must need some values to pass.
I am very new to this SPLUNK. Can you give me some syntax or example like thing to make it.

0 Karma
Highlighted

Re: can we give colors in Geostats based on ranges of some value?

Communicator

Hi Santosh,

Colors are predefined you can't change them. Rangemap colors will not help you with GoogleMap Visualization.

Refer:
http://answers.splunk.com/answers/10250/google-maps-customizing-geo-location-bubble-colors-and-numbe...

0 Karma
Highlighted

Re: can we give colors in Geostats based on ranges of some value?

Contributor

Hi @ArunN007 , I didn't used any APP. does it still doesn't support such things.?
in the link you have shared there they said it is of APP.

0 Karma
Highlighted

Re: can we give colors in Geostats based on ranges of some value?

Communicator

Hi Santhosh,

Splunk internally used Google Map view to generate maps.

I think it can be done 🙂

Please refer below link for options available.

https://developers.google.com/maps/documentation/javascript/reference#MapOptions

Highlighted

Re: can we give colors in Geostats based on ranges of some value?

Communicator
0 Karma
Highlighted

Re: can we give colors in Geostats based on ranges of some value?

Contributor

What ever color code I am adding , it is changing into black color.
I have added.
<option name="mapping.seriesColors">{prop:0xC2C199}</option>
Am i doing wrong.please correct me

0 Karma
Highlighted

Re: can we give colors in Geostats based on ranges of some value?

Builder

One trick that you can use, is asign a value to each range, and the by modify the xml change the color.

0 Karma
Highlighted

Re: can we give colors in Geostats based on ranges of some value?

Contributor

I have used <option name>"mapping.fieldColors"?{prop:0x0000FF}</option>
but of no use. can you give any example please.

0 Karma