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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...