<?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: &amp;quot;transaction&amp;quot; command: have four &amp;quot;startswith&amp;quot; and two &amp;quot;endswith&amp;quot; patterns for the same in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/quot-transaction-quot-command-have-four-quot-startswith-quot-and/m-p/667805#M229115</link>
    <description>&lt;P&gt;I would suggest looking at ways of NOT using transaction, as it has limitations. stats can often solve the problem of transaction.&lt;/P&gt;&lt;P&gt;Perhaps you can give an example of your data and say what you are trying to achieve - then the right solution may be clearer.&lt;/P&gt;&lt;P&gt;You can use eval statements in starts and endswith, but before you go down that route, let's see what you're trying to get to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 07:03:39 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2023-11-08T07:03:39Z</dc:date>
    <item>
      <title>"transaction" command: have four "startswith" and two "endswith" patterns for the same transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-transaction-quot-command-have-four-quot-startswith-quot-and/m-p/667800#M229112</link>
      <description>&lt;P&gt;I need to run a Splunk search with&amp;nbsp;"transaction" command and I have four pattern variations for the start of the transaction and two pattern variations for the end of that transaction.&lt;/P&gt;&lt;P&gt;I read the documentation and experimented but still not sure how exactly I should do this. I am operating on complex extensive data so it's not immediately clear whether I am doing this correctly and I need to get it right. I tried the following:&lt;/P&gt;&lt;P&gt;1. Wildcards in startswith and endswith: "endswith=...*..."&lt;/P&gt;&lt;P&gt;2. The syntax "endswith=... OR endswith=...".&amp;nbsp; &amp;nbsp; &amp;nbsp;-- same for startswith&lt;/P&gt;&lt;P&gt;3. The syntax "endswith=... OR ...".&lt;/P&gt;&lt;P&gt;4. Regular expressions instead of wildcards: .* instead of *&lt;/P&gt;&lt;P&gt;Could you suggest the right way of doing this?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 06:41:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-transaction-quot-command-have-four-quot-startswith-quot-and/m-p/667800#M229112</guid>
      <dc:creator>sp</dc:creator>
      <dc:date>2023-11-08T06:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: "transaction" command: have four "startswith" and two "endswith" patterns for the same</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-transaction-quot-command-have-four-quot-startswith-quot-and/m-p/667805#M229115</link>
      <description>&lt;P&gt;I would suggest looking at ways of NOT using transaction, as it has limitations. stats can often solve the problem of transaction.&lt;/P&gt;&lt;P&gt;Perhaps you can give an example of your data and say what you are trying to achieve - then the right solution may be clearer.&lt;/P&gt;&lt;P&gt;You can use eval statements in starts and endswith, but before you go down that route, let's see what you're trying to get to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 07:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-transaction-quot-command-have-four-quot-startswith-quot-and/m-p/667805#M229115</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-11-08T07:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: "transaction" command: have four "startswith" and two "endswith" patterns for the same</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-transaction-quot-command-have-four-quot-startswith-quot-and/m-p/667818#M229121</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262273"&gt;@sp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;said, transaction command should be avoided all times that's possible.&lt;/P&gt;&lt;P&gt;probably the only condition when it could be used is when you have to use startswith or endswith conditions.&lt;/P&gt;&lt;P&gt;Anyway, you can use the OR condition:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| transaction startswith=("string1" OR "string2" OR "string3" OR "string4") endswith=("string5" OR "string6")&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 07:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-transaction-quot-command-have-four-quot-startswith-quot-and/m-p/667818#M229121</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-11-08T07:37:45Z</dc:date>
    </item>
  </channel>
</rss>

