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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...