<?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 Lookup Results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filtering-Lookup-Results/m-p/548278#M155517</link>
    <description>&lt;P&gt;Please share the fix and accept it as the solution to help future readers.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Apr 2021 18:29:34 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-04-16T18:29:34Z</dc:date>
    <item>
      <title>Filtering Lookup Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-Lookup-Results/m-p/548214#M155497</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a result of a lookup command, how do I exclude the other information if I based in on BusinessUnit, For ex. I want to show BU2 only...&amp;nbsp; but there maybe cases that I need to show BU1 only. How can I filter my lookup result?&lt;/P&gt;&lt;P&gt;Application BusinessUnit DATE CALCMIPS&lt;/P&gt;&lt;DIV class="multivalue-subcell"&gt;&lt;DIV class="multivalue-subcell"&gt;&lt;DIV class="multivalue-subcell"&gt;&lt;DIV class="multivalue-subcell"&gt;&lt;DIV class="multivalue-subcell"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;TABLE width="590px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="239px"&gt;&lt;DIV class="multivalue-subcell"&gt;&lt;DIV class="multivalue-subcell"&gt;App1&lt;DIV class="multivalue-subcell"&gt;App2&lt;DIV class="multivalue-subcell"&gt;App3&lt;DIV class="multivalue-subcell"&gt;App4&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD width="185px"&gt;&lt;DIV class="multivalue-subcell"&gt;&lt;DIV class="multivalue-subcell"&gt;BU1&lt;DIV class="multivalue-subcell"&gt;BU2&lt;DIV class="multivalue-subcell"&gt;BU1&lt;DIV class="multivalue-subcell"&gt;BU1&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD width="100px"&gt;31DEC2020&lt;/TD&gt;&lt;TD width="65px"&gt;20&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My splunk query looks like&lt;/P&gt;&lt;P&gt;index=index1 sourcetype=source1 [ |inputlookup Application.csv where BusinessUnit = BU1 | return 1000 ACCOUNT_CODE] |&amp;nbsp; lookup Application.csv ACCOUNT_CODE OUTPUT Application BusinessUnit ApplicationRTO | table Application BusinessUnit DATE MVS_SYSTEM_ID CALCMIPS&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 14:00:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-Lookup-Results/m-p/548214#M155497</guid>
      <dc:creator>aquinojason</dc:creator>
      <dc:date>2021-04-16T14:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Lookup Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-Lookup-Results/m-p/548263#M155512</link>
      <description>&lt;P&gt;What are you trying to accomplish with this bit:&lt;/P&gt;&lt;P&gt;[ |inputlookup Application.csv where BusinessUnit = BU1 | return 1000 ACCOUNT_CODE]&lt;/P&gt;&lt;P&gt;Because it looks to me like there is no field 'ACCOUNT_CODE' in the lookup, so this is going to return null.&lt;/P&gt;&lt;P&gt;Also, based on the way you displayed the output of the lookup are the Application and Business Unit multivalue?&lt;/P&gt;&lt;P&gt;Lastly, I think it's not fully clear what you're trying to accomplish with the search, can you elaborate?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 16:51:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-Lookup-Results/m-p/548263#M155512</guid>
      <dc:creator>ericjorgensenjr</dc:creator>
      <dc:date>2021-04-16T16:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Lookup Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-Lookup-Results/m-p/548264#M155513</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Apologies if I didn't made myself clear but I was able to filter my lookup properly now after fixing my logic. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 16:54:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-Lookup-Results/m-p/548264#M155513</guid>
      <dc:creator>aquinojason</dc:creator>
      <dc:date>2021-04-16T16:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Lookup Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-Lookup-Results/m-p/548278#M155517</link>
      <description>&lt;P&gt;Please share the fix and accept it as the solution to help future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 18:29:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-Lookup-Results/m-p/548278#M155517</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-04-16T18:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Lookup Results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-Lookup-Results/m-p/548280#M155518</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I just included the BU as part of my lookup. That made it more distinct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;eval BusinessUnit = "BU1" | lookup Application.csv ACCOUNT_CODE BusinessUnit OUTPUT Application&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 18:36:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-Lookup-Results/m-p/548280#M155518</guid>
      <dc:creator>aquinojason</dc:creator>
      <dc:date>2021-04-16T18:36:29Z</dc:date>
    </item>
  </channel>
</rss>

