<?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: Reporting on Duplicates in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142373#M29112</link>
    <description>&lt;P&gt;Based on above generated data, you can do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main sourcetype=scan host=scanner | sort + _time
| streamstats window=1 global=f current=f last(Rating) as last_rating by ComputerID
| eval "Rating Change" = Rating - last_rating | table _time ComputerID Rating "Rating Change"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Apr 2014 20:11:10 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-04-24T20:11:10Z</dc:date>
    <item>
      <title>Reporting on Duplicates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142371#M29110</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;So every 24 hours we run daily evaluations on computers that create numerical ratings. Our daily reports display Time(of scan), ComputerID, rating value. After 24 hours, all nodes are scanned again. Some will (hopefully) have a lower numerical rating value. We would like to run a separate report showing the change in value of the numerical rating for each compuert that actually changed over the 24 hour period. &lt;/P&gt;

&lt;P&gt;ComputerID=5 character alpha numeric&lt;BR /&gt;
Rating value=0-100&lt;/P&gt;

&lt;P&gt;The following query works for single instances of evaluation.&lt;BR /&gt;
index=main sourcetype=scan host=scanner ComputerID==1234R | stats range(numerical_rating) AS "Daily Change",values AS Computers | table  Computers,"Daily Changes"&lt;/P&gt;

&lt;P&gt;Unfortunately we can not get this to evaluate properly against 200 computerIDs at one time. Is there a way to separate out the duplicate computerIDs with associated unique numerical_ratings and then get the difference of the numerical_rating reported with the associated computerID?&lt;BR /&gt;
DOH!&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142371#M29110</guid>
      <dc:creator>mphillips_18</dc:creator>
      <dc:date>2020-09-28T16:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting on Duplicates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142372#M29111</link>
      <description>&lt;P&gt;Does this generate a data set matching your events?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-10 | eval _time = endtime | fields _time | eval ComputerID = "id1 id2 id3" | makemv ComputerID | mvexpand ComputerID | eval Rating = random()%101
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Apr 2014 20:04:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142372#M29111</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-24T20:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting on Duplicates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142373#M29112</link>
      <description>&lt;P&gt;Based on above generated data, you can do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main sourcetype=scan host=scanner | sort + _time
| streamstats window=1 global=f current=f last(Rating) as last_rating by ComputerID
| eval "Rating Change" = Rating - last_rating | table _time ComputerID Rating "Rating Change"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Apr 2014 20:11:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142373#M29112</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-24T20:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting on Duplicates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142374#M29113</link>
      <description>&lt;P&gt;Thanks...the query returns data except for the "Rating Change" value. None of the duplicate computerIDs display a value for Rating - last_rating&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 20:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142374#M29113</guid>
      <dc:creator>mphillips_18</dc:creator>
      <dc:date>2014-04-24T20:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting on Duplicates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142375#M29114</link>
      <description>&lt;P&gt;Make sure your field names match. For example, you've said &lt;CODE&gt;ComputerID&lt;/CODE&gt; in the question but &lt;CODE&gt;computerID&lt;/CODE&gt; in this comment.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 20:25:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142375#M29114</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-24T20:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting on Duplicates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142376#M29115</link>
      <description>&lt;P&gt;BINGO! I missed one of the fields.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 20:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Reporting-on-Duplicates/m-p/142376#M29115</guid>
      <dc:creator>mphillips_18</dc:creator>
      <dc:date>2014-04-24T20:34:58Z</dc:date>
    </item>
  </channel>
</rss>

