Getting Data In

Close a TRANSACTION with only 1 EVENT

verbal_666
Builder

Hi.
I would like to unterstand why Splunk does not close a transaction with only 1 event, if i force a STARTSWITH parameter... i tried all possible parameters, but with STARTSWITH there's no way, transaction is dropped...

 

timestamp ..... user=XXXXXXXXXXXXXX action=login_do from=127.0.0.1 status=failed

 

.... | transaction maxevents=-1 user from startswith="login_do"

... no events returned...

 

.... | transaction maxevents=-1 user from

... event cought!!!

 

Thanks.

Labels (1)
0 Karma
1 Solution

javiergn
Super Champion

Hi @verbal_666 ,

 

Have you tried adding the keepevicted=t first and then keeporphans=t in order to see if any of them are returning anything and if so, find out why that particular transaction is being evicted or treated as an orphan?

 

Regards,

J

View solution in original post

javiergn
Super Champion

Hi @verbal_666 ,

 

Have you tried adding the keepevicted=t first and then keeporphans=t in order to see if any of them are returning anything and if so, find out why that particular transaction is being evicted or treated as an orphan?

 

Regards,

J

verbal_666
Builder

Sometimes Splunk surprises!!!

The code that tomorrow did not work properly, now works 🙄

 

transaction keepevicted=f keeporphans=f maxevents=-1 startswith="login_do" user from

 

Now works!!! I did't change anything in the query... very very strange!!!

0 Karma

verbal_666
Builder

I was sure having used all parameters, but maybe i was wrong with some boolean 😑

 

transaction keepevicted=t keeporphans=t maxevents=-1 startswith="login_do" user from

 

close the single event transaction... i was sure had used both of them, maybe my mistake!!! Just the "keepevicted=t " is enough.

Thanks a lot!!! 👍

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...