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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...