<?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: How to ignore a field from search if the value is null,  and then search based on the second input.? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527765#M148997</link>
    <description>&lt;P&gt;Doesn't this just do ($test1$ AND $test2$)?&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 15:43:41 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-11-03T15:43:41Z</dc:date>
    <item>
      <title>How to ignore a field from search if the value is null,  and then search based on the second input.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527320#M148860</link>
      <description>&lt;P&gt;How to ignore a field from search if the value is null, search based on the second input.?&lt;BR /&gt;I have two inputs and this search will work only if i have some value in both the fields. I need the result, even if one value is null.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11598iC56B7C034591597E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;name="$field4$" OR EmpID="$field5$"&lt;/P&gt;&lt;P&gt;Found a similar one here,&lt;BR /&gt;but this did not resolve my issue.&lt;/P&gt;&lt;P&gt;Appreciate the help in advance.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-to-omit-a-field-from-search-on-a-text-input-if-the-field-is/m-p/330788" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Getting-Data-In/How-to-omit-a-field-from-search-on-a-text-input-if-the-field-is/m-p/330788&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 15:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527320#M148860</guid>
      <dc:creator>kuriakose</dc:creator>
      <dc:date>2020-10-30T15:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore a field from search if the value is null,  and then search based on the second input.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527327#M148862</link>
      <description>&lt;P&gt;Have your inputs set a new token which includes the name= if the value of the input is not empty otherwise set it to an empty string or perhaps unset it. Then use the whole of the new token(s) in your search.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 15:51:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527327#M148862</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-30T15:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore a field from search if the value is null,  and then search based on the second input.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527329#M148863</link>
      <description>&lt;P&gt;I have field values, name and&amp;nbsp;&lt;SPAN&gt;EmpID in my index. The above search will not work if I am giving only a single input. I have to give both the inputs then only its working. which I don't want. Sometime I will have only one input.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 16:07:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527329#M148863</guid>
      <dc:creator>kuriakose</dc:creator>
      <dc:date>2020-10-30T16:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore a field from search if the value is null,  and then search based on the second input.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527342#M148865</link>
      <description>&lt;P&gt;Try setting the default to * and/or in the change handler for the text input set a token to * if the input is empty and use those tokens in your search&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 16:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527342#M148865</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-30T16:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore a field from search if the value is null,  and then search based on the second input.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527763#M148995</link>
      <description>&lt;P&gt;I could sort out this issue by trying |search ($test1$ $test2$).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the search is giving the results even if one input is null.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 15:35:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527763#M148995</guid>
      <dc:creator>kuriakose</dc:creator>
      <dc:date>2020-11-03T15:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore a field from search if the value is null,  and then search based on the second input.?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527765#M148997</link>
      <description>&lt;P&gt;Doesn't this just do ($test1$ AND $test2$)?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 15:43:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-a-field-from-search-if-the-value-is-null-and-then/m-p/527765#M148997</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-11-03T15:43:41Z</dc:date>
    </item>
  </channel>
</rss>

