<?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: CSV with Lookup in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/CSV-with-Lookup/m-p/683796#M114143</link>
    <description>&lt;P&gt;In your example,&amp;nbsp;&lt;SPAN&gt;G01462 doesn't (completely) match any entry in either Resource or environment. Lookup requires an exact match (unless you define it as a wildcard lookup or CIDR). In the case of&amp;nbsp;G01462-mgmt-foo, would you want the lookup to find either&amp;nbsp;G01462 - QA or&amp;nbsp; G01462 - SIT or both?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 08:20:18 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-04-10T08:20:18Z</dc:date>
    <item>
      <title>CSV with Lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-with-Lookup/m-p/683792#M114141</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168" target="_blank"&gt;@ITWhisperer&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352" target="_blank"&gt;@gcusello&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168" target="_blank"&gt;@ITWhisperer&lt;/A&gt;&amp;nbsp; please help&lt;/P&gt;&lt;P&gt;This is the other issue which is related to csv dataset and lookup dataset.&lt;BR /&gt;&lt;BR /&gt;From this SPL:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;source="cmkcsv.csv" host="DESKTOP" index="cmk" sourcetype="cmkcsv"&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Getting output below&lt;/P&gt;&lt;TABLE width="820"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="128px"&gt;Subscription&lt;/TD&gt;&lt;TD width="176px"&gt;&amp;nbsp;Resource&lt;/TD&gt;&lt;TD width="158px"&gt;&amp;nbsp;Key Vault&lt;/TD&gt;&lt;TD width="185px"&gt;&amp;nbsp;Secret&lt;/TD&gt;&lt;TD width="103px"&gt;&amp;nbsp;Expiration Date&lt;/TD&gt;&lt;TD width="69px"&gt;&amp;nbsp;Months&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="128px"&gt;BoB-foo&lt;/TD&gt;&lt;TD width="176px"&gt;&amp;nbsp;Dicore-automat&lt;/TD&gt;&lt;TD width="158px"&gt;&amp;nbsp;Dicore-automat-keycore&lt;/TD&gt;&lt;TD width="185px"&gt;Di&amp;nbsp;core-tuubsp1sct&lt;/TD&gt;&lt;TD width="103px"&gt;&amp;nbsp;2022-07-28&lt;/TD&gt;&lt;TD width="69px"&gt;-21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="128px"&gt;BoB-foo&lt;/TD&gt;&lt;TD width="176px"&gt;&amp;nbsp;Dicore-automat&lt;/TD&gt;&lt;TD width="158px"&gt;&amp;nbsp;Dicore-automat-keycore&lt;/TD&gt;&lt;TD width="185px"&gt;&amp;nbsp;Dicore-stor1scrt&lt;/TD&gt;&lt;TD width="103px"&gt;&amp;nbsp;2022-07-28&lt;/TD&gt;&lt;TD width="69px"&gt;-21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="128px"&gt;BoB-foo&lt;/TD&gt;&lt;TD width="176px"&gt;&amp;nbsp;G01462-mgmt-foo&lt;/TD&gt;&lt;TD width="158px"&gt;&amp;nbsp;G86413-vaultcore&lt;/TD&gt;&lt;TD width="185px"&gt;&amp;nbsp;G86413-secret-foo&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From this lookup:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;| inputlookup cmklookup.csv&lt;BR /&gt;&lt;/STRONG&gt;Getting output below&lt;/P&gt;&lt;TABLE width="892"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="241.771px" height="24px"&gt;Application&lt;/TD&gt;&lt;TD width="256.76px" height="24px"&gt;environment&lt;/TD&gt;&lt;TD width="392.802px" height="24px"&gt;appOwner&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="241.771px" height="24px"&gt;Caliber&lt;/TD&gt;&lt;TD width="256.76px" height="24px"&gt;Dicore - TCG&lt;/TD&gt;&lt;TD width="392.802px" height="24px"&gt;foo@gmail.com&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="241.771px" height="24px"&gt;Keygroup&lt;/TD&gt;&lt;TD width="256.76px" height="24px"&gt;G01462 - QA&lt;/TD&gt;&lt;TD width="392.802px" height="24px"&gt;goo@gmail.com&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="241.771px" height="24px"&gt;Keygroup&lt;/TD&gt;&lt;TD width="256.76px" height="24px"&gt;G01462 - SIT&lt;/TD&gt;&lt;TD width="392.802px" height="24px"&gt;boo@gmail.com&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Combine the two queries into one, where the output will only display results where the 'environment' and 'Resource' fields match. For instance, if 'G01462' matches in both fields across both datasets, it should be included in the output. How i can do this, could anyone help here to write spl. I wrote some of the Spls but it's not working for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;source="cmkcsv.csv" host="DESKTOP" index="cmk" sourcetype="cmkcsv"&lt;BR /&gt;|join type=inner [ | inputlookup cmklookup.csv environment]&lt;BR /&gt;&lt;BR /&gt;source="cmkcsv.csv" host="DESKTOP" index="cmk" sourcetype="cmkcsv"&lt;BR /&gt;| lookup cmklookup.csv environment AS "Resource" OUTPUT "environment"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 08:08:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-with-Lookup/m-p/683792#M114141</guid>
      <dc:creator>phanikumarcs</dc:creator>
      <dc:date>2024-04-10T08:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: CSV with Lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-with-Lookup/m-p/683796#M114143</link>
      <description>&lt;P&gt;In your example,&amp;nbsp;&lt;SPAN&gt;G01462 doesn't (completely) match any entry in either Resource or environment. Lookup requires an exact match (unless you define it as a wildcard lookup or CIDR). In the case of&amp;nbsp;G01462-mgmt-foo, would you want the lookup to find either&amp;nbsp;G01462 - QA or&amp;nbsp; G01462 - SIT or both?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 08:20:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-with-Lookup/m-p/683796#M114143</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-10T08:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: CSV with Lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-with-Lookup/m-p/683798#M114145</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Indeed, the objective is to utilize a lookup operation to match 'G01462' and find either 'G01462 - QA' or 'G01462 - SIT', or both.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alternatively, can I modify the lookup operation to precisely match the "newResource" field with the "Resource" field to retrieve the corresponding values of the "environment" field in the &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE width="889px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="240.703px" height="24px"&gt;Application&lt;/TD&gt;&lt;TD width="255.703px" height="24px"&gt;environment&lt;/TD&gt;&lt;TD width="195.859px" height="24px"&gt;appOwner&lt;/TD&gt;&lt;TD width="195.734px"&gt;&lt;SPAN&gt;newResource&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="240.703px" height="24px"&gt;Caliber&lt;/TD&gt;&lt;TD width="255.703px" height="24px"&gt;Dicore - TCG&lt;/TD&gt;&lt;TD width="195.859px" height="24px"&gt;foo@gmail.com&lt;/TD&gt;&lt;TD width="195.734px"&gt;&lt;SPAN&gt;Dicore-automat&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="240.703px" height="24px"&gt;Keygroup&lt;/TD&gt;&lt;TD width="255.703px" height="24px"&gt;G01462 - QA&lt;/TD&gt;&lt;TD width="195.859px" height="24px"&gt;goo@gmail.com&lt;/TD&gt;&lt;TD width="195.734px"&gt;&lt;SPAN&gt;Dicore-automat&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="240.703px" height="24px"&gt;Keygroup&lt;/TD&gt;&lt;TD width="255.703px" height="24px"&gt;G01462 - SIT&lt;/TD&gt;&lt;TD width="195.859px" height="24px"&gt;boo@gmail.com&lt;/TD&gt;&lt;TD width="195.734px"&gt;&lt;SPAN&gt;G01462-mgmt-foo&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 08:32:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-with-Lookup/m-p/683798#M114145</guid>
      <dc:creator>phanikumarcs</dc:creator>
      <dc:date>2024-04-10T08:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: CSV with Lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CSV-with-Lookup/m-p/683800#M114146</link>
      <description>&lt;P&gt;Do that then!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 08:43:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CSV-with-Lookup/m-p/683800#M114146</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-10T08:43:00Z</dc:date>
    </item>
  </channel>
</rss>

