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
Legend

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

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...