<?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: How to use a csv file to search fields. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195602#M38900</link>
    <description>&lt;P&gt;Thanks for the prompt response Rich,&lt;BR /&gt;
I get the following error;&lt;BR /&gt;
Error in 'lookup' command: The lookup table 'domain_provisioning_master' does not exist.&lt;/P&gt;

&lt;P&gt;i think i should have said that the csv file is from an excel doc, its a single colomn of figures, the foo part is a field in the drm_ssa_log called hhRef, so my search looks like;&lt;/P&gt;

&lt;P&gt;sourcetype=drm_ssa_log | lookup domain_provisioning_master hhRef  | table hhRef&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 06:37:03 GMT</pubDate>
    <dc:creator>ssaenger</dc:creator>
    <dc:date>2020-09-29T06:37:03Z</dc:date>
    <item>
      <title>How to use a csv file to search fields.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195600#M38898</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to use a CSV file to search variables as i was using an OR command but the amount of variables is increasing, however its not returning any results.&lt;/P&gt;

&lt;P&gt;sourcetype=drm_ssa_log | search [ inputlookup domain_provisioning_master.csv | return 10000 hhRef ] | table hhRef&lt;/P&gt;

&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:36:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195600#M38898</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2020-09-29T06:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a csv file to search fields.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195601#M38899</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=drm_ssa_log | lookup domain_provisioning_master foo | table hhRef
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where 'foo' is a field in both the drm_ssa_log sourcetype and in the CSV.  The lookup command will return all fields from the CSV.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:37:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195601#M38899</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T06:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a csv file to search fields.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195602#M38900</link>
      <description>&lt;P&gt;Thanks for the prompt response Rich,&lt;BR /&gt;
I get the following error;&lt;BR /&gt;
Error in 'lookup' command: The lookup table 'domain_provisioning_master' does not exist.&lt;/P&gt;

&lt;P&gt;i think i should have said that the csv file is from an excel doc, its a single colomn of figures, the foo part is a field in the drm_ssa_log called hhRef, so my search looks like;&lt;/P&gt;

&lt;P&gt;sourcetype=drm_ssa_log | lookup domain_provisioning_master hhRef  | table hhRef&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:37:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195602#M38900</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2020-09-29T06:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a csv file to search fields.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195603#M38901</link>
      <description>&lt;P&gt;If hhRef already exists in drm_ssa_log, what is the lookup for?&lt;BR /&gt;
If the CSV is just a single column of numbers, then you have no way to correlate the data in the CSV with the events from your search.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195603#M38901</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T06:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a csv file to search fields.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195604#M38902</link>
      <description>&lt;P&gt;the hhRef in the csv table is a partial amount of users that need to be checked on the system&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 15:35:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195604#M38902</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2015-07-08T15:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a csv file to search fields.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195605#M38903</link>
      <description>&lt;P&gt;I don't understand that statement.  How do you map hhRef from drm_ssa_log to the appropriate hhRef value in the CSV?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195605#M38903</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-29T06:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a csv file to search fields.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195606#M38904</link>
      <description>&lt;P&gt;apologies i am very new to Splunk and coding.&lt;BR /&gt;
I had an OR statement to find some entries in a log file where the field hhRef=001TR12, this was fine but the number of hhRef values is increasing and i thought using a csv file would be a better alternative to a really long OR statement which i keep having to edit.&lt;BR /&gt;
So my csv file is;&lt;BR /&gt;
001AB12&lt;BR /&gt;
0034526&lt;BR /&gt;
00BD741&lt;BR /&gt;
0035682A&lt;BR /&gt;
I want to parse these values into a search as the field hhRef.&lt;/P&gt;

&lt;P&gt;hope thats clearer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2015 06:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195606#M38904</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2015-07-09T06:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a csv file to search fields.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195607#M38905</link>
      <description>&lt;P&gt;So after alot of web searching i got the search string;&lt;BR /&gt;
sourcetype=drm_ssa_log  [inputlookup test_csv.csv | return 10000 hhRef=hhRef]&lt;/P&gt;

&lt;P&gt;where test_csv.csv look like&lt;BR /&gt;
hhRef&lt;BR /&gt;
001AB12&lt;BR /&gt;
0034526&lt;BR /&gt;
00BD741&lt;BR /&gt;
0035682A&lt;/P&gt;

&lt;P&gt;it reads the list as hhRef and the return 10000 hhRef=hhRef mean return the 10000 values and assign the alias hhRef to the field hhRef.&lt;/P&gt;

&lt;P&gt;I did try " | fields hhRef " but I think this just searches for 001AB12 accross the whole log file.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:39:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-csv-file-to-search-fields/m-p/195607#M38905</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2020-09-29T06:39:11Z</dc:date>
    </item>
  </channel>
</rss>

