<?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: How can I show the difference in a string field from one day to another? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386836#M169513</link>
    <description>&lt;P&gt;Thanks, I appreciate the help. &lt;/P&gt;</description>
    <pubDate>Wed, 09 May 2018 20:10:17 GMT</pubDate>
    <dc:creator>bscavotto</dc:creator>
    <dc:date>2018-05-09T20:10:17Z</dc:date>
    <item>
      <title>How can I show the difference in a string field from one day to another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386831#M169508</link>
      <description>&lt;P&gt;I have a powershell script that audits some files and creates an Windows application event log with the filepaths of any matches in the Message field. It runs once per day and creates a single event log everyday. I only want the diff from one day to the next as new things are found. &lt;/P&gt;

&lt;P&gt;My query so far only gives me the split listing of the Message field contents and the count but how do I get it to only show me the new entries as compared to the previous day? &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=WinEventLog:Application SourceName=MessageAudit |eval NewMessage=split(Message,"\\\\") |eval NewMessageCount=mvcount(NewMessage) |table NewMessage,NewMessageCount | search NewMessageCount&amp;gt;3&lt;/CODE&gt;6&lt;BR /&gt;
(There are 36 consistent false positives)&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 15:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386831#M169508</guid>
      <dc:creator>bscavotto</dc:creator>
      <dc:date>2018-05-09T15:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show the difference in a string field from one day to another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386832#M169509</link>
      <description>&lt;P&gt;Perhaps the &lt;CODE&gt;diff&lt;/CODE&gt; command would work here&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=WinEventLog:Application SourceName=MessageAudit |eval NewMessage=split(Message,"\\\\") |eval NewMessageCount=mvcount(NewMessage) |table NewMessage,NewMessageCount| diff pos1=... pos2=... | search NewMessageCount&amp;gt;36
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.0/SearchReference/Diff"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.0/SearchReference/Diff&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 17:49:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386832#M169509</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-05-09T17:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show the difference in a string field from one day to another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386833#M169510</link>
      <description>&lt;P&gt;Thanks, I've reviewed that document. I'm not clear on what would go into the pos1 and pos2 fields. &lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 18:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386833#M169510</guid>
      <dc:creator>bscavotto</dc:creator>
      <dc:date>2018-05-09T18:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show the difference in a string field from one day to another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386834#M169511</link>
      <description>&lt;P&gt;Plus, I'm not diffing data in the same output. This is output from each day separately. &lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 18:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386834#M169511</guid>
      <dc:creator>bscavotto</dc:creator>
      <dc:date>2018-05-09T18:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show the difference in a string field from one day to another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386835#M169512</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=WinEventLog:Application SourceName=MessageAudit earliest=-1d@d latest=now
| fields _time Message |eval Message=split(Message,"\\\\") | mvexpand Message
| stats values(_time) as time by Message 
| rename COMMENT as "Below line will filter results to show new paths that were received today"
| whhere mvcount(time)=1 AND time&amp;gt;=relative_time(now(),"@d")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 May 2018 19:24:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386835#M169512</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-05-09T19:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I show the difference in a string field from one day to another?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386836#M169513</link>
      <description>&lt;P&gt;Thanks, I appreciate the help. &lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 20:10:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-show-the-difference-in-a-string-field-from-one-day-to/m-p/386836#M169513</guid>
      <dc:creator>bscavotto</dc:creator>
      <dc:date>2018-05-09T20:10:17Z</dc:date>
    </item>
  </channel>
</rss>

