<?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: Lookup csv file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-csv-file/m-p/45075#M10640</link>
    <description>&lt;P&gt;Example lookup configuration in the docs.  Create your file like this and then follow the links below for an example on how to set it up and then how they get used in searches.&lt;/P&gt;

&lt;P&gt;customer_id, customer_name&lt;BR /&gt;
jsmith,John Smith&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndConfigureFieldLookups" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndConfigureFieldLookups&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:46:46 GMT</pubDate>
    <dc:creator>sdaniels</dc:creator>
    <dc:date>2020-09-28T11:46:46Z</dc:date>
    <item>
      <title>Lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-csv-file/m-p/45073#M10638</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
  I would like to upload a csv file as a lookup table. what will be header format?&lt;BR /&gt;
  Assuming I have a search field called customer_id. So jsmith means John Smith.&lt;BR /&gt;
  Can you use this as an example to provide a one line csv file?&lt;/P&gt;

&lt;P&gt;I trtied &lt;STRONG&gt;jsmith, John Smith&lt;/STRONG&gt;&lt;BR /&gt;
but didn't work out.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 20:04:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-csv-file/m-p/45073#M10638</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2012-05-07T20:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-csv-file/m-p/45074#M10639</link>
      <description>&lt;P&gt;This is covered very well in the docs - I could write examples here but really the docs explain it all: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources#Example_of_static_fields_lookup"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources#Example_of_static_fields_lookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2012 20:16:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-csv-file/m-p/45074#M10639</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-07T20:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-csv-file/m-p/45075#M10640</link>
      <description>&lt;P&gt;Example lookup configuration in the docs.  Create your file like this and then follow the links below for an example on how to set it up and then how they get used in searches.&lt;/P&gt;

&lt;P&gt;customer_id, customer_name&lt;BR /&gt;
jsmith,John Smith&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndConfigureFieldLookups" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndConfigureFieldLookups&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-csv-file/m-p/45075#M10640</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2020-09-28T11:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-csv-file/m-p/45076#M10641</link>
      <description>&lt;P&gt;Good anwser. Thanks!&lt;/P&gt;

&lt;P&gt;Assuming the lookup csv file contains the customer's associated firm. e.g.&lt;BR /&gt;
customer_id, customer_name, customer_firm&lt;BR /&gt;
jsmith,John Smith,Google&lt;/P&gt;

&lt;P&gt;What will be the search string to see top 10 users' name and firm?&lt;BR /&gt;
The search below will display name, count, percentage.&lt;BR /&gt;
sourcetype="access_common" | top customer_name&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-csv-file/m-p/45076#M10641</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2020-09-28T11:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-csv-file/m-p/45077#M10642</link>
      <description>&lt;P&gt;Because customer_name and firm will always have the same 1:1 mapping (right?) you can just do&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top customer_name,firm
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2012 16:07:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-csv-file/m-p/45077#M10642</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-05-08T16:07:06Z</dc:date>
    </item>
  </channel>
</rss>

