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!

Community Content Calendar, October Edition

Welcome to the October edition of our Community Spotlight! The Splunk Community is a treasure trove of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...