<?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: Evaluate multiple events with same data. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Evaluate-multiple-events-with-same-data/m-p/341190#M161289</link>
    <description>&lt;P&gt;Use the &lt;CODE&gt;dedup&lt;/CODE&gt; command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | dedup Server Status | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 21 Apr 2017 13:33:34 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2017-04-21T13:33:34Z</dc:date>
    <item>
      <title>Evaluate multiple events with same data.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Evaluate-multiple-events-with-same-data/m-p/341189#M161288</link>
      <description>&lt;P&gt;I would like to count the number of times a Server went down based on up/down status field.&lt;BR /&gt;
How can i evaluate multiple(continuous) &lt;CODE&gt;down&lt;/CODE&gt; into one &lt;CODE&gt;down&lt;/CODE&gt; status, when i am receiving events every five minutes?&lt;BR /&gt;
Multiple(continuous) &lt;CODE&gt;down&lt;/CODE&gt; for one host should be treated as one &lt;CODE&gt;down&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Time| Server       |Status&lt;/STRONG&gt;&lt;BR /&gt;
3:00 AM Host1   up&lt;BR /&gt;
3:00 PM Host2   down&lt;BR /&gt;
3:05 PM Host1   up&lt;BR /&gt;
3:10 PM Host1   up&lt;BR /&gt;
3:15 PM Host1   down&lt;BR /&gt;
3:15 PM Host2   up&lt;BR /&gt;
3:20 PM Host1   up&lt;BR /&gt;
3:25 PM Host1   down&lt;BR /&gt;
3:30 PM Host1   up&lt;BR /&gt;
3:35 PM Host1   up&lt;BR /&gt;
3:40 PM Host1   down&lt;BR /&gt;
3:45 PM Host1   down&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 12:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Evaluate-multiple-events-with-same-data/m-p/341189#M161288</guid>
      <dc:creator>biec1</dc:creator>
      <dc:date>2017-04-21T12:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate multiple events with same data.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Evaluate-multiple-events-with-same-data/m-p/341190#M161289</link>
      <description>&lt;P&gt;Use the &lt;CODE&gt;dedup&lt;/CODE&gt; command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | dedup Server Status | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Apr 2017 13:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Evaluate-multiple-events-with-same-data/m-p/341190#M161289</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-04-21T13:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate multiple events with same data.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Evaluate-multiple-events-with-same-data/m-p/341191#M161290</link>
      <description>&lt;P&gt;How can this help me to get the number of the times the server went down in a week?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index_names source="rest://" (server="host1" OR server="host2")
| stats latest(_time) as Time values(server_state) as status by server _time
| dedup server status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Apr 2017 14:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Evaluate-multiple-events-with-same-data/m-p/341191#M161290</guid>
      <dc:creator>biec1</dc:creator>
      <dc:date>2017-04-21T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate multiple events with same data.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Evaluate-multiple-events-with-same-data/m-p/341192#M161291</link>
      <description>&lt;P&gt;Your question was how to evaluate multiple instances of a status value to a single instance.  The &lt;CODE&gt;dedup&lt;/CODE&gt; command does exactly that.&lt;BR /&gt;
That doesn't tell you how many times a server went down, just the last time the status changed to Up or Down.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 14:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Evaluate-multiple-events-with-same-data/m-p/341192#M161291</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-04-21T14:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate multiple events with same data.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Evaluate-multiple-events-with-same-data/m-p/341193#M161292</link>
      <description>&lt;P&gt;I would like to retrieve the number of times a server went down.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 17:02:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Evaluate-multiple-events-with-same-data/m-p/341193#M161292</guid>
      <dc:creator>biec1</dc:creator>
      <dc:date>2017-04-21T17:02:32Z</dc:date>
    </item>
  </channel>
</rss>

