<?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: Can you help me compare the numerical values of fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-compare-the-numerical-values-of-fields/m-p/424485#M121734</link>
    <description>&lt;P&gt;I do not know "over 10 digits". Can you write an example?&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2019 00:24:43 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2019-01-25T00:24:43Z</dc:date>
    <item>
      <title>Can you help me compare the numerical values of fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-compare-the-numerical-values-of-fields/m-p/424484#M121733</link>
      <description>&lt;P&gt;My company gets a log file that we are trying to compare a set of numbers to one another. These numbers have to be within ten digits of one another, otherwise we need to be alerted on this. I've been able to Extract both of these numbers into fields (last_applied and last_received), and I am trying to run a search that compares the two, but ONLY alerts when they are over 10 digits away form each other. Been trying to use the &lt;CODE&gt;diff&lt;/CODE&gt; function, but am a bit stuck on which &lt;CODE&gt;eval&lt;/CODE&gt; or other functions that would be appropriate.&lt;/P&gt;

&lt;P&gt;This is what I have so far:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="mail" host="outlook.office365.com" last_applied=* last_received=* | diff attribute=last_applied attribute=last_received
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:55:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-compare-the-numerical-values-of-fields/m-p/424484#M121733</guid>
      <dc:creator>sgoodman26</dc:creator>
      <dc:date>2020-09-29T22:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me compare the numerical values of fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-compare-the-numerical-values-of-fields/m-p/424485#M121734</link>
      <description>&lt;P&gt;I do not know "over 10 digits". Can you write an example?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 00:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-compare-the-numerical-values-of-fields/m-p/424485#M121734</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2019-01-25T00:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me compare the numerical values of fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-compare-the-numerical-values-of-fields/m-p/424486#M121735</link>
      <description>&lt;P&gt;Are you looking for something like this?&lt;BR /&gt;
*&lt;EM&gt;Updated *&lt;/EM&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index="mail" host="outlook.office365.com" last_applied=* last_received=* | eval diff=abs(last_applied-last_received)
| where diff&amp;gt;10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Jan 2019 01:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-compare-the-numerical-values-of-fields/m-p/424486#M121735</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-01-25T01:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me compare the numerical values of fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-compare-the-numerical-values-of-fields/m-p/424487#M121736</link>
      <description>&lt;P&gt;If Last Applied = 3100 and Last Received =3110, this would be within 10 of each other.&lt;BR /&gt;
If Last Applied = 3100  and Last Received = 2990, this would be within 10 of each other.&lt;BR /&gt;
If Last Applied = 3100  and Last Received = 3111, this would be outside of  10 of each other.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 15:35:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-compare-the-numerical-values-of-fields/m-p/424487#M121736</guid>
      <dc:creator>sgoodman26</dc:creator>
      <dc:date>2019-01-25T15:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me compare the numerical values of fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-compare-the-numerical-values-of-fields/m-p/424488#M121737</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="mail" host="outlook.office365.com" last_applied=* last_received=*
| where abs(last_applied - last_received) &amp;gt;= 10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Jan 2019 17:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-compare-the-numerical-values-of-fields/m-p/424488#M121737</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-01-25T17:40:46Z</dc:date>
    </item>
  </channel>
</rss>

