Splunk Search

Transaction grouping

katalinali
Path Finder

Hi all,

I have a transaction which have keyword "start" and "stop", I use startswith and endswith to define the whole transaction, but the problem is the system will detect if it can't finish, it will reload the transaction again, so the log will like:

start action... start action... ...... end

Do someone know how can I get the correct duration between to ? Thanks

Tags (1)
0 Karma

ppang
Splunk Employee
Splunk Employee

Kat, try to just use only either startswith or endswith. e.g. if you see multiple "start" keyword, then one "stop" keyword, you should use * | transaction your_field endswith "stop"

0 Karma

kmugglet
Communicator

Remember, in an unsorted Splunk time stream everything is 'backwards' so you might be looking startswith="stop" and endswith="start", as Stop would be the first event it came to.

0 Karma

BenTan
Path Finder

Just a thought, does adding maxspan and maxpause help?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...