Splunk Search

Help creating a specific kind of table layout

stjack99
Explorer

I'm trying to generate a table that is a count of things by the 12 months of the year. For instance, the chart might look like:

       |Jan|Feb|Mar|Apr|...|Dec| 
|Thing1| 15|102| 67|645|...|  0| 
|Thing2|  0| 17|111| 15|...|  8| 
|Thing3|  1|555|123|321|...|999| 
etc...

I've figured out how to do this my making the output verticle; count of things in a month, followed by the count of things in the next month and so on. I want to be able to stack the months horizontally.

Thanks in advance.

Tags (1)
0 Karma
1 Solution

steveyz
Splunk Employee
Splunk Employee
... | eval Month = strftime(_time, "%b") | chart count by Thing Month

View solution in original post

0 Karma

steveyz
Splunk Employee
Splunk Employee
... | eval Month = strftime(_time, "%b") | chart count by Thing Month
0 Karma

stjack99
Explorer

Thanks... I was way over thinking this...

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