<?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 can some explain this search please in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/can-some-explain-this-search-please/m-p/476955#M7541</link>
    <description>&lt;P&gt;my search |eval _time= strftime(_time, "%Y-%m-%d")|stats  latest(AssetRiskScore) as score   by _time  AssetNames | sort 0 - _time&lt;BR /&gt;
 | dedup 2 AssetNames  | reverse&lt;BR /&gt;
 | streamstats current=f last(score) AS prev_score BY AssetNames&lt;BR /&gt;
 | eval change = score - prev_score&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:02:09 GMT</pubDate>
    <dc:creator>vikram1583</dc:creator>
    <dc:date>2020-09-30T05:02:09Z</dc:date>
    <item>
      <title>can some explain this search please</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/can-some-explain-this-search-please/m-p/476955#M7541</link>
      <description>&lt;P&gt;my search |eval _time= strftime(_time, "%Y-%m-%d")|stats  latest(AssetRiskScore) as score   by _time  AssetNames | sort 0 - _time&lt;BR /&gt;
 | dedup 2 AssetNames  | reverse&lt;BR /&gt;
 | streamstats current=f last(score) AS prev_score BY AssetNames&lt;BR /&gt;
 | eval change = score - prev_score&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/can-some-explain-this-search-please/m-p/476955#M7541</guid>
      <dc:creator>vikram1583</dc:creator>
      <dc:date>2020-09-30T05:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: can some explain this search please</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/can-some-explain-this-search-please/m-p/476956#M7542</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|eval _time= strftime(_time, "%Y-%m-%d")
|stats latest(AssetRiskScore) as score by _time AssetNames
| sort 0 - _time
| dedup 2 AssetNames 
| reverse
| streamstats current=f last(score) AS prev_score BY AssetNames
| eval change = score - prev_score
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;UL&gt;
&lt;LI&gt; chang epoch time to text like &lt;CODE&gt;2020-04-15&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;aggregate by &lt;CODE&gt;_time&lt;/CODE&gt; and &lt;CODE&gt;AssetNames&lt;/CODE&gt;
this display latest &lt;CODE&gt;AssetRiskScore&lt;/CODE&gt; values as &lt;CODE&gt;score&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;sort &lt;CODE&gt;_time&lt;/CODE&gt; ascending&lt;/LI&gt;
&lt;LI&gt;keep only first two  &lt;CODE&gt;AssetNames&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;sort &lt;CODE&gt;_time&lt;/CODE&gt; descending&lt;/LI&gt;
&lt;LI&gt;by each AssetNames, display just before  &lt;CODE&gt;score&lt;/CODE&gt; value(like &lt;CODE&gt;autoregress&lt;/CODE&gt;)&lt;/LI&gt;
&lt;LI&gt;calculate &lt;CODE&gt;change&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 16 Apr 2020 21:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/can-some-explain-this-search-please/m-p/476956#M7542</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-16T21:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: can some explain this search please</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/can-some-explain-this-search-please/m-p/476957#M7543</link>
      <description>&lt;P&gt;If I make it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; |eval _time= strftime(_time, "%Y-%m-%d")
 |stats range(AssetRiskScore) as change min(AssetRiskScore) as prev_score max(AssetRiskScore) as score by _time AssetNames
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is enough. &lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 20:11:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/can-some-explain-this-search-please/m-p/476957#M7543</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-17T20:11:18Z</dc:date>
    </item>
  </channel>
</rss>

