Splunk Search

How can I show lookups in the Stacked bar graph ?

kiran331
Builder

Hello,

I have 6 lookups, I have to show the stacked bar graph of three types a,b,c with showing active and inactive count?Whats the best way to show this one?

a_active.csv
a_inactive.csv
b_active.csv
b_inactive.csv
c_active.csv
c_inactive.csv

Tags (2)
0 Karma
1 Solution

sundareshr
Legend

Try apppending them, like this
*UPDATED*

| inputlookup a_active.csv | eval File-"A" | eval status="Active" | append [| inputlookup a_inactive.csv | eval File-"A" | eval status="InActive"] | append [| inputlookup b_active.csv | eval File-"B" | eval status="Active" etc etc etc] | chart count over File by status

View solution in original post

0 Karma

sundareshr
Legend

Try apppending them, like this
*UPDATED*

| inputlookup a_active.csv | eval File-"A" | eval status="Active" | append [| inputlookup a_inactive.csv | eval File-"A" | eval status="InActive"] | append [| inputlookup b_active.csv | eval File-"B" | eval status="Active" etc etc etc] | chart count over File by status
0 Karma

kiran331
Builder

Thanks! How can i show active and inactive count in a single bar stacked?

0 Karma

sundareshr
Legend

Try the updated query

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...