<?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: A lookup table could not be created in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/A-lookup-table-could-not-be-created/m-p/124864#M345</link>
    <description>&lt;P&gt;I have submitted my issue to splunk support and if the resolution in this post works, then i will mark this as answer.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2014 18:01:47 GMT</pubDate>
    <dc:creator>aelliott</dc:creator>
    <dc:date>2014-04-09T18:01:47Z</dc:date>
    <item>
      <title>A lookup table could not be created</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/A-lookup-table-could-not-be-created/m-p/124862#M343</link>
      <description>&lt;P&gt;I'm using Enterprise Security and am getting the following:&lt;BR /&gt;
Using SA-IdentityManagement&lt;/P&gt;

&lt;P&gt;Populating identities using ldapsearch to lookup within scheduled search..  lookup then populates using Identity Management&lt;BR /&gt;
Populating Assets into csv, feeding to lookup file with automated search.. lookup file then populates identity table with Identity Management&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;lookup_conversion: A lookup table could not be created (key: identity, tempfile: C:\Program Files\Splunk\var\run\splunk\lookup_tmp\lookup_convwnyv1y.txt)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Troubleshooting: checked splunkd.log, no messages&lt;BR /&gt;
To resolve temporarily: recreated identity_expanded.csv, assets_by_str.csv manually (using the .default template), csv's will repopulate automagically with data. When it tries to do it automatically, the csv's are deleted and splunk is unable to recreate. Checked access and account has full access to csv's and directory.&lt;/P&gt;

&lt;P&gt;Here's some more details that I found within the _internal index.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;014-04-09 09:02:10,568 ERROR pid=9620 tid=asset file=writers.py:move_lookups:156 
| FAILURE: A lookup table could not be created: (key: dns, tempfile: C:\Program Files\Splunk\var\run\splunk\lookup_tmp\lookup_convelz2ua.txt)

2014-04-08 14:05:34,845 ERROR pid=8512 tid=identity file=writers.py:_move_lookup:106 
| FAILURE: A lookup table could not be created: identities_expanded.csv

2014-04-08 14:05:30,180 ERROR pid=8512 tid=asset file=writers.py:_move_lookup:106 
| FAILURE: A lookup table could not be created: assets_by_str.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And More Logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 2014-04-09 06:02:36,535 ERROR pid=4588 tid=asset file=writers.py:_move_lookup:98 | EXCEPTION: Could not rename file after multiple retries src=C:\Program Files\Splunk\var\run\splunk\lookup_tmp\lookup_convqgehyc.txt dst=C:\Program Files\Splunk\etc\apps\SA-IdentityManagement\lookups\assets_by_str.csv
    Traceback (most recent call last):
      File "C:\Program Files\Splunk\etc\apps\SA-Utils\lib\SolnCommon\lookup_conversion\writers.py", line 85, in _move_lookup
        os.unlink(dst_lookup_path)
    WindowsError: [Error 5] Access is denied: 'C:\\Program Files\\Splunk\\etc\\apps\\SA-IdentityManagement\\lookups\\assets_by_str.csv'

    2014-04-09 06:02:36,535 ERROR pid=4588 tid=asset file=writers.py:_move_lookup:106 | FAILURE: A lookup table could not be created: assets_by_str.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:20:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/A-lookup-table-could-not-be-created/m-p/124862#M343</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2020-09-28T16:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: A lookup table could not be created</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/A-lookup-table-could-not-be-created/m-p/124863#M344</link>
      <description>&lt;P&gt;aha! this is a known issue:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/ES/latest/RN/KnownIssues" target="_blank"&gt;http://docs.splunk.com/Documentation/ES/latest/RN/KnownIssues&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;On a Windows search head, the asset and identity center shows no results. Error messages will be displayed on the search head about missing lookup files. The python_modular_inputs.log reports errors:&lt;BR /&gt;
      ERROR pid=4040 tid=asset file=writers.py:_move_lookup:108 | FAILURE: Temporary output file was not created: C:\Program Files\Splunk\var\run\splunk\lookup_tmp\lookup_conv6jppog.txt&lt;BR /&gt;
      ERROR pid=4040 tid=asset file=writers.py:move_lookups:156 | FAILURE: A lookup table could not be created: (key: cidr, tempfile: C:\Program Files\Splunk\var\run\splunk\lookup_tmp\lookup_conv6jppog.txt)&lt;BR /&gt;
The asset and identity lookup creation and expansion process is not working correctly due to an issue with a python script on Windows. Please contact Splunk Support for a replacement script and reference SOLNESS-4642. (SOLNESS-4642)&lt;BR /&gt;
Once the script is obtained, follow the instructions below:&lt;BR /&gt;
1. Replace the writers.py script in $SPLUNK_HOME\etc\apps\SA-Utils\lib\SolnCommon\lookup_conversion&lt;BR /&gt;
2. Make sure all the *.csv's in SA-IdentityManagement\lookups are there, and if not create a new copy from the *.csv.default files.&lt;BR /&gt;
3. Delete all the contents under $SPLUNK_HOME\var\lib\splunk\modinputs\identity_manager&lt;BR /&gt;
4. Restart Splunk Enterprise&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:21:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/A-lookup-table-could-not-be-created/m-p/124863#M344</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2020-09-28T16:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: A lookup table could not be created</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/A-lookup-table-could-not-be-created/m-p/124864#M345</link>
      <description>&lt;P&gt;I have submitted my issue to splunk support and if the resolution in this post works, then i will mark this as answer.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 18:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/A-lookup-table-could-not-be-created/m-p/124864#M345</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-04-09T18:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: A lookup table could not be created</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/A-lookup-table-could-not-be-created/m-p/124865#M346</link>
      <description>&lt;P&gt;Update: Still waiting on a response from splunk support after 11 full business days.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 13:55:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/A-lookup-table-could-not-be-created/m-p/124865#M346</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-04-25T13:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: A lookup table could not be created</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/A-lookup-table-could-not-be-created/m-p/124866#M347</link>
      <description>&lt;P&gt;Received writers.py and followed instructions as stated above, already working perfectly&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 16:53:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/A-lookup-table-could-not-be-created/m-p/124866#M347</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2014-04-25T16:53:11Z</dc:date>
    </item>
  </channel>
</rss>

