Splunk Search

Wilde card is not working for when using colorPalette type="map" and i need to add in wilde characters

robertlynch2020
Motivator

Below is the code that i have. It is in a table where colors will come up pending on the text that i have.

I want to be able to put in TEST_* and not have to define TEST_1 TEST_2 etc...
If i put in TEST_* nothing happens.

<format type="color" field="Event_Name">
     <colorPalette type="map">{"TEST_1":#6A5C9E}</colorPalette>
</format>
0 Karma

niketn
Legend

How many TEST fields do you expect?, Can they be statically mapped once and based on whichever Field is present will get color?

If above is not possible then you would need to use Javascript/CSS to color your Table Cell/Row. For exploring the options you can refer Table Cell Highlighting and Table Row Highlighting examples in the Splunk 6.x Dashboard Examples App

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

robertlynch2020
Motivator

OK thanks I could get a lot of different type of TEST fields, as it is a key word that we use. It looks like i will have to use the JavaScript, that i have done before. But this way is just easier.

0 Karma

niketn
Legend

JS should be your option then.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...