<?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: Match a column from a main query with a column in a subquery in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711598#M240204</link>
    <description>&lt;P&gt;What constitutes a match between LKUP_DSN and DS_NAME?&amp;nbsp; How much of DS_NAME is allowed to vary?&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2025 12:29:39 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2025-02-14T12:29:39Z</dc:date>
    <item>
      <title>Match a column from a main query with a column in a subquery</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711485#M240174</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;The file ACF2DS_Data.csv contains columns including TIMESTAMP, DS_NAME, and JOBNAME.&lt;/P&gt;&lt;P&gt;I need to match the DS_NAME column from this file with the LKUP_DSN column in DSN_LKUP.csv to obtain the corresponding events from ACF2DS_Data.csv.&lt;/P&gt;&lt;P&gt;The query provided below is not working as expected.&lt;/P&gt;&lt;P&gt;Could you please assist me in resolving the issue with the query?&lt;/P&gt;&lt;P&gt;source="*ACF2DS_Data.csv" index="idxmainframe" earliest=0 latest=now&lt;BR /&gt;[search source="*DSN_LKUP.csv" index="idxmainframe" earliest=0 latest=now&lt;BR /&gt;| eval LKUP_DSN = "%".LKUP_DSN."%"&lt;BR /&gt;| where like(DS_NAME,LKUP_DSN) | table DS_NAME]&lt;BR /&gt;| table TIMESTAMP, DS_NAME, JOBNAME&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Ravikumar&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 14:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711485#M240174</guid>
      <dc:creator>ravikumar_sri20</dc:creator>
      <dc:date>2025-02-13T14:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Match a column from a main query with a column in a subquery</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711487#M240175</link>
      <description>&lt;P&gt;If you need to match the LKUP_DSN field in the subsearch with the DS_NAME field in the main search then LKUP_DSN must renamed to DS_NAME.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;source="*ACF2DS_Data.csv" index="idxmainframe" earliest=0 latest=now
[search source="*DSN_LKUP.csv" index="idxmainframe" earliest=0 latest=now
  | rename LKUP_NAME as DS_NAME
  | fields DS_NAME
  | format ]
| table TIMESTAMP, DS_NAME, JOBNAME&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 13 Feb 2025 15:13:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711487#M240175</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-02-13T15:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Match a column from a main query with a column in a subquery</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711511#M240186</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply!!..I need to do partial match on&amp;nbsp;&lt;SPAN&gt;LKUP_DSN.&amp;nbsp; Could you please help ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravikumar&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 17:19:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711511#M240186</guid>
      <dc:creator>ravikumar_sri20</dc:creator>
      <dc:date>2025-02-13T17:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Match a column from a main query with a column in a subquery</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711532#M240192</link>
      <description>&lt;P&gt;Tell us more about the partial match on LKUP_DSN.&amp;nbsp; What is it matched against?&amp;nbsp; What part needs to match?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 19:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711532#M240192</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-02-13T19:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Match a column from a main query with a column in a subquery</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711571#M240202</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The file ACF2DS_Data.csv comprises columns such as TIMESTAMP, DS_NAME, and JOBNAME.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to perform a partial match of the LKUP_DSN column from the DSN_LKUP.csv file with the DS_NAME column in the ACF2DS_Data.csv file in order to retrieve the relevant events from ACF2DS_Data.csv.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 07:19:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711571#M240202</guid>
      <dc:creator>ravikumar_sri20</dc:creator>
      <dc:date>2025-02-14T07:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Match a column from a main query with a column in a subquery</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711598#M240204</link>
      <description>&lt;P&gt;What constitutes a match between LKUP_DSN and DS_NAME?&amp;nbsp; How much of DS_NAME is allowed to vary?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 12:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711598#M240204</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-02-14T12:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Match a column from a main query with a column in a subquery</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711778#M240228</link>
      <description>&lt;P&gt;At times, LKUP_DSN will match exactly with DS_NAME. In other instances, LKUP_DSN will contain all the characters of DS_NAME except for the last nine characters.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 05:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Match-a-column-from-a-main-query-with-a-column-in-a-subquery/m-p/711778#M240228</guid>
      <dc:creator>ravikumar_sri20</dc:creator>
      <dc:date>2025-02-17T05:49:42Z</dc:date>
    </item>
  </channel>
</rss>

