<?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 How to search and filter based on fields created by stats? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-filter-based-on-fields-created-by-stats/m-p/116591#M30970</link>
    <description>&lt;P&gt;Howdy, &lt;BR /&gt;
I have a stats search that returns values from fields in different events such as OS Devicetype etc. This information is being combined by the shared field IP. My current search is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats values(Devicetype), values(OS) by IP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This returns a pretty table of all the data I want to see. I am looking for a way to search and filter based on these fields created by stats. I need to be able to search multiple fields. Any suggestions would be appreciated. &lt;/P&gt;</description>
    <pubDate>Tue, 09 Sep 2014 05:05:03 GMT</pubDate>
    <dc:creator>mgubser</dc:creator>
    <dc:date>2014-09-09T05:05:03Z</dc:date>
    <item>
      <title>How to search and filter based on fields created by stats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-filter-based-on-fields-created-by-stats/m-p/116591#M30970</link>
      <description>&lt;P&gt;Howdy, &lt;BR /&gt;
I have a stats search that returns values from fields in different events such as OS Devicetype etc. This information is being combined by the shared field IP. My current search is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats values(Devicetype), values(OS) by IP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This returns a pretty table of all the data I want to see. I am looking for a way to search and filter based on these fields created by stats. I need to be able to search multiple fields. Any suggestions would be appreciated. &lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 05:05:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-filter-based-on-fields-created-by-stats/m-p/116591#M30970</guid>
      <dc:creator>mgubser</dc:creator>
      <dc:date>2014-09-09T05:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to search and filter based on fields created by stats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-filter-based-on-fields-created-by-stats/m-p/116592#M30971</link>
      <description>&lt;P&gt;Hi mgubser,&lt;/P&gt;

&lt;P&gt;Based on your provided example try somthing like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | stats values(Devicetype) AS Devicetype, values(OS) AS OS by IP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now you will get the results back as fields which can be used in further Splunk commands.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 05:35:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-filter-based-on-fields-created-by-stats/m-p/116592#M30971</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-09-09T05:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to search and filter based on fields created by stats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-filter-based-on-fields-created-by-stats/m-p/116593#M30972</link>
      <description>&lt;P&gt;Thanks so much, it's the little things that get me.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 06:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-filter-based-on-fields-created-by-stats/m-p/116593#M30972</guid>
      <dc:creator>mgubser</dc:creator>
      <dc:date>2014-09-09T06:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to search and filter based on fields created by stats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-filter-based-on-fields-created-by-stats/m-p/116594#M30973</link>
      <description>&lt;P&gt;You're welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 06:15:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-filter-based-on-fields-created-by-stats/m-p/116594#M30973</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-09-09T06:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to search and filter based on fields created by stats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-filter-based-on-fields-created-by-stats/m-p/116595#M30974</link>
      <description>&lt;P&gt;Thank you so much for this insight... I was struggling with filtering my stats results until I realized that I needed the AS to create a field to use for filtering.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2015 17:11:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-filter-based-on-fields-created-by-stats/m-p/116595#M30974</guid>
      <dc:creator>djconroy</dc:creator>
      <dc:date>2015-02-25T17:11:32Z</dc:date>
    </item>
  </channel>
</rss>

