<?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: Difference between two fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629637#M218737</link>
    <description>&lt;P&gt;Why not&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN&gt;4614240-&lt;/SPAN&gt;&lt;SPAN&gt;" or&amp;nbsp;&amp;nbsp;"-4614240"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;No problem, we can show the field result with "-" in the begging or end, it is not big deal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regarding the others below questions, only need to show the deference between two fields.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 05 Feb 2023 08:16:58 GMT</pubDate>
    <dc:creator>Abdullah</dc:creator>
    <dc:date>2023-02-05T08:16:58Z</dc:date>
    <item>
      <title>Calculate the difference between two fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629632#M218733</link>
      <description>&lt;P&gt;Dears,&lt;/P&gt;
&lt;P&gt;We have two fields in the one index, we need to compare two fields then create a new field to show only on it the difference between two fields.&lt;/P&gt;
&lt;P&gt;Below one of example from the results from two fields:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://splunk.alrajhi.bank/en-US/app/search/search?q=search%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%7C%20join%20sourcetype%20%5Bsearch%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%5D%20%7C%20eval%20A%20%3D%20current_conf-previous_conf%20%7C%20table%20A%2C%20current_conf%2C%20previous_conf&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=&amp;amp;earliest=-7d%40h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;sid=1675579139.70868_1B5F30A9-878B-42E7-9065-4FF273A4DE5A#" target="_blank" rel="noopener"&gt;current_conf&lt;/A&gt;&amp;nbsp;field:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;_Name:REQ000004543448-4614240-shrepoint&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://splunk.alrajhi.bank/en-US/app/search/search?q=search%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%7C%20join%20sourcetype%20%5Bsearch%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%5D%20%7C%20eval%20A%20%3D%20current_conf-previous_conf%20%7C%20table%20A%2C%20current_conf%2C%20previous_conf&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=&amp;amp;earliest=-7d%40h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;display.statistics.sortColumn=current_conf&amp;amp;sid=1675579139.70868_1B5F30A9-878B-42E7-9065-4FF273A4DE5A#" target="_blank" rel="noopener"&gt;previous_conf&lt;/A&gt;&amp;nbsp;field:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;_Name:REQ000004543448-shrepoint&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please your support.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 23:15:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629632#M218733</guid>
      <dc:creator>Abdullah</dc:creator>
      <dc:date>2023-02-05T23:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629633#M218734</link>
      <description>&lt;P&gt;When you are referring to the difference between two strings, you should be more specific. For example, what would you expect to have been shown for your example?&lt;/P&gt;&lt;P&gt;Having said that, I suspect that it is non-trivial and not something that is supported out-of-the-box.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 07:31:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629633#M218734</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-05T07:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629635#M218735</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;The results that I need from my example, create new field contain the deference between two fields that it is "&lt;SPAN&gt;4614240&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunk.alrajhi.bank/en-US/app/search/search?q=search%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%7C%20join%20sourcetype%20%5Bsearch%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%5D%20%7C%20eval%20A%20%3D%20current_conf-previous_conf%20%7C%20table%20A%2C%20current_conf%2C%20previous_conf&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=&amp;amp;earliest=-7d%40h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;sid=1675579139.70868_1B5F30A9-878B-42E7-9065-4FF273A4DE5A#" target="_blank" rel="noopener nofollow noreferrer"&gt;current_conf&lt;/A&gt;&amp;nbsp;field:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_Name:REQ000004543448-4614240-shrepoint&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunk.alrajhi.bank/en-US/app/search/search?q=search%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%7C%20join%20sourcetype%20%5Bsearch%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%5D%20%7C%20eval%20A%20%3D%20current_conf-previous_conf%20%7C%20table%20A%2C%20current_conf%2C%20previous_conf&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=&amp;amp;earliest=-7d%40h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;display.statistics.sortColumn=current_conf&amp;amp;sid=1675579139.70868_1B5F30A9-878B-42E7-9065-4FF273A4DE5A#" target="_blank" rel="noopener nofollow noreferrer"&gt;previous_conf&lt;/A&gt;&amp;nbsp;field:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_Name:REQ000004543448-shrepoint&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 07:46:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629635#M218735</guid>
      <dc:creator>Abdullah</dc:creator>
      <dc:date>2023-02-05T07:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629636#M218736</link>
      <description>&lt;P&gt;Why not&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN&gt;4614240-&lt;/SPAN&gt;&lt;SPAN&gt;" or&amp;nbsp;&amp;nbsp;"-4614240"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What if your fields were "_Name:REQ000004543448-4614240-shrepoint" and "_Name:REQ000005543448-shrepoint"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What about "_Name:REQ000004543448-4614240-shrepoint" and "_Name:REQ000004543448-4614240-shrepoint " (extra space at the end)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What about "&amp;nbsp;_Name:REQ000004543448-4614240-shrepoint" and "_Name:REQ000004543448-4614240-shrepoint" (extra space at the beginning)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 08:07:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629636#M218736</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-05T08:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629637#M218737</link>
      <description>&lt;P&gt;Why not&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN&gt;4614240-&lt;/SPAN&gt;&lt;SPAN&gt;" or&amp;nbsp;&amp;nbsp;"-4614240"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;No problem, we can show the field result with "-" in the begging or end, it is not big deal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regarding the others below questions, only need to show the deference between two fields.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 08:16:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629637#M218737</guid>
      <dc:creator>Abdullah</dc:creator>
      <dc:date>2023-02-05T08:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629638#M218738</link>
      <description>&lt;P&gt;It kind of is a big deal. The requirement is too vague and not fully described, or it can be taken as being very specific as in you only want it applied to those exact examples you have given. The second example looks like it has two differences (the 5 instead of 4, and the extra numbers), how would you like to show that? The leading space in the fourth example means that every character position is different between the two fields. The trailing space example is identical apart from the extra space in one of the fields, does this matter, or should it be stripped before the comparison?&lt;/P&gt;&lt;P&gt;We humans can "easily" recognise the differences between these strings, but teaching a machine to do this is non-trivial, especially with the limited capabilities available in Splunk. It is not a tool designed for detecting these sorts of differences.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 08:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629638#M218738</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-05T08:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629641#M218740</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunk.alrajhi.bank/en-US/app/search/search?q=search%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%7C%20join%20sourcetype%20%5Bsearch%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%5D%20%7C%20eval%20A%20%3D%20current_conf-previous_conf%20%7C%20table%20A%2C%20current_conf%2C%20previous_conf&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=&amp;amp;earliest=-7d%40h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;sid=1675579139.70868_1B5F30A9-878B-42E7-9065-4FF273A4DE5A#" target="_blank" rel="noopener nofollow noreferrer"&gt;current_conf&lt;/A&gt;&amp;nbsp;field:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_Name:REQ000004543448-4614240-shrepoint&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunk.alrajhi.bank/en-US/app/search/search?q=search%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%7C%20join%20sourcetype%20%5Bsearch%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%5D%20%7C%20eval%20A%20%3D%20current_conf-previous_conf%20%7C%20table%20A%2C%20current_conf%2C%20previous_conf&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=&amp;amp;earliest=-7d%40h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;display.statistics.sortColumn=current_conf&amp;amp;sid=1675579139.70868_1B5F30A9-878B-42E7-9065-4FF273A4DE5A#" target="_blank" rel="noopener nofollow noreferrer"&gt;previous_conf&lt;/A&gt;&amp;nbsp;field:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_Name:REQ000004543448-shrepoint&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes I understood you, we just need to know the different number between two fields, that it is "4614240" without - end and beginning.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So can we do that or, it is not?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 08:38:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629641#M218740</guid>
      <dc:creator>Abdullah</dc:creator>
      <dc:date>2023-02-05T08:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629642#M218741</link>
      <description>&lt;P&gt;It depends on what else is consistent between your fields - in your example, you could do this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=current_conf "\-(?&amp;lt;diff&amp;gt;\d+)\-"&lt;/LI-CODE&gt;&lt;P&gt;to extract the extra digits.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 08:43:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629642#M218741</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-05T08:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629643#M218742</link>
      <description>&lt;P&gt;Ok Mr, after extract, what is the next step.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 09:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629643#M218742</guid>
      <dc:creator>Abdullah</dc:creator>
      <dc:date>2023-02-05T09:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629644#M218743</link>
      <description>&lt;P&gt;That depends on what you are trying to achieve. The extract will give you a non-null value if the field matches the pattern, you you could filter on this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnotnull(diff)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 05 Feb 2023 09:27:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629644#M218743</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-05T09:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629645#M218744</link>
      <description>&lt;P&gt;Yes, then, please share with me the full search.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 09:53:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629645#M218744</guid>
      <dc:creator>Abdullah</dc:creator>
      <dc:date>2023-02-05T09:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629646#M218745</link>
      <description>&lt;P&gt;What do you have so far?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 09:54:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629646#M218745</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-02-05T09:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between two fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629647#M218746</link>
      <description>&lt;P&gt;Actually now I tried below search for find the deference between two fields that the results separated by "," not by "-", see the search and results for the fields below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunk.alrajhi.bank/en-US/app/search/search?q=search%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%7C%20join%20sourcetype%20%5Bsearch%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%5D%20%7C%20eval%20A%20%3D%20current_conf-previous_conf%20%7C%20table%20A%2C%20current_conf%2C%20previous_conf&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=&amp;amp;earliest=-7d%40h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;sid=1675579139.70868_1B5F30A9-878B-42E7-9065-4FF273A4DE5A#" target="_blank" rel="noopener nofollow noreferrer"&gt;current_conf&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;field:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_URL_Value:&lt;A href="http://0wl0jql1h.energosberezhenie.com/*,http://post5.vkrugudruzei.ru,https://ath-365-folder-0utlook.web.appyuci7nr4cp63857abfc58f7.tukoapps.ruath-365-folder-0utlook.web.app,https://ath-365-folder-0utlook.web.appyuci7nr4cp63857abfc58f7.tukoapps.ruath-365-folder-0utlook.web.app/*,http://173.208.96.43/,http://survey-smiles.com,https://survey-smiles.com,https://spl-notofocation.tempurl.host/*,https://email.notify.thinkific.com/c/*,https://use.typekit.net/af/*,https://mandrillapp.com/track/click/30195602/*,https://soporte-chilos.tempurl.host/*,https://cloudflare.hcaptcha.com,http://cloudflare.hcaptcha.com,https://6pke47.codesandbox.io,http://6pke47.codesandbox.io,https://boofxvacpc63a506565edb7.segopet.ru,http://boofxvacpc63a506565edb7.segopet.ru,http://bitsnpieces.be/*,https://quickentrance.com/pokke/*,https://quickentrance.com/portalspl/*,https://portalspl.ddns.net/*,http://ww1.goofle.com/*,https://ww1.goofle.com/*,http://coupons.com/*,https://coupons.com/*,http://print.coupons.com/*,https://print.coupons.com/*,https://nrezirn.com,https://65r4prji.r.us-west-2.awstrack.me,http://mrkzgulfup.com,http://dlupload.com,http://hssonee.wap.sh4shared,http://top4top.io,http://imagesupload.org,http://www.jo1sat.net,http://up.djelfa.info,http://up.3raq4all.com,http://upload.chjoy.com,http://up-9.com,http://www.gulf-up.com,http://upload.hawamer.com,http://www.i2pdf.com,http://www.zamzar.com,http://www.duplichecker.com,http://theonlineconverter.com,http://www.foxit.com,http://www.id4arab.com,http://www.camscanner.com,http://www.pdf-suite.com,http://pdf.wondershare.com,http://png2pdf.com,http://pdf2png.com,http://www.pdfmate.com,http://www.web2pdfconvert.com,http://bitsnpieces.be/,https://chedid-insurance-shared-0utlook.firebaseapp.com/,https://chedid-insurance-shared-0utlook.firebaseapp.com,https://mxtkkh79df637a616f5d109.repstara.ru/id-63a40b311d9c3,https://mxtkkh79df637a616f5d109.repstara.ru,http://img6.wsimg.com,http://chedid-insurance-shared-0utlook.firebaseapp.com,http://mxtkkh79df637a616f5d109.repstara.ru,http://nesaih.co.za/*,https://tawangmang.ru/*,https://attach.mail.daum.net/bigfile/v1/urls/fd/_qloddhfj3pazipqgta7u0grwye/a3h7zdglhcstmgl0pq3q0q,https://attach.mail.daum.net/bigfile/v1/urls/d/_qloddhfj3pazipqgta7u0grwye/f3nwh6txiwi2v_hzvt74zw,https://t.ly/-r-b,http://r3.o.lencr.org/,https://linkunshorten.com/?url=https%3a%2f%2fvancouveredu.com%2fsecure%2f&amp;amp;sitenotsafe=true,https://vancouveredu.com/secure/&amp;amp;sitenotsafe=true,https://vancouveredu.com/secure/,http://196.224.96.4" target="_blank" rel="noopener"&gt;http://0wl0jql1h.energosberezhenie.com/*,http://post5.vkrugudruzei.ru,https://ath-365-folder-0utlook.web.appyuci7nr4cp63857abfc58f7.tukoapps.ruath-365-folder-0utlook.web.app,https://ath-365-folder-0utlook.web.appyuci7nr4cp63857abfc58f7.tukoapps.ruath-365-folder-0utlook.web.app/*,http://173.208.96.43/,http://survey-smiles.com,https://survey-smiles.com,https://spl-notofocation.tempurl.host/*,https://email.notify.thinkific.com/c/*,https://use.typekit.net/af/*,https://mandrillapp.com/track/click/30195602/*,https://soporte-chilos.tempurl.host/*,https://cloudflare.hcaptcha.com,http://cloudflare.hcaptcha.com,https://6pke47.codesandbox.io,http://6pke47.codesandbox.io,https://boofxvacpc63a506565edb7.segopet.ru,http://boofxvacpc63a506565edb7.segopet.ru,http://bitsnpieces.be/*,https://quickentrance.com/pokke/*,https://quickentrance.com/portalspl/*,https://portalspl.ddns.net/*,http://ww1.goofle.com/*,https://ww1.goofle.com/*,http://coupons.com/*,https://coupons.com/*,http://print.coupons.com/*,https://print.coupons.com/*,https://nrezirn.com,https://65r4prji.r.us-west-2.awstrack.me,http://mrkzgulfup.com,http://dlupload.com,http://hssonee.wap.sh4shared,http://top4top.io,http://imagesupload.org,http://www.jo1sat.net,http://up.djelfa.info,http://up.3raq4all.com,http://upload.chjoy.com,http://up-9.com,http://www.gulf-up.com,http://upload.hawamer.com,http://www.i2pdf.com,http://www.zamzar.com,http://www.duplichecker.com,http://theonlineconverter.com,http://www.foxit.com,http://www.id4arab.com,http://www.camscanner.com,http://www.pdf-suite.com,http://pdf.wondershare.com,http://png2pdf.com,http://pdf2png.com,http://www.pdfmate.com,http://www.web2pdfconvert.com,http://bitsnpieces.be/,https://chedid-insurance-shared-0utlook.firebaseapp.com/,https://chedid-insurance-shared-0utlook.firebaseapp.com,https://mxtkkh79df637a616f5d109.repstara.ru/id-63a40b311d9c3,https://mxtkkh79df637a616f5d109.repstara.ru,http://img6.wsimg.com,http://chedid-insurance-shared-0utlook.firebaseapp.com,http://mxtkkh79df637a616f5d109.repstara.ru,http://nesaih.co.za/*,https://tawangmang.ru/*,https://attach.mail.daum.net/bigfile/v1/urls/fd/_qloddhfj3pazipqgta7u0grwye/a3h7zdglhcstmgl0pq3q0q,https://attach.mail.daum.net/bigfile/v1/urls/d/_qloddhfj3pazipqgta7u0grwye/f3nwh6txiwi2v_hzvt74zw,https://t.ly/-r-b,http://r3.o.lencr.org/,https://linkunshorten.com/?url=https%3a%2f%2fvancouveredu.com%2fsecure%2f&amp;amp;sitenotsafe=true,https://vancouveredu.com/secure/&amp;amp;sitenotsafe=true,https://vancouveredu.com/secure/,http://196.224.96.4&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://splunk.alrajhi.bank/en-US/app/search/search?q=search%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%7C%20join%20sourcetype%20%5Bsearch%20index%3D%22websense%22%20host%3D10.99.23.49%20OR%20host%3D10.242.77.42%20vendor_action%3Dchange%20%22Type%3A%7BPolicy_Exceptions%7D%22%20%7C%20eval%20SameOrDifferent%3Dif((current_conf%3D%3Dprevious_conf)%2C%22SAME%22%2C%22DIFFERENT%22)%20%5D%20%7C%20eval%20A%20%3D%20current_conf-previous_conf%20%7C%20table%20A%2C%20current_conf%2C%20previous_conf&amp;amp;display.page.search.mode=fast&amp;amp;dispatch.sample_ratio=1&amp;amp;workload_pool=&amp;amp;earliest=-7d%40h&amp;amp;latest=now&amp;amp;display.page.search.tab=statistics&amp;amp;display.general.type=statistics&amp;amp;display.statistics.sortColumn=current_conf&amp;amp;sid=1675579139.70868_1B5F30A9-878B-42E7-9065-4FF273A4DE5A#" target="_blank" rel="noopener nofollow noreferrer"&gt;previous_conf&lt;/A&gt;&amp;nbsp;field:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_URL_Value:&lt;A href="http://0wl0jql1h.energosberezhenie.com/*,http://post5.vkrugudruzei.ru,https://ath-365-folder-0utlook.web.appyuci7nr4cp63857abfc58f7.tukoapps.ruath-365-folder-0utlook.web.app,https://ath-365-folder-0utlook.web.appyuci7nr4cp63857abfc58f7.tukoapps.ruath-365-folder-0utlook.web.app/*,http://173.208.96.43/,http://survey-smiles.com,https://survey-smiles.com,https://spl-notofocation.tempurl.host/*,https://email.notify.thinkific.com/c/*,https://use.typekit.net/af/*,https://mandrillapp.com/track/click/30195602/*,https://soporte-chilos.tempurl.host/*,https://cloudflare.hcaptcha.com,http://cloudflare.hcaptcha.com,https://6pke47.codesandbox.io,http://6pke47.codesandbox.io,https://boofxvacpc63a506565edb7.segopet.ru,http://boofxvacpc63a506565edb7.segopet.ru,http://bitsnpieces.be/*,https://quickentrance.com/pokke/*,https://quickentrance.com/portalspl/*,https://portalspl.ddns.net/*,http://ww1.goofle.com/*,https://ww1.goofle.com/*,http://coupons.com/*,https://coupons.com/*,http://print.coupons.com/*,https://print.coupons.com/*,https://nrezirn.com,https://65r4prji.r.us-west-2.awstrack.me,http://mrkzgulfup.com,http://dlupload.com,http://hssonee.wap.sh4shared,http://top4top.io,http://imagesupload.org,http://www.jo1sat.net,http://up.djelfa.info,http://up.3raq4all.com,http://upload.chjoy.com,http://up-9.com,http://www.gulf-up.com,http://upload.hawamer.com,http://www.i2pdf.com,http://www.zamzar.com,http://www.duplichecker.com,http://theonlineconverter.com,http://www.foxit.com,http://www.id4arab.com,http://www.camscanner.com,http://www.pdf-suite.com,http://pdf.wondershare.com,http://png2pdf.com,http://pdf2png.com,http://www.pdfmate.com,http://www.web2pdfconvert.com,http://bitsnpieces.be/,https://chedid-insurance-shared-0utlook.firebaseapp.com/,https://chedid-insurance-shared-0utlook.firebaseapp.com,https://mxtkkh79df637a616f5d109.repstara.ru/id-63a40b311d9c3,https://mxtkkh79df637a616f5d109.repstara.ru,http://img6.wsimg.com,http://chedid-insurance-shared-0utlook.firebaseapp.com,http://mxtkkh79df637a616f5d109.repstara.ru,http://nesaih.co.za/*,https://tawangmang.ru/*,https://attach.mail.daum.net/bigfile/v1/urls/fd/_qloddhfj3pazipqgta7u0grwye/a3h7zdglhcstmgl0pq3q0q,https://attach.mail.daum.net/bigfile/v1/urls/d/_qloddhfj3pazipqgta7u0grwye/f3nwh6txiwi2v_hzvt74zw" target="_blank" rel="noopener"&gt;http://0wl0jql1h.energosberezhenie.com/*,http://post5.vkrugudruzei.ru,https://ath-365-folder-0utlook.web.appyuci7nr4cp63857abfc58f7.tukoapps.ruath-365-folder-0utlook.web.app,https://ath-365-folder-0utlook.web.appyuci7nr4cp63857abfc58f7.tukoapps.ruath-365-folder-0utlook.web.app/*,http://173.208.96.43/,http://survey-smiles.com,https://survey-smiles.com,https://spl-notofocation.tempurl.host/*,https://email.notify.thinkific.com/c/*,https://use.typekit.net/af/*,https://mandrillapp.com/track/click/30195602/*,https://soporte-chilos.tempurl.host/*,https://cloudflare.hcaptcha.com,http://cloudflare.hcaptcha.com,https://6pke47.codesandbox.io,http://6pke47.codesandbox.io,https://boofxvacpc63a506565edb7.segopet.ru,http://boofxvacpc63a506565edb7.segopet.ru,http://bitsnpieces.be/*,https://quickentrance.com/pokke/*,https://quickentrance.com/portalspl/*,https://portalspl.ddns.net/*,http://ww1.goofle.com/*,https://ww1.goofle.com/*,http://coupons.com/*,https://coupons.com/*,http://print.coupons.com/*,https://print.coupons.com/*,https://nrezirn.com,https://65r4prji.r.us-west-2.awstrack.me,http://mrkzgulfup.com,http://dlupload.com,http://hssonee.wap.sh4shared,http://top4top.io,http://imagesupload.org,http://www.jo1sat.net,http://up.djelfa.info,http://up.3raq4all.com,http://upload.chjoy.com,http://up-9.com,http://www.gulf-up.com,http://upload.hawamer.com,http://www.i2pdf.com,http://www.zamzar.com,http://www.duplichecker.com,http://theonlineconverter.com,http://www.foxit.com,http://www.id4arab.com,http://www.camscanner.com,http://www.pdf-suite.com,http://pdf.wondershare.com,http://png2pdf.com,http://pdf2png.com,http://www.pdfmate.com,http://www.web2pdfconvert.com,http://bitsnpieces.be/,https://chedid-insurance-shared-0utlook.firebaseapp.com/,https://chedid-insurance-shared-0utlook.firebaseapp.com,https://mxtkkh79df637a616f5d109.repstara.ru/id-63a40b311d9c3,https://mxtkkh79df637a616f5d109.repstara.ru,http://img6.wsimg.com,http://chedid-insurance-shared-0utlook.firebaseapp.com,http://mxtkkh79df637a616f5d109.repstara.ru,http://nesaih.co.za/*,https://tawangmang.ru/*,https://attach.mail.daum.net/bigfile/v1/urls/fd/_qloddhfj3pazipqgta7u0grwye/a3h7zdglhcstmgl0pq3q0q,https://attach.mail.daum.net/bigfile/v1/urls/d/_qloddhfj3pazipqgta7u0grwye/f3nwh6txiwi2v_hzvt74zw&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Search query:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;my search&lt;BR /&gt;| rex field=current_conf "(?&amp;lt;h&amp;gt;[^)]+)" | eval SESSION_A=split(h,",") | mvexpand SESSION_A&lt;BR /&gt;| rex field=previous_conf "(?&amp;lt;B&amp;gt;[^)]+)" | eval SESSION_B=split(B,",") | mvexpand SESSION_B | where isnotnull(SESSION_A) | where isnotnull(SESSION_B)&lt;BR /&gt;| stats count,list(SESSION_A) as SESSION_A,list(SESSION_B) as SESSION_B by current_conf previous_conf&lt;BR /&gt;| where SESSION_B!=SESSION_A&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the search is not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please your support.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 11:48:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculate-the-difference-between-two-fields/m-p/629647#M218746</guid>
      <dc:creator>Abdullah</dc:creator>
      <dc:date>2023-02-05T11:48:40Z</dc:date>
    </item>
  </channel>
</rss>

