<?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: Finding Delta between 2 sets of events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622538#M216418</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you so much for your quick response, truly appreciate it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Delta Meant:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[Delta] = [Today's Events - Yesterday's Events]&lt;/P&gt;&lt;P&gt;[Report] = [Delta]&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need any more clarifications on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 02:18:30 GMT</pubDate>
    <dc:creator>SplunkDash</dc:creator>
    <dc:date>2022-11-30T02:18:30Z</dc:date>
    <item>
      <title>How to find Delta between 2 sets of events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622531#M216413</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have use cases to find the Delta between 2 sets of events. We get events once a day, our objective is to find the delta between current events (event received today) and the events we received yesterday and create a report based on that delta (events). Any recommendation would be highly appreciated. Thank you so much.    &lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 16:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622531#M216413</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-12-01T16:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Delta between 2 sets of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622537#M216417</link>
      <description>&lt;P&gt;Not sure what you understand by "delta", but this sort of starting point&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(search_today_events) OR (search_yesterday_events)
| eval group=if(_time &amp;gt; relative_time(_time, "@d"), "today", "yesterday")
| stats count by group&lt;/LI-CODE&gt;&lt;P&gt;This will simply search for both yesterday's events and today's events and do a "count" of total events found in each "group"&lt;/P&gt;&lt;P&gt;If your meaning of 'delta' encompasses other differences, e.g. count of logons, sales of product, then you will have to expand on this basic type of search&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 02:03:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622537#M216417</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-11-30T02:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Delta between 2 sets of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622538#M216418</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you so much for your quick response, truly appreciate it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Delta Meant:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[Delta] = [Today's Events - Yesterday's Events]&lt;/P&gt;&lt;P&gt;[Report] = [Delta]&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need any more clarifications on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 02:18:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622538#M216418</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-11-30T02:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Delta between 2 sets of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622558#M216425</link>
      <description>&lt;P&gt;Simple search then looks like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_search earliest=-2d@d latest=@d
| bin _time span=1d
| stats count by _time
| delta count as delta
| where isnotnull(delta)
| fields delta&lt;/LI-CODE&gt;&lt;P&gt;It will give you a single value 'delta' with a positive (increase) or negative (decrease) of previous day's event count.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 07:02:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622558#M216425</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-11-30T07:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Delta between 2 sets of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622813#M216538</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you again. Yes, it's giving be the values in positive /negative increases. But my interest is to get the list of those events. Any recommendation would be highly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 13:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622813#M216538</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-12-01T13:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Delta between 2 sets of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622816#M216540</link>
      <description>&lt;P&gt;There is a set command - &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Set" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Set&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I'd rather use the "clasify and filter" approach.&lt;/P&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;PRE&gt;&amp;lt;your search&amp;gt;&lt;BR /&gt;| eval is_yesterday=if(now()-_time&amp;gt;86400,1,0)&lt;BR /&gt;| stats values(is_yesterday) by &amp;lt;your relevant fields&amp;gt;&lt;BR /&gt;| search NOT is_yesterday=1&lt;/PRE&gt;&lt;P&gt;Of course you can adjust the is_yesterday calculation to your needed condition.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 14:26:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622816#M216540</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-12-01T14:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Delta between 2 sets of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622928#M216559</link>
      <description>&lt;P&gt;That was the purpose of my question around what is 'delta'.First you need to clarify what events constitute a 'difference'. i.e. how can the search know what event yesterday corresponds to its equivalent matching event today.&lt;/P&gt;&lt;P&gt;Please provide some examples of events from 'yesterday' that are&lt;/P&gt;&lt;P&gt;1. The same and should be ignored&lt;/P&gt;&lt;P&gt;2. Different and should be listed in the delta&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 00:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622928#M216559</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-12-02T00:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Delta between 2 sets of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622930#M216561</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick response. Here are what you requested:&lt;/P&gt;&lt;P&gt;1. The same and should be ignored&lt;/P&gt;&lt;P&gt;Today's Events= Yesterday Events + New Events&lt;/P&gt;&lt;P&gt;2. Different and should be listed in the delta&lt;/P&gt;&lt;P&gt;Only we need Display New Events (Different) as Delta&lt;/P&gt;&lt;P&gt;Please let me know if you need more clarifications. Thank you again.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 00:55:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622930#M216561</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-12-02T00:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Delta between 2 sets of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622931#M216562</link>
      <description>&lt;P&gt;Clarification required:&lt;/P&gt;&lt;P&gt;You need to be clear on what equality means&lt;/P&gt;&lt;P&gt;If yesterday you have&lt;/P&gt;&lt;P&gt;event1 : time=... message=this is a message&lt;/P&gt;&lt;P&gt;and today you have&lt;/P&gt;&lt;P&gt;event 1: time=... message=this is also a message&lt;/P&gt;&lt;P&gt;is that the same or different?&lt;/P&gt;&lt;P&gt;Please provide examples of what you mean by&lt;/P&gt;&lt;P&gt;today = yesterday&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 01:06:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622931#M216562</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-12-02T01:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Delta between 2 sets of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622933#M216564</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Ok got it.&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;yesterday I have&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;event1 : time=... message=this is a message&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;event2 : time=... message=this is a message&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;event 3 : time=... message=this is a message&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;event4 : time=... message=this is a message&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;and today I have&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;event1 : time=... message=this is a message&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;event2 : time=... message=this is a message&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;event 3 : time=... message=this is a message&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;event4 : time=... message=this is a message&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;event5 : time=... message=this is a message&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;event6 : time=... message=this is a message&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&lt;STRONG&gt;is that the same or different? &lt;/STRONG&gt;&lt;/EM&gt;&lt;FONT size="3"&gt;Events 1-3 in both cases are the same. But Event 4 is different and Event 5-6 completely new events and are also different&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Let me know if you need more clarifications. Thank you!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 01:21:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622933#M216564</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-12-02T01:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Delta between 2 sets of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622934#M216565</link>
      <description>&lt;P&gt;Why is event 4 different?&lt;/P&gt;&lt;P&gt;So, are you saying that if you have 10 events yesterday and 12 events today, then it DOES NOT MATTER what those event contain, you ONLY want to know that the difference is 2 events and then to see all events above event 10.&lt;/P&gt;&lt;P&gt;What if you had 10 events yesterday and 8 events today - what do you want to see?&lt;/P&gt;&lt;P&gt;It would be really helpful if you could provide a real scenario example of your data and explain what it is you are trying to see&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 01:37:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622934#M216565</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-12-02T01:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Delta between 2 sets of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622935#M216566</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&lt;/P&gt;&lt;P&gt;One more to add: It should only display events 4, 5, and 6 as a Delta. Thank you again.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 01:37:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622935#M216566</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-12-02T01:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Delta between 2 sets of events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622936#M216567</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&lt;/P&gt;&lt;P&gt;It was just an example, there might be more events. In our last example, we only need to see, events 4,5, and 6, since info/content of events 4,5, and 6 are not the same what we had yesterday. Thank you again!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 01:44:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-Delta-between-2-sets-of-events/m-p/622936#M216567</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2022-12-02T01:44:06Z</dc:date>
    </item>
  </channel>
</rss>

