<?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 lookup files and get two coloumns in serch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-lookup-files-and-get-two-coloumns-in-serch/m-p/546359#M154877</link>
    <description>&lt;P&gt;I have two lookups B1.csv and B2.csv. B1 has block member and B2 has block id and both have one same column departments. I want to compare these both with departments and get matching values of Block member and BLOCK ID. I also have index Z from which I am done search along with my two looks ups&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;B1:&lt;BR /&gt;BlockMember --- Department--email&lt;BR /&gt;B2:&lt;BR /&gt;BlockID --Department&lt;BR /&gt;&lt;BR /&gt;Index and B1 has email as same values so I used "lookup B1.csv" email command and got block member in my table but now I am not sure how to get blockid from b2.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My current search&lt;BR /&gt;&lt;BR /&gt;index=Z&amp;nbsp; pipename=static-website*&lt;BR /&gt;|lookup b1 email&lt;BR /&gt;|rename member AS BlockMember (got this blockmember from above lookup b1 using email from my index)&lt;BR /&gt;|stats count by grid BlockMember&amp;nbsp; Status&lt;/P&gt;&lt;P&gt;current table:&lt;BR /&gt;grid----status--Blockmember&lt;/P&gt;&lt;P&gt;so my future table should be&amp;nbsp;&lt;BR /&gt;grid----status--BlockID--Blockmember(which will have same department)&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 12:20:42 GMT</pubDate>
    <dc:creator>Dheeraj25</dc:creator>
    <dc:date>2021-04-01T12:20:42Z</dc:date>
    <item>
      <title>How to compare two lookup files and get two coloumns in serch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-lookup-files-and-get-two-coloumns-in-serch/m-p/546359#M154877</link>
      <description>&lt;P&gt;I have two lookups B1.csv and B2.csv. B1 has block member and B2 has block id and both have one same column departments. I want to compare these both with departments and get matching values of Block member and BLOCK ID. I also have index Z from which I am done search along with my two looks ups&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;B1:&lt;BR /&gt;BlockMember --- Department--email&lt;BR /&gt;B2:&lt;BR /&gt;BlockID --Department&lt;BR /&gt;&lt;BR /&gt;Index and B1 has email as same values so I used "lookup B1.csv" email command and got block member in my table but now I am not sure how to get blockid from b2.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My current search&lt;BR /&gt;&lt;BR /&gt;index=Z&amp;nbsp; pipename=static-website*&lt;BR /&gt;|lookup b1 email&lt;BR /&gt;|rename member AS BlockMember (got this blockmember from above lookup b1 using email from my index)&lt;BR /&gt;|stats count by grid BlockMember&amp;nbsp; Status&lt;/P&gt;&lt;P&gt;current table:&lt;BR /&gt;grid----status--Blockmember&lt;/P&gt;&lt;P&gt;so my future table should be&amp;nbsp;&lt;BR /&gt;grid----status--BlockID--Blockmember(which will have same department)&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 12:20:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-lookup-files-and-get-two-coloumns-in-serch/m-p/546359#M154877</guid>
      <dc:creator>Dheeraj25</dc:creator>
      <dc:date>2021-04-01T12:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two lookup files and get two coloumns in serch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-lookup-files-and-get-two-coloumns-in-serch/m-p/546360#M154878</link>
      <description>&lt;P&gt;The two lookups can be matched using inputlookup and stats.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup B1.csv
| inputlookup append=true B2.csv
| stats values(*) as * by Department&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 01 Apr 2021 12:19:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-lookup-files-and-get-two-coloumns-in-serch/m-p/546360#M154878</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-04-01T12:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two lookup files and get two coloumns in serch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-lookup-files-and-get-two-coloumns-in-serch/m-p/546362#M154879</link>
      <description>&lt;P&gt;Thanks but I also have an index that does the lookup with B1. I had updated my question above .. can you check and suggest ?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 12:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-lookup-files-and-get-two-coloumns-in-serch/m-p/546362#M154879</guid>
      <dc:creator>Dheeraj25</dc:creator>
      <dc:date>2021-04-01T12:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two lookup files and get two coloumns in serch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-lookup-files-and-get-two-coloumns-in-serch/m-p/546399#M154900</link>
      <description>&lt;P&gt;Just add another lookup command for B2.&amp;nbsp; It looks like it doesn't matter, though, since the query only uses the grid, member, and Status fields.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=Z  pipename=static-website*
|lookup b1 email
|lookup b2 department
|rename member AS BlockMember (got this blockmember from above lookup b1 using email from my index)
|stats count by grid BlockMember  Status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 17:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-lookup-files-and-get-two-coloumns-in-serch/m-p/546399#M154900</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-04-01T17:01:31Z</dc:date>
    </item>
  </channel>
</rss>

