<?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 Using Lookup csv file to query fieldname in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702566#M238208</link>
    <description>&lt;P&gt;I have a lookup file saved with a single column having values of specific fields in it. And want to use to search in query which matched with values in field names&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;&lt;P&gt;lookupname : test.csv&lt;BR /&gt;column name: column1&lt;/P&gt;&lt;P&gt;fieldname: field1&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 06:14:45 GMT</pubDate>
    <dc:creator>chrismatt02</dc:creator>
    <dc:date>2024-10-23T06:14:45Z</dc:date>
    <item>
      <title>Using Lookup csv file to query fieldname</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702566#M238208</link>
      <description>&lt;P&gt;I have a lookup file saved with a single column having values of specific fields in it. And want to use to search in query which matched with values in field names&lt;BR /&gt;&lt;BR /&gt;Example:&lt;/P&gt;&lt;P&gt;lookupname : test.csv&lt;BR /&gt;column name: column1&lt;/P&gt;&lt;P&gt;fieldname: field1&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 06:14:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702566#M238208</guid>
      <dc:creator>chrismatt02</dc:creator>
      <dc:date>2024-10-23T06:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lookup csv file to query fieldname</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702569#M238209</link>
      <description>&lt;P&gt;OK. But do you have just one column with multiple values? Or do you have multiple columns? How would your lookup contents match the data you want to search for?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 07:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702569#M238209</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-10-23T07:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lookup csv file to query fieldname</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702575#M238212</link>
      <description>&lt;P&gt;This is a bit vague. Can you give an example of the type of search you are trying / wanting to do with your lookup?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 08:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702575#M238212</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-10-23T08:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lookup csv file to query fieldname</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702644#M238229</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;I am using lookup file with single column, multiple entries which contains filenames. I am trying to match that names with the Filename field in query to obtain results which matches the value.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 01:20:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702644#M238229</guid>
      <dc:creator>chrismatt02</dc:creator>
      <dc:date>2024-10-24T01:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lookup csv file to query fieldname</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702645#M238230</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;I am using single column multiple entries and just trying to compare values in lookup file with the logs which contains those values and output the results&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 01:21:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702645#M238230</guid>
      <dc:creator>chrismatt02</dc:creator>
      <dc:date>2024-10-24T01:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lookup csv file to query fieldname</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702661#M238234</link>
      <description>&lt;P&gt;See syntax help in&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.3.1/SearchReference/Lookup" target="_blank" rel="noopener"&gt;lookup&lt;/A&gt;. &amp;nbsp;This is what I suggest:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup column1 AS field1 test.csv output column1 as match
| where isnotnull(match)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Oct 2024 05:50:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702661#M238234</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-10-24T05:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lookup csv file to query fieldname</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702683#M238241</link>
      <description>&lt;P&gt;With a relatively dense search the approach shown by &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt; is the most typical thing to do.&lt;/P&gt;&lt;P&gt;But if you expect that the search will be sparse, you might want to use the lookup by means of a subsearch to generate a set of conditions directly into your search&lt;/P&gt;&lt;PRE&gt;&amp;lt;your_base_search&amp;gt; [ | inputlookup your_lookup.csv | rename if needed ]&lt;BR /&gt;| &amp;lt;rest_of_your_search&amp;gt;&lt;/PRE&gt;&lt;P&gt;This might prove to be more effective if your resulting set of conditions is small and yields only a handful of events.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 11:47:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-csv-file-to-query-fieldname/m-p/702683#M238241</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-10-24T11:47:37Z</dc:date>
    </item>
  </channel>
</rss>

