Getting Data In

time range customization

20065945
Explorer

I have an xml file. Over which i m performing searches. the result i m getting is in this form

        Text                                                     Date
1       Application: AVA failed        2014-01-24 14:21:53.50
                   Application: AVA started     2014-01-24 14:49:20.54

2          Application: AVA failed        2014-01-24 14:05:38.51
                  Application: AVA started  2014-01-24 14:20:17.71

3          Application: AVA failed       2014-01-24 14:04:42.00
                  Application: AVA started  2014-01-24 14:05:34.74

in this Application: AVA failed and Application: AVA started should be counted as 1 event if the difference between their occurrence time is 3 min. How can we evaluate the the time difference and how can we extract the minutes from the Date field?

any sort of help over this welcome.....Thanks in advance.

Tags (3)
0 Karma
1 Solution

20065945
Explorer

These are three events. Each event gives two things the start text and the failed text.

For this result i have used the following query

sourcetype=test| transaction startswith="Application: AVA started" AND endswith="Application: AVA failed" | sort Date

View solution in original post

0 Karma

markthompson
Builder

Try sorting by the DAY not the DATE, what this is doing is restructuring the 'transaction' hence it being in the wrong order for you.

0 Karma

20065945
Explorer

These are three events. Each event gives two things the start text and the failed text.

For this result i have used the following query

sourcetype=test| transaction startswith="Application: AVA started" AND endswith="Application: AVA failed" | sort Date

0 Karma

somesoni2
Revered Legend

You're getting 6 events in total (in your example) or 3 events only? Also, could you post your search query?

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...