Splunk Search

Transaction startswith option

madan
New Member

I'm using the transaction with startswith to match multiple strings. I want any event that contains either of the strings.

which of the below one is correct ?

index=web "web-thread-"
| transaction txid startswith=(param=121fdfd OR param2=asfdads3232 OR a_inexe_1 OR asdf_1) endswith="web time:" maxspan=10m

index=web "web-thread-"
| transaction txid startswith=("param=121fdfd" OR "param2=asfdads3232" OR "a_inexe_1" OR "asdf_1") endswith="web time:" maxspan=10m

Both of the above produces slightly different results. I would like to know which is correct? 

Labels (1)
Tags (2)
0 Karma

manjunathmeti
Champion

hi @madan,
You can also provide search expressions for startswith.
Run this and see which one matches your results.

index=web "web-thread-"
| transaction txid startswith="param=121fdfd OR param2=asfdads3232 OR a_inexe_1 OR asdf_1" endswith="web time:" maxspan=10m

 

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...