Splunk Search

How to create a dual transaction where 'startswith' should start with A or B condition and 'endswith' should be C or D condition?

Venkat_16
Contributor

Hi,

I am trying to transaction a scenario here where startswith should start with A or B condition and endswith should be with C or D condition. example:

Transaction startswith= A or B endswith= C or D
0 Karma

MuS
SplunkTrust
SplunkTrust

Hi Venkat_16,

this is possible, look at the docs http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Transaction in the section Filter string options it says:

<filter-string> Syntax: <search-expression> | (<quoted-search-expression>) | eval(<eval-expression>) 
Description: A search or eval filtering expression which if satisfied by an event marks the end of a transaction. 
<search-expression> Description: A valid search expression that does not contain quotes. 
<quoted-search-expression> Description: A valid search expression that contains quotes. 
<eval-expression> Description: A valid eval expression that evaluates to a Boolean.

This means running something like this will work:

transaction startswith="A OR B" endswith="C OR D" <yourfield>

Don't forget to use a field that will be used to build your transaction.

Hope that helps ...

cheers, MuS

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!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

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