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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...