Splunk Search

Append color values to field value

Vignesh-107
Path Finder

I have a query result . i want to append the three colors  based on values  and the table is dynamic based on the time frame 

column Messages and Nov20 - no change should be same 

MessagesNov 20Dec 20Jan 20Feb 20
Messge 00100
Messge 11311
Messge 211000
Messge 31000
Messge 49500
Messge 51100
Messge 61100
Messge 70100


column Dec20 Jan20 Feb20 - values should append field value and with color value

MessagesNov 20Dec 20Jan 20Feb 20
Messge 00      1
GREEN
      0
RED
0
YELLOW
Messge 113
GREEN
1
RED
1
YELLOW
Messge 2110
RED
0
YELLOW
0
YELLOW
Messge 310
RED
0
YELLOW
0
YELLOW
Messge 495
RED
0
YELLOW
0
YELLOW
Messge 511
YELLOW
0
RED
0
YELLOW
Messge 611
YELLOW
0
RED
0
YELLOW
Messge 701
GREEN
0
RED
0
YELLOW



0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You asked a very similar question (which I answered) here - the main difference being not adding the colour value to the first date column. As I hinted at in the other post, it might be easier to solve from the original query used to generate the table. Are you able to share this? Did you try the technique shown in the other post?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...