<?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 Need help creating/configuring CSV lookup in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-creating-configuring-CSV-lookup/m-p/361799#M65969</link>
    <description>&lt;P&gt;I know that using &lt;CODE&gt;inputlookup&lt;/CODE&gt; will use a CSV file but is it possible to have a script create the CSV file that &lt;CODE&gt;inputlookup&lt;/CODE&gt; will use?&lt;/P&gt;

&lt;P&gt;I know I can use a scripted lookup but this requires arguments to be passed into the script when all I want is a script to create a CSV for me that &lt;CODE&gt;inputlookup&lt;/CODE&gt; will then use&lt;/P&gt;

&lt;P&gt;For example, a stanza in the transforms.conf for a CSV lookup might be as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[listofspecialusers]
filename = specialusers.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;instead of that could I do something like this below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[listofspecialusers]
filename = scriptToCreateSpecialUsersCSV.py
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So then that python script will create my CSV instead of already having a CSV file created to list in the stanza.&lt;/P&gt;

&lt;P&gt;how can I accomplish this??&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 16:27:09 GMT</pubDate>
    <dc:creator>jcorkey</dc:creator>
    <dc:date>2017-08-10T16:27:09Z</dc:date>
    <item>
      <title>Need help creating/configuring CSV lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-creating-configuring-CSV-lookup/m-p/361799#M65969</link>
      <description>&lt;P&gt;I know that using &lt;CODE&gt;inputlookup&lt;/CODE&gt; will use a CSV file but is it possible to have a script create the CSV file that &lt;CODE&gt;inputlookup&lt;/CODE&gt; will use?&lt;/P&gt;

&lt;P&gt;I know I can use a scripted lookup but this requires arguments to be passed into the script when all I want is a script to create a CSV for me that &lt;CODE&gt;inputlookup&lt;/CODE&gt; will then use&lt;/P&gt;

&lt;P&gt;For example, a stanza in the transforms.conf for a CSV lookup might be as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[listofspecialusers]
filename = specialusers.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;instead of that could I do something like this below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[listofspecialusers]
filename = scriptToCreateSpecialUsersCSV.py
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So then that python script will create my CSV instead of already having a CSV file created to list in the stanza.&lt;/P&gt;

&lt;P&gt;how can I accomplish this??&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 16:27:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-creating-configuring-CSV-lookup/m-p/361799#M65969</guid>
      <dc:creator>jcorkey</dc:creator>
      <dc:date>2017-08-10T16:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help creating/configuring CSV lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-creating-configuring-CSV-lookup/m-p/361800#M65970</link>
      <description>&lt;P&gt;You don't need python reference in transforms.conf. You can keep your transforms.conf configuration as it is. &lt;/P&gt;

&lt;P&gt;Create a scripted input which runs periodically and put data into the csv file within your lookup table. &lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 16:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-creating-configuring-CSV-lookup/m-p/361800#M65970</guid>
      <dc:creator>hardikJsheth</dc:creator>
      <dc:date>2017-08-10T16:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help creating/configuring CSV lookup</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-creating-configuring-CSV-lookup/m-p/361801#M65971</link>
      <description>&lt;P&gt;Is there a way to have the script run whenever the search is ran which will then populate the CSV and then use the CSV in the search rather than have it scheduled periodically?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 17:49:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-creating-configuring-CSV-lookup/m-p/361801#M65971</guid>
      <dc:creator>jcorkey</dc:creator>
      <dc:date>2017-08-10T17:49:06Z</dc:date>
    </item>
  </channel>
</rss>

