<?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 add a column/field based on csv table in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254996#M48975</link>
    <description>&lt;P&gt;Something like this should get you started.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="AAA" | lookup file.csv userid OUTPUT username | table _time userid username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you create an automatic lookup you can omit the &lt;CODE&gt;lookup&lt;/CODE&gt; command from the search.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2015 14:03:27 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-10-01T14:03:27Z</dc:date>
    <item>
      <title>How to add a column/field based on csv table</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254994#M48973</link>
      <description>&lt;P&gt;I have a search like:&lt;BR /&gt;
sourcetype="AAA"|table  _time userid, and I have a table like userid, username, &lt;BR /&gt;
how to make the result as .....|table _time userid username.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 13:53:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254994#M48973</guid>
      <dc:creator>AllenZhang</dc:creator>
      <dc:date>2015-10-01T13:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a column/field based on csv table</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254995#M48974</link>
      <description>&lt;P&gt;upload your csv as a lookup table. Once you create a definition for your lookup, you can achieve with the below search&lt;/P&gt;

&lt;PRE&gt;
sourcetype="AAA" | lookup your_csv_definition_name userid output username | table _time userid username
&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Oct 2015 13:55:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254995#M48974</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2015-10-01T13:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a column/field based on csv table</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254996#M48975</link>
      <description>&lt;P&gt;Something like this should get you started.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="AAA" | lookup file.csv userid OUTPUT username | table _time userid username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you create an automatic lookup you can omit the &lt;CODE&gt;lookup&lt;/CODE&gt; command from the search.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254996#M48975</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-10-01T14:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a column/field based on csv table</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254997#M48976</link>
      <description>&lt;P&gt;Thanks for quick answer. I am still struggling how to upload the csv file from my computer to splunk, to make it available to the lookups. Do I need to save it to some certain folder, anything like "import" I need to do?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254997#M48976</guid>
      <dc:creator>AllenZhang</dc:creator>
      <dc:date>2015-10-01T14:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a column/field based on csv table</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254998#M48977</link>
      <description>&lt;P&gt;go to settings -&amp;gt; lookups &amp;gt;lookup table files -&amp;gt; new&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 17:07:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254998#M48977</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2015-10-01T17:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a column/field based on csv table</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254999#M48978</link>
      <description>&lt;P&gt;I was going to accept both answers, but the system only allows one. Thanks to both of you!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 21:02:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-add-a-column-field-based-on-csv-table/m-p/254999#M48978</guid>
      <dc:creator>AllenZhang</dc:creator>
      <dc:date>2015-10-02T21:02:27Z</dc:date>
    </item>
  </channel>
</rss>

