<?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: Only Listing Transactions with Multiple Events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Only-Listing-Transactions-with-Multiple-Events/m-p/544406#M154190</link>
    <description>&lt;P&gt;If you're just looking for number of events that make up the transaction, then the transaction command adds a field called&amp;nbsp;&lt;SPAN&gt;eventcount to each of the results, so you can just do&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where eventcount&amp;gt;1&lt;/LI-CODE&gt;&lt;P&gt;Please note that transaction command has a number of issues when dealing with large data sets or long running spans between connected events and you will not see errors when using the command, only 'odd' things happening and random behaviour.&lt;/P&gt;&lt;P&gt;transaction has its uses, but often the same can be achieved with the stats command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 20:59:24 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2021-03-18T20:59:24Z</dc:date>
    <item>
      <title>Only Listing Transactions with Multiple Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-Listing-Transactions-with-Multiple-Events/m-p/544402#M154188</link>
      <description>&lt;P&gt;I am interested in only listing transactions of a given source entity that contain multiple events.&amp;nbsp; Is there a quick and easy way to do this?&lt;/P&gt;&lt;P&gt;index=main | transaction src_entity startswith=at least one thing endswith=another thing | table src dst etc.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 20:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-Listing-Transactions-with-Multiple-Events/m-p/544402#M154188</guid>
      <dc:creator>epw0rrell</dc:creator>
      <dc:date>2021-03-18T20:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Only Listing Transactions with Multiple Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-Listing-Transactions-with-Multiple-Events/m-p/544406#M154190</link>
      <description>&lt;P&gt;If you're just looking for number of events that make up the transaction, then the transaction command adds a field called&amp;nbsp;&lt;SPAN&gt;eventcount to each of the results, so you can just do&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where eventcount&amp;gt;1&lt;/LI-CODE&gt;&lt;P&gt;Please note that transaction command has a number of issues when dealing with large data sets or long running spans between connected events and you will not see errors when using the command, only 'odd' things happening and random behaviour.&lt;/P&gt;&lt;P&gt;transaction has its uses, but often the same can be achieved with the stats command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 20:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-Listing-Transactions-with-Multiple-Events/m-p/544406#M154190</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-03-18T20:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Only Listing Transactions with Multiple Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-Listing-Transactions-with-Multiple-Events/m-p/544408#M154191</link>
      <description>&lt;P&gt;Thanks, that is definitely the answer to that question but now looking at the results, I see that I need to be more specific and only display transactions where a certain field has more than one "event" value if that makes sense?&amp;nbsp; Thanks for your help and is there a way I can do this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 21:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-Listing-Transactions-with-Multiple-Events/m-p/544408#M154191</guid>
      <dc:creator>epw0rrell</dc:creator>
      <dc:date>2021-03-18T21:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Only Listing Transactions with Multiple Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-Listing-Transactions-with-Multiple-Events/m-p/544436#M154203</link>
      <description>&lt;P&gt;To count multiple values of fields, use mvcount, i.e.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where mvcount(fieldname)&amp;gt;1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and a 'value' in the field will be the set of distinct values found for that field in the transaction, e.g. see this simple example&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=20
| streamstats c
| eval _time=_time-c
| sort - _time
| eval id2=ceil(c/2)
| eval id3=random() % 5
| eval id=if(c&amp;lt;9,"123","456")
| transaction id
| eval c_id2=mvcount(id2), c_id3=mvcount(id3)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 19 Mar 2021 05:12:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-Listing-Transactions-with-Multiple-Events/m-p/544436#M154203</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-03-19T05:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Only Listing Transactions with Multiple Events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Only-Listing-Transactions-with-Multiple-Events/m-p/544523#M154233</link>
      <description>&lt;P&gt;Work perfect thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 15:15:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Only-Listing-Transactions-with-Multiple-Events/m-p/544523#M154233</guid>
      <dc:creator>epw0rrell</dc:creator>
      <dc:date>2021-03-19T15:15:00Z</dc:date>
    </item>
  </channel>
</rss>

