<?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 How to compare two values on same row in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-compare-two-values-on-same-row/m-p/586191#M15931</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;I have a rule, that report to me each time source stop sending logs to my splunk.&lt;/P&gt;
&lt;P&gt;I try to make an exception, that when a specific source from a specific host will stop sending logs, it wont trigger an alert.&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;i will get alerts from&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;host=* source=*&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;but not when its&lt;/P&gt;
&lt;P&gt;host=windows31 source=application&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Is it possible to do that? because i try to work on it for a few days already.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Feb 2022 16:41:58 GMT</pubDate>
    <dc:creator>Tomers</dc:creator>
    <dc:date>2022-02-23T16:41:58Z</dc:date>
    <item>
      <title>How to compare two values on same row</title>
      <link>https://community.splunk.com/t5/Security/How-to-compare-two-values-on-same-row/m-p/586191#M15931</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;I have a rule, that report to me each time source stop sending logs to my splunk.&lt;/P&gt;
&lt;P&gt;I try to make an exception, that when a specific source from a specific host will stop sending logs, it wont trigger an alert.&lt;/P&gt;
&lt;P&gt;for example:&lt;/P&gt;
&lt;P&gt;i will get alerts from&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;host=* source=*&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;but not when its&lt;/P&gt;
&lt;P&gt;host=windows31 source=application&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Is it possible to do that? because i try to work on it for a few days already.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 16:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-compare-two-values-on-same-row/m-p/586191#M15931</guid>
      <dc:creator>Tomers</dc:creator>
      <dc:date>2022-02-23T16:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two values on same row</title>
      <link>https://community.splunk.com/t5/Security/How-to-compare-two-values-on-same-row/m-p/586195#M15932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243321"&gt;@Tomers&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I could help you better if you could share your search, also because it isn't clear for me how your rule works.&lt;/P&gt;&lt;P&gt;Anyway, you could add the second condition to your search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index NOT(host=windows31 source=application)
| ...&lt;/LI-CODE&gt;&lt;P&gt;if you have many of these conditions, you could put them in a lookup (called e.g. exceptions.csv &amp;nbsp;with two columns called host and source) and use the lookup to filter your results.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index NOT [ | inputlookup exceptions.csv | fields host source ]
| ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 11:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-compare-two-values-on-same-row/m-p/586195#M15932</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-23T11:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two values on same row</title>
      <link>https://community.splunk.com/t5/Security/How-to-compare-two-values-on-same-row/m-p/586199#M15933</link>
      <description>&lt;P&gt;Thank you! It does work now&lt;/P&gt;&lt;P&gt;for some reason that is the only thing i didnt think of.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI-&lt;/P&gt;&lt;P&gt;My search is(i only added the condition lines here)-&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;|tstats latest(_time) as _time where index=* by sourcetype host&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;|where _time&amp;lt;relative_time(now(), "-1h")&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;|fields sourcetype host _time&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 11:43:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-compare-two-values-on-same-row/m-p/586199#M15933</guid>
      <dc:creator>Tomers</dc:creator>
      <dc:date>2022-02-23T11:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two values on same row</title>
      <link>https://community.splunk.com/t5/Security/How-to-compare-two-values-on-same-row/m-p/586201#M15934</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243321"&gt;@Tomers&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 11:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-compare-two-values-on-same-row/m-p/586201#M15934</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-23T11:47:36Z</dc:date>
    </item>
  </channel>
</rss>

