Dashboards & Visualizations

Stacked Bar Graph using lookups?

kiran331
Builder

Hi, I have to create a Stacked bar graph with total count and missing count.

A.csv - 3000
B.csv - 2900
C.csv-3100

I have to compare B.csv and C.csv with A.csv to get the list, which are present in A, but missing in B and C? Now I'm using them seperately Total count and missing count. suggest me a best way to show them in single panel as stacked bar graph with total and missing count?

searches I'm using:

For total list:
| inputlookup A.csv | eval file="A" | inputlookup append=t B.csv | fillnull file value="B" | inputlookup append=t C.csv| fillnull file value="C"| stats count by file

For missing list:
|inputlookup A.csv |lookup B.csv Name0 OUTPUTNEW Name0 AS status|search NOT status=* | eval file="B" |append[|inputlookup A.csv |rename "Device Name" as Name |lookup C.csv Name OUTPUTNEW Name AS status|search NOT status=*|eval file="C"] |stats count by file

Tags (2)
0 Karma

sundareshr
Legend

Try this

| inputlookup A.csv | eval file="A" | inputlookup append=t B.csv | fillnull file value="B" | inputlookup append=t C.csv| fillnull file value="C"| eval status=coalesce(name0, "Device Name") | eventstats dc(file) as files by status | eval "missing.in.a"=if(mvcount(files)=3, "no", "Yes")
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...