Splunk Search

time vs repeating data

jdomar
Engager

I would like to set a search timeframe of 1 week and for each day report the subtotals of Items 1, 2 and 3 (the items are the same for each day but the Quantity changes). The output would reflect this as:

2013-11-01.....Item 1.....Quantity

2013-11-01.....Item 2.....Quantity

2013-11-01.....Item 3.....Quantity

2013-11-02.....Item 1.....Quantity

2013-11-02.....Item 2.....Quantity

2013-11-02.....Item 3.....Quantity

2013-11-03.....Item 1.....Quantity

2013-11-03.....Item 2.....Quantity

2013-11-03.....Item 3.....Quantity

etc.
I am able to isolate all of the field data but i am not sure how to structure the search to give the above output.

Any help would be greatly appreciated.

Tags (3)
0 Karma

Akita881
New Member

That work with tweaking. Thank you, Very much!

0 Karma

kristian_kolb
Ultra Champion

Hi,

...| bucket _time span=1d | stats sum(Quantity) by Item, _time

Is probably close to what you need, but there are other options, depending on what your data looks like. Other options include;

... | timechart span=1d sum(Quantity) by Item

Hope this helps,

K

Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...