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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...