<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to write search to find number of Splunk transaction that start and end with certain condition? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601791#M209440</link>
    <description>&lt;P&gt;When you use "transaction", there is a field created called "eventcount" which shows how many events are in each transaction. You can look for max eventcount, stats count by, etc ....&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 19:40:25 GMT</pubDate>
    <dc:creator>sshelly_splunk</dc:creator>
    <dc:date>2022-06-14T19:40:25Z</dc:date>
    <item>
      <title>How to write search to find number of Splunk transaction that start and end with certain condition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601787#M209437</link>
      <description>&lt;P&gt;I need to find number of events that start with certain conditions and ends with certain condition .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example&amp;nbsp;&lt;/P&gt;
&lt;P&gt;index="*" source="*" | transacton startWith=C OR D endWith=A OR B&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need to find count ..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to do it ?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 18:49:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601787#M209437</guid>
      <dc:creator>btcs2</dc:creator>
      <dc:date>2022-06-14T18:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to write search to find number of Splunk transaction that start and end with certain condition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601791#M209440</link>
      <description>&lt;P&gt;When you use "transaction", there is a field created called "eventcount" which shows how many events are in each transaction. You can look for max eventcount, stats count by, etc ....&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 19:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601791#M209440</guid>
      <dc:creator>sshelly_splunk</dc:creator>
      <dc:date>2022-06-14T19:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to write search to find number of Splunk transaction that start and end with certain condition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601821#M209452</link>
      <description>&lt;P&gt;No transaction startwith&amp;nbsp; is not working with multiple OR .. one start with and multiple end with is working . so do we have a solution for this ?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 06:39:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601821#M209452</guid>
      <dc:creator>btcs2</dc:creator>
      <dc:date>2022-06-15T06:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to write search to find number of Splunk transaction that start and end with certain condition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601950#M209508</link>
      <description>&lt;P&gt;I grabbed the Splunk tutorial data (from googling "splunk search tutorial") for this example.&lt;/P&gt;&lt;P&gt;source="tutorialdata.zip:*"&lt;BR /&gt;| transaction clientip JSESSIONID startswith=(action=addtocart) endswith=(action=purchase)&lt;/P&gt;&lt;P&gt;Note - the syntax for the startswith and endswith keyword specifications/filters. A transaction is created for each unique pair of clientip and JSESSIONID with succesful add's to cart and purchase.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 16:29:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601950#M209508</guid>
      <dc:creator>sshelly_splunk</dc:creator>
      <dc:date>2022-06-15T16:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to write search to find number of Splunk transaction that start and end with certain condition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601968#M209512</link>
      <description>&lt;P&gt;yes this will work . my question is that how to add multiple start with and multiple end with .. or alternative for the transaction .&lt;/P&gt;&lt;P&gt;index="prod" source="mysource" | transaction startswith="create happening for test" endswith=("create done for test " OR "create not done for test" )|stats count&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 18:55:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601968#M209512</guid>
      <dc:creator>btcs2</dc:creator>
      <dc:date>2022-06-15T18:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to write search to find number of Splunk transaction that start and end with certain condition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601988#M209521</link>
      <description>&lt;P&gt;Is something like this what you are looking for? All the stuff before the transaction command is just to create some test events.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=12
| streamstats count
| eval _time=_time + count
| eval value = case(count=1, "A", count=2, "C", count=3, "A", count=4, "D", count=5, "B", count=6, "C", count=7, "B", count=8, "D", count=9, "A", count=10, "F", count="11", "A", count="12", "G")
| eval ip = "192.168.0.1"
| transaction ip startswith=eval(value="A" OR value="B") endswith=eval(value="C" OR value="D")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 22:00:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601988#M209521</guid>
      <dc:creator>fredclown</dc:creator>
      <dc:date>2022-06-15T22:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to write search to find number of Splunk transaction that start and end with certain condition?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601992#M209522</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'll do my best to make pseudo SPL here:)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="prod" source="mysource" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| transaction startswith=(fieldname=start_field_value OR filename=alternate_start_field_value) endswith=(diff_fieldname=end_value OR diff_fieldname2=alternate_fieldvalue)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;|stats count&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You will need to encapsulate your search in "()". If you could share field names, values desired, that would help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used&amp;nbsp; an old eventgen data set and came up with the following. You can use this with your index(es), sourcetypes, etc.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=main&lt;BR /&gt;| transaction clientip JSESSIONID startswith=(status=200 action=addtocart) endswith=(status=200 AND action=purchase)&lt;BR /&gt;| stats count by host&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can insert SPL into the "()" to define start and end. I would avoid using clear text search for any of the start/end filters though.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 22:12:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-search-to-find-number-of-Splunk-transaction-that/m-p/601992#M209522</guid>
      <dc:creator>sshelly_splunk</dc:creator>
      <dc:date>2022-06-15T22:12:38Z</dc:date>
    </item>
  </channel>
</rss>

