Splunk Search

How to show the following 100 events after a particular event

john
Communicator

Hi,

I want to show next 100 events after a first occurence of particular string.
eg:Iam searching a string id:904566 using splunk.
At the same time i want to show next 100 events which doesnot have this Id but they having datas related to that paricular id.So user want to see the next 100 events after the first occurence of that particular id.How i can make it.Please help.

this is my search

  index="logs" source="" 904566
Tags (1)
0 Karma

Ayn
Legend

You could use transaction:

index=logs source="" 904566 | transaction maxevents=100 startswith="904566"

john
Communicator

Thanks ayn.Can it possible trancation check only the first occurence of that id and clumping all the next 100 events rather that breaking at every event where this id is appearing like in regex "mxmatch=1" like this can we restrict transaction.That means it will check only once for id and will clumping all the following 100 events.

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

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...