Splunk Search

How do you get a count on the latest status of Jira tickets?

cpboothe
New Member

Hi,

I want to get a count on tickets with the latest status of "In Progress". An example of the data set is below:

alt text

In this example data set, I should be getting a count of 1 ticket in "in Progress". I have tried a number of functions and reviewed the forum on similar questions, but I can't get the search working.

Any help would be greatly appreciated.

Thanks,

Craig

Tags (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

It would help if you shared your current search. However, dedup should help solve the problem. It selects the most recent entry when it finds more than one with the same value so the earlier instance of RT-3 won't be seen.

 index=foo ticket_number=* status=* last_updated_date_time=* | dedup ticket_number| search status="In Progress" | stats count
---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

It would help if you shared your current search. However, dedup should help solve the problem. It selects the most recent entry when it finds more than one with the same value so the earlier instance of RT-3 won't be seen.

 index=foo ticket_number=* status=* last_updated_date_time=* | dedup ticket_number| search status="In Progress" | stats count
---
If this reply helps you, Karma would be appreciated.
0 Karma

cpboothe
New Member

seems to be working. thank you for your help. Appreciated

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...