<?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: Can't get lookup tables to function - Refuse to copy file from unsafe in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-lookup-tables-to-function-Refuse-to-copy-file-from/m-p/52863#M12863</link>
    <description>&lt;P&gt;I know this is a very old question, but I'm encountering the same issue with Splunk Enterprise 7.2.0.  @rgisrael's question describes exactly what I'm struggling with.  @ewoo's answer seems to be for a *nix environment.  Is there a similar bug/solution for Windows environment?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Nov 2018 15:24:52 GMT</pubDate>
    <dc:creator>hgu</dc:creator>
    <dc:date>2018-11-26T15:24:52Z</dc:date>
    <item>
      <title>Can't get lookup tables to function - Refuse to copy file from unsafe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-lookup-tables-to-function-Refuse-to-copy-file-from/m-p/52859#M12859</link>
      <description>&lt;P&gt;OK, so I've spent a good bit of time trying to implement lookup tables according to the docs, and I'm getting no luck at all. When I try to use the GUI to add a lookup table file, I get the following error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Encountered the following error while trying to save: In handler 'lookup-table-files': Error performing action=create on object id=ol1.csv in config=lookups.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the splunkd log, I see:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02-28-2011 11:50:06.127 WARN LookupTableConfPathMapper - Refuse to copy file from unsafe location: /splunk/var/run/splunk/lookup_tmp/ol1.csv.0132362786125 02-28-2011 11:50:06.127 ERROR PropertiesMapConfig - Failed to save settings: /admin/search/lookups/ol1.csv (user: admin, app: search, root: /opt/splunk/etc): Data could not be written: /admin/search/lookups/ol1.csv: /opt/splunk/var/run/splunk/lookup_tmp/ol1.csv.0132362786125 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Putting in modified props.conf and transforms.conf in apps/search/local and putting the file in apps/search/lookups has no effect... no error messages on restart saying they were read and were improper, no visible change to log messages to suggest it worked.  btool says the properties were loaded.&lt;/P&gt;

&lt;P&gt;props.conf: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog] 
pulldown_type = true 
maxDist = 3 
TIME_FORMAT = %b %d %H:%M:%S 
MAX_TIMESTAMP_LOOKAHEAD = 32 
TRANSFORMS = syslog-host 
REPORT-syslog = syslog-extractions 
SHOULD_LINEMERGE = False 
lookup_orblookup = orblookup Hostname OUTPUTNEW OrganizationCode
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[orblookup] 
filename = ol1.csv 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;head ol1.csv &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Hostname,OrganizationCode
hostname1.example.com,Data Warehouse
hostname2.example.com,Data Warehouse
hostname3.example.com,Data Warehouse
hostname4.example.com,Data Warehouse
hostname5.example.com,Infrastructure Operations
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Mar 2011 03:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-get-lookup-tables-to-function-Refuse-to-copy-file-from/m-p/52859#M12859</guid>
      <dc:creator>rgisrael</dc:creator>
      <dc:date>2011-03-03T03:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get lookup tables to function - Refuse to copy file from unsafe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-lookup-tables-to-function-Refuse-to-copy-file-from/m-p/52860#M12860</link>
      <description>&lt;P&gt;Have you symlink-ed $SPLUNK_HOME/var out to /splunk/var?&lt;/P&gt;

&lt;P&gt;If so, this is a known issue (for internal use: SPL-37310).&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2011 07:32:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-get-lookup-tables-to-function-Refuse-to-copy-file-from/m-p/52860#M12860</guid>
      <dc:creator>ewoo</dc:creator>
      <dc:date>2011-03-03T07:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get lookup tables to function - Refuse to copy file from unsafe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-lookup-tables-to-function-Refuse-to-copy-file-from/m-p/52861#M12861</link>
      <description>&lt;P&gt;I've symlinked /opt/splunk to /splunk.  Where is SPL-37310 documented?  I've searched for the error and 'spl-37310' all over splunk.com's websites and in google and haven't come up with anything. Do you know what the workaround is?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2011 23:52:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-get-lookup-tables-to-function-Refuse-to-copy-file-from/m-p/52861#M12861</guid>
      <dc:creator>rgisrael</dc:creator>
      <dc:date>2011-03-03T23:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get lookup tables to function - Refuse to copy file from unsafe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-lookup-tables-to-function-Refuse-to-copy-file-from/m-p/52862#M12862</link>
      <description>&lt;P&gt;Setting SPLUNK_HOME to /splunk instead of /opt/splunk should fix lookup table upload.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2011 06:11:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-get-lookup-tables-to-function-Refuse-to-copy-file-from/m-p/52862#M12862</guid>
      <dc:creator>ewoo</dc:creator>
      <dc:date>2011-03-05T06:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get lookup tables to function - Refuse to copy file from unsafe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-lookup-tables-to-function-Refuse-to-copy-file-from/m-p/52863#M12863</link>
      <description>&lt;P&gt;I know this is a very old question, but I'm encountering the same issue with Splunk Enterprise 7.2.0.  @rgisrael's question describes exactly what I'm struggling with.  @ewoo's answer seems to be for a *nix environment.  Is there a similar bug/solution for Windows environment?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:24:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-get-lookup-tables-to-function-Refuse-to-copy-file-from/m-p/52863#M12863</guid>
      <dc:creator>hgu</dc:creator>
      <dc:date>2018-11-26T15:24:52Z</dc:date>
    </item>
  </channel>
</rss>

