<?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 Diff help please in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Diff-help-please/m-p/382621#M170440</link>
    <description>&lt;P&gt;I have a search that returns one result, one of the fields is called whatchanged, and this field really has two values within the one field.  I used makemv to separate the one value into two values, and then I use mvexpand on the field WhatChanged, followed by diff.  It looks like this:&lt;/P&gt;

&lt;P&gt;....... | makemv delim="---" WhatChanged | mvexpand WhatChanged | diff attribute=WhatChanged&lt;/P&gt;

&lt;P&gt;What I am trying to accomplish is identifying what exactly changed between the two fields.  Splunk knows the two are different, (as I do to), but it is not telling me from the string of text what has changed.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;P&gt;value 1 = hello my name is mark and I am happy&lt;/P&gt;

&lt;P&gt;value 2 - hello my name is mark and I am sad&lt;/P&gt;

&lt;P&gt;I would like for the word "sad" to be called out as the change.&lt;/P&gt;

&lt;P&gt;Any thoughts on how to do this, or if it is even possible?&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2019 21:33:59 GMT</pubDate>
    <dc:creator>mcbradford</dc:creator>
    <dc:date>2019-07-09T21:33:59Z</dc:date>
    <item>
      <title>Diff help please</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Diff-help-please/m-p/382621#M170440</link>
      <description>&lt;P&gt;I have a search that returns one result, one of the fields is called whatchanged, and this field really has two values within the one field.  I used makemv to separate the one value into two values, and then I use mvexpand on the field WhatChanged, followed by diff.  It looks like this:&lt;/P&gt;

&lt;P&gt;....... | makemv delim="---" WhatChanged | mvexpand WhatChanged | diff attribute=WhatChanged&lt;/P&gt;

&lt;P&gt;What I am trying to accomplish is identifying what exactly changed between the two fields.  Splunk knows the two are different, (as I do to), but it is not telling me from the string of text what has changed.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;P&gt;value 1 = hello my name is mark and I am happy&lt;/P&gt;

&lt;P&gt;value 2 - hello my name is mark and I am sad&lt;/P&gt;

&lt;P&gt;I would like for the word "sad" to be called out as the change.&lt;/P&gt;

&lt;P&gt;Any thoughts on how to do this, or if it is even possible?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 21:33:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Diff-help-please/m-p/382621#M170440</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2019-07-09T21:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Diff help please</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Diff-help-please/m-p/382622#M170441</link>
      <description>&lt;P&gt;I don't know much about your requirements but this might be helpful with some modifications&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval data = "hello my name is mark and I am happy---hello my name is mark and I am sad" |  makemv delim="---" data | eval field1= mvindex(data,0), field2=mvindex(data,1) |  makemv delim=" " field1 | makemv delim=" " field2   | eval field = mvzip(field1,field2) | table field | mvexpand field | makemv delim="," field | eval field1= mvindex(field,0), field2=mvindex(field,1) | eval diff = if(field1==field2,"",field1."/".field2)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jul 2019 01:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Diff-help-please/m-p/382622#M170441</guid>
      <dc:creator>nabeel652</dc:creator>
      <dc:date>2019-07-10T01:15:07Z</dc:date>
    </item>
  </channel>
</rss>

