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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...