<?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: Report on changes to a field over a specified time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73486#M18404</link>
    <description>&lt;P&gt;You’re looking for a way to create a field based on a change in the field's value.  Is that right?&lt;BR /&gt;
If so, then you can't do it so far as I know.&lt;/P&gt;

&lt;P&gt;Another way to check for a state change is with the dedup command.&lt;BR /&gt;
If Grade is the field you are interested in, this will work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Search Student=”*” Subject=”*” Grade=”*” | dedup Grade | table Student, Subject, Grade, _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It will give you a table with one entry per state, but it will only give the most recent occurrence of each particular state: If the grade goes from A to B and then back to A then you will only see the most recent occurrence of the change from B to A.&lt;/P&gt;

&lt;P&gt;If 'grades' are only changed within specific time intervals, then there may be other options...&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2013 23:12:47 GMT</pubDate>
    <dc:creator>lukejadamec</dc:creator>
    <dc:date>2013-09-25T23:12:47Z</dc:date>
    <item>
      <title>Report on changes to a field over a specified time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73483#M18401</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;I would like to display a table of all occurrences of a change to the value of a field over a period of time. i.e. last 30 days. Assumption that the field contents are a string value and a time stamp is available for each event.

example events where I would want to detect changes to Grade field:
 1. Student=Rob Subject=Math Grade=C 9/31/2013 08:15
 2. Student=Rob Subject=Math Grade=A 9/24/2013 18:01
 3. Student=Rob Subject=Math Grade=B 9/20/2013 13:00
 4. Student=Rob Subject=Math Grade=B 9/17/2013 14:30
 5. Student=Rob Subject=Math Grade=B 9/15/2013 06:05
 6. Student=Rob Subject=Math Grade=C 9/01/2013 13:00

Ideally I would display a report like so which shows changes and times:

Student     Subject     Old_Grade   New_Grade   Time
Rob     Math        A       C       9/31/2013 08:15
Rob     Math        B       A       9/24/2013 18:01
Rob     Math        C       B       9/15/2013 06:05
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2013 22:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73483#M18401</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2013-09-25T22:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Report on changes to a field over a specified time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73484#M18402</link>
      <description>&lt;P&gt;You’re looking for a way to create a field based on a change in the field's value.  Is that right?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2013 22:58:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73484#M18402</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-09-25T22:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Report on changes to a field over a specified time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73485#M18403</link>
      <description>&lt;P&gt;Looking to detect when the event changed and display current(new) and previous(old value) and time of the change over a short or long time frame. I'm looking for more of an audit report rather than an alert on change. So don't want to print an event if there wasn't a change.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2013 23:05:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73485#M18403</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2013-09-25T23:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Report on changes to a field over a specified time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73486#M18404</link>
      <description>&lt;P&gt;You’re looking for a way to create a field based on a change in the field's value.  Is that right?&lt;BR /&gt;
If so, then you can't do it so far as I know.&lt;/P&gt;

&lt;P&gt;Another way to check for a state change is with the dedup command.&lt;BR /&gt;
If Grade is the field you are interested in, this will work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Search Student=”*” Subject=”*” Grade=”*” | dedup Grade | table Student, Subject, Grade, _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It will give you a table with one entry per state, but it will only give the most recent occurrence of each particular state: If the grade goes from A to B and then back to A then you will only see the most recent occurrence of the change from B to A.&lt;/P&gt;

&lt;P&gt;If 'grades' are only changed within specific time intervals, then there may be other options...&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2013 23:12:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73486#M18404</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-09-25T23:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Report on changes to a field over a specified time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73487#M18405</link>
      <description>&lt;P&gt;Yes, thanks for the ideas. In my case, I have to show all changes, not just the last change. The reporting period could be 5 minutes or 3 months based on event data available. Only Grade value is the events. Old_Grade and New_Grade must be derived from Grade field. To answer your other question, grades could be updated at any time, not at a set interval. The grades example above is meant to serve as an example, however I plan to use this on many different reports to track changes to a field over time.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:50:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73487#M18405</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2020-09-28T14:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Report on changes to a field over a specified time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73488#M18406</link>
      <description>&lt;P&gt;You could do it this way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | streamstats global=f current=t window=2 
        first(Grade) as New_Grade
        last(Grade) as Old_Grade
        first(_time) as _time
      by Student Subject
    | where New_Grade != Old_Grade
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;assuming you might have this for multiple students and subjects.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2013 03:36:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73488#M18406</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-09-26T03:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Report on changes to a field over a specified time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73489#M18407</link>
      <description>&lt;P&gt;Great! This is exactly what I was looking for.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2013 14:34:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73489#M18407</guid>
      <dc:creator>bandit</dc:creator>
      <dc:date>2013-09-26T14:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Report on changes to a field over a specified time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73490#M18408</link>
      <description>&lt;P&gt;The one above displays the field only after the value changes. How do we display the last value before it changes? &lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 05:29:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Report-on-changes-to-a-field-over-a-specified-time/m-p/73490#M18408</guid>
      <dc:creator>ringbbg</dc:creator>
      <dc:date>2017-08-03T05:29:24Z</dc:date>
    </item>
  </channel>
</rss>

