<?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 Need a Help with Query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-a-Help-with-Query/m-p/682144#M233058</link>
    <description>&lt;P&gt;I have two lookups, 1 with 460K rows and another with 10K rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used join to get the 10K results from 460K rows, however join is not working and not returning any results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used table and stats in both lookups though no results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the query I used:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| inputlookup unix.csv&lt;BR /&gt;| eval sys_name = lower(FQDN)&lt;BR /&gt;| join sys_name&lt;BR /&gt;[| inputlookup inventory.csv&lt;BR /&gt;| eval sys_name = lower("*".sys_name."*")&lt;BR /&gt;| table Status sys_name host-ip &amp;nbsp;"DNS Name" &amp;nbsp;]&lt;BR /&gt;&lt;BR /&gt;&amp;amp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;| inputlookup unix.csv&lt;BR /&gt;| eval sys_name = lower(FQDN)&lt;BR /&gt;|stats values(*) as * by sys_name&lt;BR /&gt;| join sys_name&lt;BR /&gt;[| inputlookup inventory.csv&lt;BR /&gt;| eval sys_name = lower("*".sys_name."*")&lt;BR /&gt;| table Status sys_name host-ip &amp;nbsp;"DNS Name" &amp;nbsp;]&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2024 17:45:55 GMT</pubDate>
    <dc:creator>satyaallaparthi</dc:creator>
    <dc:date>2024-03-27T17:45:55Z</dc:date>
    <item>
      <title>Need a Help with Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-a-Help-with-Query/m-p/682144#M233058</link>
      <description>&lt;P&gt;I have two lookups, 1 with 460K rows and another with 10K rows.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used join to get the 10K results from 460K rows, however join is not working and not returning any results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used table and stats in both lookups though no results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the query I used:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| inputlookup unix.csv&lt;BR /&gt;| eval sys_name = lower(FQDN)&lt;BR /&gt;| join sys_name&lt;BR /&gt;[| inputlookup inventory.csv&lt;BR /&gt;| eval sys_name = lower("*".sys_name."*")&lt;BR /&gt;| table Status sys_name host-ip &amp;nbsp;"DNS Name" &amp;nbsp;]&lt;BR /&gt;&lt;BR /&gt;&amp;amp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;| inputlookup unix.csv&lt;BR /&gt;| eval sys_name = lower(FQDN)&lt;BR /&gt;|stats values(*) as * by sys_name&lt;BR /&gt;| join sys_name&lt;BR /&gt;[| inputlookup inventory.csv&lt;BR /&gt;| eval sys_name = lower("*".sys_name."*")&lt;BR /&gt;| table Status sys_name host-ip &amp;nbsp;"DNS Name" &amp;nbsp;]&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 17:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-a-Help-with-Query/m-p/682144#M233058</guid>
      <dc:creator>satyaallaparthi</dc:creator>
      <dc:date>2024-03-27T17:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Help with Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-a-Help-with-Query/m-p/682147#M233059</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/132291"&gt;@satyaallaparthi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;whats the result you're waiting for?&lt;/P&gt;&lt;P&gt;do you want to filter the first lookup using the second?&lt;/P&gt;&lt;P&gt;in this case try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup unix.csv
| eval sys_name = lower(FQDN)
| search [ 
   | inputlookup inventory.csv
   | eval sys_name = lower("*".sys_name."*")
   | fields sys_name ]
| table Status sys_name host-ip  "DNS Name" &lt;/LI-CODE&gt;&lt;P&gt;If instead you want to take values between both the lookups, yu can use the lookup command (&lt;A href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/LookupCommandOverview" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/SearchReference/LookupCommandOverview&lt;/A&gt;) in this way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup unix.csv
| eval sys_name = lower(FQDN)
| lookup inventory.csv sys_name
| table Status sys_name host-ip  "DNS Name" &lt;/LI-CODE&gt;&lt;P&gt;My only doubt is that in the two lookups the sys_name has different format.&lt;/P&gt;&lt;P&gt;In this case, my hint is to elaborate the lookup to have another lookup with the correct sys_name.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 17:53:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-a-Help-with-Query/m-p/682147#M233059</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-27T17:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Help with Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-a-Help-with-Query/m-p/682154#M233060</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Great! The 'search' function worked as intended, instead of 'join'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 18:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-a-Help-with-Query/m-p/682154#M233060</guid>
      <dc:creator>satyaallaparthi</dc:creator>
      <dc:date>2024-03-27T18:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Help with Query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-a-Help-with-Query/m-p/682235#M233080</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/132291"&gt;@satyaallaparthi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;let me know if I can help you more, or, please, accept one answer for the other people of Community.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 06:28:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-a-Help-with-Query/m-p/682235#M233080</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-28T06:28:35Z</dc:date>
    </item>
  </channel>
</rss>

