Splunk Search

How do I get an hourly result table from a single monthly event?

sndegwa
Explorer

I have monthly events feeding into splunk. However I need each monthly event to be repeated for each hour of the month during the search. How do I achieve this?

Example :
Monthly Event - 1/1/2014,TEST, FIELD1,FIELD2...

Hourly results :
1/1/2014 00:00:00 ,TEST, FIELD1, FIELD2...
1/1/2014 01:00:00 ,TEST, FIELD1, FIELD2...
1/1/2014 02:00:00 ,TEST, FIELD1, FIELD2...
etc

Tags (2)
0 Karma
1 Solution

vganjare
Builder

Hi,

You can try using gentimes command along with join command. Try following query:

| gentimes start=05/13/15 end=05/14/15 increment=1h | eval joinme="YES" | join joinme [|... your search ...| eval joinme="YES" ]

Thanks!!

View solution in original post

0 Karma

vganjare
Builder

Hi,

You can try using gentimes command along with join command. Try following query:

| gentimes start=05/13/15 end=05/14/15 increment=1h | eval joinme="YES" | join joinme [|... your search ...| eval joinme="YES" ]

Thanks!!

0 Karma

sndegwa
Explorer

Thanks! This works great.

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