<?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: Multyple sources display only one value in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355897#M5705</link>
    <description>&lt;P&gt;That seems like great questionmancy.  Upvote for divining the purpose of the question and aiming to solve the underlying issues rather than answer only what was asked.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2017 18:41:08 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-03-15T18:41:08Z</dc:date>
    <item>
      <title>Multyple sources display only one value</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355894#M5702</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;How can I display in a single value chart only the value that is 2 when that occurs, or a single value 1 when other values are not present in a given time frame&lt;/P&gt;

&lt;P&gt;Events :&lt;/P&gt;

&lt;P&gt;source = A value = 1&lt;BR /&gt;
source = B value = 1&lt;BR /&gt;
source = C value = 1&lt;BR /&gt;
source = D value = 1&lt;BR /&gt;
.. &lt;BR /&gt;
source = A value = 1&lt;BR /&gt;
source = B value = 2&lt;BR /&gt;
source = C value = 1&lt;BR /&gt;
source = D value = 1&lt;/P&gt;

&lt;P&gt;My search :&lt;/P&gt;

&lt;P&gt;sourcetype=test | dedup value | stats last(value)&lt;/P&gt;

&lt;P&gt;Result : &lt;/P&gt;

&lt;P&gt;Will only show me the value = 1 and if value = 2 occurs, I do not see it. &lt;/P&gt;

&lt;P&gt;Please assist. &lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 09:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355894#M5702</guid>
      <dc:creator>andrei1bc</dc:creator>
      <dc:date>2017-03-15T09:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multyple sources display only one value</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355895#M5703</link>
      <description>&lt;P&gt;You just need to change from last to max()&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;Your Base Search&amp;gt;
| stats max(value) as MaxValue by source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Mar 2017 10:33:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355895#M5703</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-15T10:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multyple sources display only one value</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355896#M5704</link>
      <description>&lt;P&gt;'stats last(value)' shows the oldest value&lt;BR /&gt;
'stats latest(value)' shows the newest value in the index&lt;/P&gt;

&lt;P&gt;Both require accurate timestamping and do not take into account data that could be in flight / indexing lag.  Meaning the results could vary based on when you run the search and how long it takes data to "get/be" there.&lt;/P&gt;

&lt;P&gt;I get the feeling you've greatly simplified what the possible values are and you're really looking for deviations from the common values though.&lt;/P&gt;

&lt;P&gt;If that's the case you might be looking for something a bit more complicated like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rootSearchHere NOT [ rootSearchHere | top 1 value by source | return $source $value] | stats values(value) by source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This would remove the top 1 most common values per source from the search and return the other values by source.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 10:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355896#M5704</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-03-15T10:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multyple sources display only one value</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355897#M5705</link>
      <description>&lt;P&gt;That seems like great questionmancy.  Upvote for divining the purpose of the question and aiming to solve the underlying issues rather than answer only what was asked.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 18:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355897#M5705</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-15T18:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multyple sources display only one value</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355898#M5706</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype=test | dedup value source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=test | stats earliest(value) latest(value) min(value) max(value) avg(value) BY source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Depending on what priority you have regarding each source's &lt;CODE&gt;value&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 19:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355898#M5706</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-15T19:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multyple sources display only one value</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355899#M5707</link>
      <description>&lt;P&gt;Cheers Mate!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 22:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Multyple-sources-display-only-one-value/m-p/355899#M5707</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-03-15T22:08:15Z</dc:date>
    </item>
  </channel>
</rss>

