Splunk Search

how to sub headding in table column in dashboard

Rajkumarkbm2
Explorer

Column1 | Day1 | Day 2 |
--------- | Shift1 | Shift2 | Shift1 | Shift2 |
ABCD | X | N | Y | X |
XYZA | X | N | Y | N |
BCDE | X | N | Y | N |

Tags (2)
0 Karma

niketn
Legend

@Rajkumarkbm2 for the table columns to be sorted the way you want you would need to have both Day and Shift together. Table will not have two headers so you might have to have two separate tables (one with only header column and second with the details). For keeping the sort of column you might need to have JavaScript code as well. Could you share the query you have right now?

Following is the easiest way have both field names merged as one with spaces between the two field names. Please try the following run any where search based on Splunk's _internal index which plots the count of components by key field combining date_mday and log_level field (with values ERROR and WARN)

index=_internal sourcetype=splunkd log_level!=INFO  earliest=-7d@d latest=now
| eval key=date_mday."     :".log_level
| chart count by component key useother=f limit=15
| head 5
____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
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 ...