Splunk Search

How to aggregate data from CSV file in Splunk Chart?

rus7am
Explorer

Hi guys,

I have CSV file with following structure,

TicketNumber,OpenDate
1,date1
2,date1
3,date1
4,date2
5,date3
6,date3

And I need to build bars with information on how many tickets were opened for specific date. I mean:

Date1 = 3 tickets
Date2 = 3 tickets + 1 ticket = 4 tickets
Date3 = 4 tickets + 2 tickets = 6 tickets

Is it possible?

For now I've built a graph with "how many tickets were opened in date1, date2, date3", but I need some kind of aggregation.

1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You can use your tickets opened per each day to accumulate that:

... | stats count by OpenDate | accum count as openTickets

Verify that your rows are sorted by date correctly before the accum.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

You can use your tickets opened per each day to accumulate that:

... | stats count by OpenDate | accum count as openTickets

Verify that your rows are sorted by date correctly before the accum.

martin_mueller
SplunkTrust
SplunkTrust

Great. Don't forget to mark this as solved.

0 Karma

rus7am
Explorer

thanks a lot! that's works!

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...