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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...