Splunk Search

Separate values in stacked bars

pranaynanda
Path Finder

How can I still have a separation between 'xls' and 'xlsx' in the bar that says 'Excel'?

eval ExtTyp = case(extension="doc" OR extension="docx", "Word", extension="xls" OR extension="xlsx", "Excel", extension="ppt" OR extension="pptx", "PowerPoint", extension="hpg" OR extension="hpgl", "HPGL") | stats count by  ExtTyp
Tags (2)
0 Karma

woodcock
Esteemed Legend

Like this:

eval ExtTyp = case(extension="doc" OR extension="docx", "Word", extension="xls" OR extension="xlsx", "Excel", extension="ppt" OR extension="pptx", "PowerPoint", extension="hpg" OR extension="hpgl", "HPGL")
| eval ExtType=case(extension="xls", "Excel(xls)", extension="xlsx", "Excel(xlsx)", true(), ExtType)
| stats count BY ExtTyp
0 Karma

pranaynanda
Path Finder

Apologies. But that did not work. It returned with the same values.

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 ...