Splunk Enterprise

How to group/split stacked bar chart columns?

timo258
Explorer

Hi together,

I want to group my bar chart in 2 columns. In the pictures you can see how I get it done and how it should look.

reachedreachedtargettarget

 

host=my_host index=my_index
            | stats count
            | join 
                [ search host=my_host index=my_index result.value= -1
                | stats count 
                | rename count as "Tests_Failed"] 
            | join type=left
                [ search host=my_host index=my_index result.value= 1
                | stats count
                | rename count as "Tests_Passed"]
            | join
               [search host=my_host index=my_index
               | rename result.value as isFailed
               | eval isFailed=if(isFailed=-1, 0, 1)
               | stats sum(isFailed) as testedPositive by Produktionsnummer
               | stats count(eval(testedPositive!="0")) as io count(eval(testedPositive="0")) as nio]
            | table Typ-Nummer, Tests_Failed, Tests_Passed, nio, io
            | rename Typ-Nummer AS "Product Name & Number", Tests_Passed AS "Tests Passed", Tests_Failed AS "Tests Failed", percFailed as "Percentage of Tests Failed"

 

 

I want so split it in 2 stacked columns like on the picture (Tests_Failed, Tests_Passed) and (nio, io).

Many thanks in advance!

Labels (1)
Tags (3)
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 ...