<?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 do I filter a transaction search based on the number of events in each transaction? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52316#M12705</link>
    <description>&lt;P&gt;Hi MikeRose&lt;BR /&gt;
for two reasons, my answer was useful. &lt;BR /&gt;
1. if you don't know what happens to fields in transactions, you are not able to 'filter' anything. &lt;BR /&gt;
2. One of my examples provided the solution for you &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;cheers,&lt;BR /&gt;
MuS&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2012 05:45:36 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2012-09-12T05:45:36Z</dc:date>
    <item>
      <title>How do I filter a transaction search based on the number of events in each transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52310#M12699</link>
      <description>&lt;P&gt;I want to group search results by user &amp;amp; src_ip (eg. via "transaction) however I only want to display results where there is more than x events per transaction. I can't find in the documentation whether the transaction grouping creates any variable I can then subsequently filter on.&lt;/P&gt;

&lt;P&gt;Eg.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=os sourcetype=syslog process=sshd Invalid | transaction user src_ip | ...?&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 05:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52310#M12699</guid>
      <dc:creator>MikeRose</dc:creator>
      <dc:date>2012-09-06T05:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter a transaction search based on the number of events in each transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52311#M12700</link>
      <description>&lt;P&gt;Hi MikeRose&lt;/P&gt;

&lt;P&gt;after a transaction, all the transaction fields are merged into a single field.&lt;BR /&gt;
only one is kept, if they are the same. if they are different, they are all concatenated.&lt;/P&gt;

&lt;P&gt;example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search * | eval raw=_raw | table host source source_IP raw hostA sourceA 
192.168.168.73 "myrawevent" hostA sourceA  192.168.168.10 "mysecondrawevent"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;becomes the transastion&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search | transaction | eval raw=_raw | table host source source_IP raw hostA
 sourceA "192.168.168.73 192.168.198.10" "myrawevent mysecondrawevent"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so you may want to filter using wildcards, like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=syslog process=sshd Invalid | transaction user src_ip | WHERE src_ip="*192.168.168.73*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=syslog process=sshd Invalid | transaction user src_ip | WHERE like(src_ip,"%192.168.168.73%")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=syslog process=sshd Invalid | transaction user src_ip |search src_ip="*192.168.168.73*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers,&lt;/P&gt;

&lt;P&gt;MuS&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 05:43:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52311#M12700</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2012-09-06T05:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter a transaction search based on the number of events in each transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52312#M12701</link>
      <description>&lt;P&gt;Found it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=syslog process=sshd Invalid | transaction user src_ip | search eventcount&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Sep 2012 05:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52312#M12701</guid>
      <dc:creator>MikeRose</dc:creator>
      <dc:date>2012-09-06T05:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter a transaction search based on the number of events in each transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52313#M12702</link>
      <description>&lt;P&gt;I think you misunderstood me. Your suggestions are not helpful. I wanted to filter the resulting list of transactions based on the number of events per transaction&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 05:47:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52313#M12702</guid>
      <dc:creator>MikeRose</dc:creator>
      <dc:date>2012-09-06T05:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter a transaction search based on the number of events in each transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52314#M12703</link>
      <description>&lt;P&gt;wow, bad day today? I was just trying to help and explain how the fields are handled in transaction.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 06:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52314#M12703</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2012-09-06T06:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter a transaction search based on the number of events in each transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52315#M12704</link>
      <description>&lt;P&gt;There is no need to take it personally or get upset, I was being objective. I down-voted your answer because it was not useful and didn't address the question. As you can see ("...where there is more than x events per transaction"), my original question is about filtering transactions by number of events, not how fields are handled in transactions. I wasn't passing judgement on you personally.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 04:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52315#M12704</guid>
      <dc:creator>MikeRose</dc:creator>
      <dc:date>2012-09-12T04:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter a transaction search based on the number of events in each transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52316#M12705</link>
      <description>&lt;P&gt;Hi MikeRose&lt;BR /&gt;
for two reasons, my answer was useful. &lt;BR /&gt;
1. if you don't know what happens to fields in transactions, you are not able to 'filter' anything. &lt;BR /&gt;
2. One of my examples provided the solution for you &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;cheers,&lt;BR /&gt;
MuS&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 05:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-filter-a-transaction-search-based-on-the-number-of/m-p/52316#M12705</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2012-09-12T05:45:36Z</dc:date>
    </item>
  </channel>
</rss>

