Splunk Search

Why is my transaction search grouping two start events together and no end?

brianlee12
Engager

Hi,

I am trying to create transactions that begin with a start event and end with an end event, so I can find events that only have a start event and no end. My current search is:

... | transaction maxspan=1d keeporphans=true maxevents=2 deviceID startswith(type="start") endswith(type="end")

However, Splunk keeps grouping together two start events when it can't find an end. For example, if the event log looks like ......start.......start..........end....... I want it to group the 2nd start and end together and leave the first start as an orphan but splunk groups the two starts together despite my startswith and endswith condition. Any help would be greatly appreciated! Thanks!

0 Karma
1 Solution

sundareshr
Legend

Try this

| transaction keepevicted=t deviceID startswith="start" endswith="end" | 

View solution in original post

sundareshr
Legend

Try this

| transaction keepevicted=t deviceID startswith="start" endswith="end" | 

brianlee12
Engager

Switching from startswith(type="start") endswith(type="end") to startswith="start" endswith="end" worked for me but could you explain why? I parse the type before the transaction so I don't see how this should affect it.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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