<?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 perform the below condition in Splunk search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-the-below-condition-in-Splunk-search/m-p/619941#M215481</link>
    <description>&lt;P&gt;I have 3 date columns.I have already calculated the difference between current day and the diff is in days are the values in the 3 columns.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="0" width="192" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64" height="17"&gt;Col1&lt;/TD&gt;
&lt;TD width="64"&gt;Col2&lt;/TD&gt;
&lt;TD width="64"&gt;Col3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17"&gt;12&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;7&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17"&gt;2&lt;/TD&gt;
&lt;TD&gt;34&lt;/TD&gt;
&lt;TD&gt;45&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17"&gt;15&lt;/TD&gt;
&lt;TD&gt;25&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17"&gt;250&lt;/TD&gt;
&lt;TD&gt;56&lt;/TD&gt;
&lt;TD&gt;120&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17"&gt;21&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Required filter :&lt;/P&gt;
&lt;P&gt;- i have&amp;nbsp; to filter only days &amp;lt;=40 in all 3 columns.&lt;/P&gt;
&lt;P&gt;- If a column has null and other 2 columns have values &amp;lt;=40 then they need to be shown&lt;/P&gt;
&lt;P&gt;-if a column or 2 column has null and rest other column has value &amp;lt;=40 they need to displayed&lt;/P&gt;
&lt;P&gt;-if a column is null and other column values are greater &amp;gt;40 then they need to removed from scope.&lt;/P&gt;
&lt;P&gt;Please let me know the search .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 15:59:01 GMT</pubDate>
    <dc:creator>dtccsundar</dc:creator>
    <dc:date>2022-11-08T15:59:01Z</dc:date>
    <item>
      <title>How to perform the below condition in Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-the-below-condition-in-Splunk-search/m-p/619941#M215481</link>
      <description>&lt;P&gt;I have 3 date columns.I have already calculated the difference between current day and the diff is in days are the values in the 3 columns.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="0" width="192" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64" height="17"&gt;Col1&lt;/TD&gt;
&lt;TD width="64"&gt;Col2&lt;/TD&gt;
&lt;TD width="64"&gt;Col3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17"&gt;12&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;7&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17"&gt;2&lt;/TD&gt;
&lt;TD&gt;34&lt;/TD&gt;
&lt;TD&gt;45&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17"&gt;15&lt;/TD&gt;
&lt;TD&gt;25&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17"&gt;250&lt;/TD&gt;
&lt;TD&gt;56&lt;/TD&gt;
&lt;TD&gt;120&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17"&gt;21&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Required filter :&lt;/P&gt;
&lt;P&gt;- i have&amp;nbsp; to filter only days &amp;lt;=40 in all 3 columns.&lt;/P&gt;
&lt;P&gt;- If a column has null and other 2 columns have values &amp;lt;=40 then they need to be shown&lt;/P&gt;
&lt;P&gt;-if a column or 2 column has null and rest other column has value &amp;lt;=40 they need to displayed&lt;/P&gt;
&lt;P&gt;-if a column is null and other column values are greater &amp;gt;40 then they need to removed from scope.&lt;/P&gt;
&lt;P&gt;Please let me know the search .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:59:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-the-below-condition-in-Splunk-search/m-p/619941#M215481</guid>
      <dc:creator>dtccsundar</dc:creator>
      <dc:date>2022-11-08T15:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform the below condition in splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-the-below-condition-in-Splunk-search/m-p/619942#M215482</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170299"&gt;@dtccsundar&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to create a filter like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your search&amp;gt;
| fillnull value="-" Col1
| fillnull value="-" Col2
| fillnull value="-" Col3
| search 
   (Col1&amp;lt;=40 Col2&amp;lt;=40 Col3&amp;lt;=40) OR
   (Col1="-" Col2&amp;lt;=40 Col3&amp;lt;=40) OR
   (Col1&amp;lt;=40 Col2="-" Col3&amp;lt;=40) OR
   (Col1&amp;lt;=40 Col2&amp;lt;=40 Col3="-") OR
   (Col1="-" Col2="-" Col3&amp;lt;=40) OR 
   (Col1="-" Col2&amp;lt;=40 Col3="-") OR 
   (Col1&amp;lt;=40 Col2="-" Col3="-")&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:18:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-the-below-condition-in-Splunk-search/m-p/619942#M215482</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-07T17:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform the below condition in splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-the-below-condition-in-Splunk-search/m-p/620046#M215525</link>
      <description>&lt;P&gt;Thank you .&lt;/P&gt;&lt;P&gt;But by using this , the difference in days less than 40 days are also removed .&lt;/P&gt;&lt;P&gt;Kindly help me with this search.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 06:34:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-the-below-condition-in-Splunk-search/m-p/620046#M215525</guid>
      <dc:creator>dtccsundar</dc:creator>
      <dc:date>2022-11-08T06:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform the below condition in splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-the-below-condition-in-Splunk-search/m-p/620053#M215528</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170299"&gt;@dtccsundar&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: what do you mean with "&lt;SPAN&gt;by using this , the difference in days less than 40 days are also removed "?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I built your all the conditions you described, what are conditions removed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 07:41:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-the-below-condition-in-Splunk-search/m-p/620053#M215528</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-08T07:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform the below condition in splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-perform-the-below-condition-in-Splunk-search/m-p/620058#M215531</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170299"&gt;@dtccsundar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you looking for this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR_SEARCH
|where (isnull(Col1) OR Col1="" OR Col1&amp;gt;40) OR ((isnull(Col2) OR Col2="" OR Col2&amp;gt;40)) OR (isnull(Col3) OR Col3="" OR Col3&amp;gt;40)&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Search :&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="Col1	Col2	Col3
12	 	7
2	34	45
15	25	 
250	56	120
21	 	 " 
| multikv forceheader=1 
| table Col1 Col2 Col3 
| rename comment as "Upto now is for data only" 
| where (isnull(Col1) OR Col1="" OR Col1&amp;gt;40) OR ((isnull(Col2) OR Col2="" OR Col2&amp;gt;40)) OR (isnull(Col3) OR Col3="" OR Col3&amp;gt;40)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;KV&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:16:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-perform-the-below-condition-in-Splunk-search/m-p/620058#M215531</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-11-08T08:16:44Z</dc:date>
    </item>
  </channel>
</rss>

