<?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: Filtering in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676005#M231249</link>
    <description>&lt;P&gt;It's not clear what your data is and what you want to get from it.&lt;/P&gt;&lt;P&gt;But as general rule - you can't remove something from your data and process it later. At every pipe in your pipeline you have only the data you got from earliest steps.&lt;/P&gt;&lt;P&gt;So for example if you do:&lt;/P&gt;&lt;PRE&gt;index=myindex&lt;BR /&gt;| fields - source&lt;BR /&gt;| eval sourcematch=if(source="mysource",1,0)&lt;/PRE&gt;&lt;P&gt;The field sourcematch in your results will always be 0, because you remove the field "source" from your resulting events so you can't rely on it to calculate something in further steps on your processing pipeline.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 07:47:38 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-01-31T07:47:38Z</dc:date>
    <item>
      <title>Filtering</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/675901#M231228</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I dont need the value in first line and need that value later in search to filter, so I tried tis way to skip the value&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;dmz&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;type IN (if($machine$=="DMZ",true,$machine$)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;Is that will work?&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 15:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/675901#M231228</guid>
      <dc:creator>smanojkumar</dc:creator>
      <dc:date>2024-01-30T15:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/675929#M231237</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;IN&lt;/FONT&gt; operator expects a parenthesized list of values.&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;if&lt;/FONT&gt; function is not valid in the &lt;FONT face="courier new,courier"&gt;search&lt;/FONT&gt; command so, no this will not work.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 15:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/675929#M231237</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-01-30T15:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676000#M231248</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Thanks for your response!&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I'm using this search in the macro definition, i want this to be fixed any possible ways of tweak this command to make it working.&lt;BR /&gt;&lt;BR /&gt;I need that value in later part of this search, I just need to skip at this moment.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance!&lt;BR /&gt;Manoj Kumar S&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 07:29:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676000#M231248</guid>
      <dc:creator>smanojkumar</dc:creator>
      <dc:date>2024-01-31T07:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676005#M231249</link>
      <description>&lt;P&gt;It's not clear what your data is and what you want to get from it.&lt;/P&gt;&lt;P&gt;But as general rule - you can't remove something from your data and process it later. At every pipe in your pipeline you have only the data you got from earliest steps.&lt;/P&gt;&lt;P&gt;So for example if you do:&lt;/P&gt;&lt;PRE&gt;index=myindex&lt;BR /&gt;| fields - source&lt;BR /&gt;| eval sourcematch=if(source="mysource",1,0)&lt;/PRE&gt;&lt;P&gt;The field sourcematch in your results will always be 0, because you remove the field "source" from your resulting events so you can't rely on it to calculate something in further steps on your processing pipeline.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 07:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676005#M231249</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-31T07:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676031#M231257</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I don't want to remove the value, I just want to skip for that instance only if DMZ is passed as token value, when other values are passed, the condition needs to be there,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I'm having a value from dashboard input dropdown to macro, where I need the condition to skip when DMZ is passed.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance!&lt;BR /&gt;Manoj Kumar S&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 09:55:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676031#M231257</guid>
      <dc:creator>smanojkumar</dc:creator>
      <dc:date>2024-01-31T09:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676032#M231258</link>
      <description>&lt;P&gt;What do you mean by "skip"?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 10:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676032#M231258</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-31T10:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676034#M231260</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;I don't want that condition to be considered, Its a multiselect value, when some other values are passed along with this, its working but when DMZ alone is passed, its not working, because in type, we don't categorized dmz, so we weren't use that value, so I want to skip only for that value, is that possible.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 10:10:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676034#M231260</guid>
      <dc:creator>smanojkumar</dc:creator>
      <dc:date>2024-01-31T10:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676036#M231261</link>
      <description>&lt;P&gt;For conditional evaluations you can use if() or case() functions with the eval command.&lt;/P&gt;&lt;P&gt;I still don't understand what you want to "not consider". You want to return values not matching a filter? Evaluate a field only for some subset of events? Something else?&lt;/P&gt;&lt;P&gt;A multiselect is a widget in a dashboard. You're posting this in Splunk Search section. What's the connection between one and the other? Please post some sample of events (anonymized if needed), desired outcome and additional conditions affecting the search (like this multisearch).&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 10:15:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering/m-p/676036#M231261</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-01-31T10:15:17Z</dc:date>
    </item>
  </channel>
</rss>

