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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...