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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...