<?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: Help with events data! in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-events-data/m-p/365210#M169942</link>
    <description>&lt;P&gt;It works as i was hoping, thanks for your help!!!&lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2018 10:28:16 GMT</pubDate>
    <dc:creator>ppatrikfr</dc:creator>
    <dc:date>2018-04-27T10:28:16Z</dc:date>
    <item>
      <title>Help with events data!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-events-data/m-p/365207#M169939</link>
      <description>&lt;P&gt;I have this code bellow and i want to just keep with lines of when my Virtual Machine changed Cluster ou VMhost.&lt;/P&gt;

&lt;P&gt;Obs.: I cant use "dedup" because i have VMs that was moved to the same cluster twice.![alt text][1] &lt;/P&gt;

&lt;P&gt;earliest=03/01/2018:00:00:00 latest=03/31/2018:23:59:00 sourcetype="VCENTER_VMS_INFO" &lt;BR /&gt;
| eval VM=upper(VM) &lt;BR /&gt;
| table _time VM VMhost Cluster &lt;BR /&gt;
| where VM="VMName" | bucket span=1h _time | stats values(VMhost) as VMhost values(Cluster) as Cluster by _time VM | &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-events-data/m-p/365207#M169939</guid>
      <dc:creator>ppatrikfr</dc:creator>
      <dc:date>2020-09-29T19:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with events data!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-events-data/m-p/365208#M169940</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=03/01/2018:00:00:00 latest=03/31/2018:23:59:00 sourcetype="VCENTER_VMS_INFO" 
| eval VM=upper(VM) 
| table _time VM VMhost Cluster 
| where VM="DCDEV00027" | bucket span=1h _time | stats values(VMhost) as VMhost values(Cluster) as Cluster by _time VM 
| streamstats current=f window=1 values(VMhost) as prevVMhost values(Cluster) as prevCluster by VM 
| whehre VMhost!=prevVMhost OR Cluster!=prevCluster
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Apr 2018 18:49:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-events-data/m-p/365208#M169940</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-26T18:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with events data!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-events-data/m-p/365209#M169941</link>
      <description>&lt;P&gt;You can use autoregress to get the value from previous row and compare it with current row value. Something like below&lt;/P&gt;

&lt;PRE&gt;
| autoregress VMhost as Old_VMhost  | eval Flag=if(VMhost==Old_VMhost ,"N","Y") | where Flag="Y"
&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Apr 2018 18:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-events-data/m-p/365209#M169941</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2018-04-26T18:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with events data!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-events-data/m-p/365210#M169942</link>
      <description>&lt;P&gt;It works as i was hoping, thanks for your help!!!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 10:28:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-events-data/m-p/365210#M169942</guid>
      <dc:creator>ppatrikfr</dc:creator>
      <dc:date>2018-04-27T10:28:16Z</dc:date>
    </item>
  </channel>
</rss>

