<?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: change events only in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/658915#M227565</link>
    <description>&lt;P&gt;What data is the correlation between the same event - please give an example of the data you may see and what you would expect.&lt;/P&gt;&lt;P&gt;For example, if you have an event yesterday with&amp;nbsp;&lt;/P&gt;&lt;P&gt;key1=A, key2=B,key3=C&lt;/P&gt;&lt;P&gt;and an event today with&lt;/P&gt;&lt;P&gt;key1=A, key2=B,key3=D&lt;/P&gt;&lt;P&gt;what do you want to show? If you have lots of events with different fields, is there some common object that connects those events to today's events?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 22:05:35 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2023-09-27T22:05:35Z</dc:date>
    <item>
      <title>How to get change events only?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/658907#M227564</link>
      <description>&lt;P&gt;I&amp;nbsp; have events with the following keys: key1, key2 &amp;amp; key3.&lt;/P&gt;
&lt;P&gt;I would like to get the change events i.e. events that their key1, key2 &amp;amp; key3 values are not in the events of previous day.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What should the query look like?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 17:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/658907#M227564</guid>
      <dc:creator>eranhauser</dc:creator>
      <dc:date>2023-10-02T17:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: change events only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/658915#M227565</link>
      <description>&lt;P&gt;What data is the correlation between the same event - please give an example of the data you may see and what you would expect.&lt;/P&gt;&lt;P&gt;For example, if you have an event yesterday with&amp;nbsp;&lt;/P&gt;&lt;P&gt;key1=A, key2=B,key3=C&lt;/P&gt;&lt;P&gt;and an event today with&lt;/P&gt;&lt;P&gt;key1=A, key2=B,key3=D&lt;/P&gt;&lt;P&gt;what do you want to show? If you have lots of events with different fields, is there some common object that connects those events to today's events?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 22:05:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/658915#M227565</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-09-27T22:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: change events only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/658920#M227568</link>
      <description>&lt;P&gt;a change event is considered if any combination of key1, key2 &amp;amp; key3 is new. In your example &lt;SPAN&gt;key1=A, key2=B,key3=D will be considered as a new event.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 22:50:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/658920#M227568</guid>
      <dc:creator>eranhauser</dc:creator>
      <dc:date>2023-09-27T22:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: change events only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/658921#M227569</link>
      <description>&lt;P&gt;then something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index earliest=-1d@d latest=now()
``` Collect all combinations of key 1, 2 and 3 by day ```
| bin _time span=1d
| stats count by _time key1 key2 key3
``` Count the number of days these key combinations occur ```
| stats dc(_time) as times list(_time) as days by key1 key2 key3
``` and then if there is only 1 variant and it is today, it's a new type ```
| where times=1 AND days=relative_time(now(), "@d")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Sep 2023 22:58:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/658921#M227569</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-09-27T22:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: change events only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/658928#M227571</link>
      <description>&lt;P&gt;There should be something similar to SQL in splunk like right outer joint no?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 01:25:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/658928#M227571</guid>
      <dc:creator>eranhauser</dc:creator>
      <dc:date>2023-09-28T01:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: change events only</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/659020#M227600</link>
      <description>&lt;P&gt;There is a join command, but it is NOT the first, second or third choice for a Splunk solution - you can and should always use stats to join data. join has limitations, requires a second search to do the join data.&lt;/P&gt;&lt;P&gt;This stats command is effectively calculating all the similar triplets by time and where there are two times (e.g. 2 days) you have a non-change event, so discard it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 00:19:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-change-events-only/m-p/659020#M227600</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-09-29T00:19:43Z</dc:date>
    </item>
  </channel>
</rss>

