Splunk Search

Is it possible to limit the transaction?

moinyuso96
Path Finder

After using transactions my "raw" field looks something like this. I want to limit the amount of rows captured  by transaction to be not more than 2? 

Is there anyway I can add to my query now 

| transaction startswith=TestResult="Start"

raw

4015_ABCD, Start, 8/11/2020 5:37:10 PM, 12345

4015_ABCD, Complete, 8/11/2020 5:37:30 PM, 12345

4015_ABCD, Start, 8/12/2020 10:23:34 AM, 12345

1113_EFGH, Start, 8/12/2020 12:00:00 PM, 67890

1113_EFGH, Complete, 8/12/2020 1:00:00 PM, 67890

1119_EFGH, Complete, 8/12/2020 2:00:00 PM, 67890

Labels (2)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @moinyuso96,

as you can see in the documentation (https://docs.splunk.com/Documentation/Splunk/8.2.0/SearchReference/Transaction), it's possible to define the maximum number of events to correlate using "maxevents" option.

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @moinyuso96,

as you can see in the documentation (https://docs.splunk.com/Documentation/Splunk/8.2.0/SearchReference/Transaction), it's possible to define the maximum number of events to correlate using "maxevents" option.

Ciao.

Giuseppe

Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...