<?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 use where to compare field values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-where-to-compare-field-values/m-p/420410#M120842</link>
    <description>&lt;P&gt;Put the &lt;CODE&gt;where&lt;/CODE&gt; clause before the &lt;CODE&gt;stats&lt;/CODE&gt; to reduce the number of events to process.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | where 'x' != 'y' | stats count by x,y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The single quotes tell Splunk to treat x and y as field names rather than strings.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 16:57:05 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-06-12T16:57:05Z</dc:date>
    <item>
      <title>How to use where to compare field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-where-to-compare-field-values/m-p/420408#M120840</link>
      <description>&lt;P&gt;Let's say I'm doing a  stats count by x,y&lt;/P&gt;

&lt;P&gt;How would I formulate a WHERE that compares the string value of x and y and only returns the stats count when there's a difference. &lt;/P&gt;

&lt;P&gt;So like stats count by x,y  &lt;CODE&gt;|where x != y&lt;/CODE&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-where-to-compare-field-values/m-p/420408#M120840</guid>
      <dc:creator>summitsplunk</dc:creator>
      <dc:date>2019-06-12T15:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use where to compare field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-where-to-compare-field-values/m-p/420409#M120841</link>
      <description>&lt;P&gt;@summitsplunk Is your query not working. What are the values in x and y can you give an example.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:55:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-where-to-compare-field-values/m-p/420409#M120841</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-06-12T15:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use where to compare field values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-where-to-compare-field-values/m-p/420410#M120842</link>
      <description>&lt;P&gt;Put the &lt;CODE&gt;where&lt;/CODE&gt; clause before the &lt;CODE&gt;stats&lt;/CODE&gt; to reduce the number of events to process.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | where 'x' != 'y' | stats count by x,y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The single quotes tell Splunk to treat x and y as field names rather than strings.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 16:57:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-where-to-compare-field-values/m-p/420410#M120842</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-06-12T16:57:05Z</dc:date>
    </item>
  </channel>
</rss>

