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
Get Updates on the Splunk Community!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...