<?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: External command based lookup 'tSessions' is not available because KV Store initialization has failed. in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/External-command-based-lookup-tSessions-is-not-available-because/m-p/234409#M26344</link>
    <description>&lt;P&gt;Have a look at these two Answer posts:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/397029/kv-store-lookup-failing-with-error-about-kv-store.html"&gt;Mongod fails to start due to SSL cert expiration&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/208349/why-am-i-getting-kv-store-error-external-command-b.html"&gt;Mongod fails to start&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It may also be a permissions problem in the mongod tree, so verify that as well.&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2016 12:35:19 GMT</pubDate>
    <dc:creator>nnmiller</dc:creator>
    <dc:date>2016-05-06T12:35:19Z</dc:date>
    <item>
      <title>External command based lookup 'tSessions' is not available because KV Store initialization has failed.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/External-command-based-lookup-tSessions-is-not-available-because/m-p/234408#M26343</link>
      <description>&lt;P&gt;Search head cluster running 6.3 and Splunk App for Windows Infrastructure 1.20. I'm getting these errors for my scheduled searches:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;ERROR SavedSplunker - savedsearch_id="nobody;splunk_app_windows_infrastructure;tSessions_Lookup_Update", message="Error in 'inputlookup' command: External command based lookup 'tSessions' is not available because KV Store initialization has failed. Please contact your system administrator.". No actions executed&lt;BR /&gt;
ERROR SavedSplunker - savedsearch_id="nobody;splunk_app_windows_infrastructure;tHostInfo_Lookup_Update", message="Error in 'inputlookup' command: External command based lookup 'tHostInfo' is not available because KV Store initialization has failed. Please contact your system administrator.". No actions executed&lt;/P&gt;

&lt;P&gt;ERROR SavedSplunker - savedsearch_id="nobody;splunk_app_windows_infrastructure;DomainSelector_Lookup", message="Error in 'outputlookup' command: External command based lookup 'DomainSelector' is not available because KV Store initialization has failed. Please contact your system administrator.". No actions executed&lt;BR /&gt;
On all three search heads, the permissions for /opt/splunk/var/lib/splunk/kvstore/mongo/splunk.key is &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;PRE&gt;&lt;CODE&gt;-rw------- 1 splunk splunk 88 Oct 22 11:42 /opt/splunk/var/lib/splunk/kvstore/mongo/splunk.key
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and these errors occur even after splunk is restarted in the environment, so I think that rules out a mongod restart. &lt;BR /&gt;
This stops the majority of the splunk app for windows infrastructure from displaying results.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/External-command-based-lookup-tSessions-is-not-available-because/m-p/234408#M26343</guid>
      <dc:creator>banderson7</dc:creator>
      <dc:date>2020-09-29T08:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: External command based lookup 'tSessions' is not available because KV Store initialization has failed.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/External-command-based-lookup-tSessions-is-not-available-because/m-p/234409#M26344</link>
      <description>&lt;P&gt;Have a look at these two Answer posts:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/397029/kv-store-lookup-failing-with-error-about-kv-store.html"&gt;Mongod fails to start due to SSL cert expiration&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/208349/why-am-i-getting-kv-store-error-external-command-b.html"&gt;Mongod fails to start&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It may also be a permissions problem in the mongod tree, so verify that as well.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 12:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/External-command-based-lookup-tSessions-is-not-available-because/m-p/234409#M26344</guid>
      <dc:creator>nnmiller</dc:creator>
      <dc:date>2016-05-06T12:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: External command based lookup 'tSessions' is not available because KV Store initialization has failed.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/External-command-based-lookup-tSessions-is-not-available-because/m-p/234410#M26345</link>
      <description>&lt;P&gt;In my case it was that the certificates and other files were too permissive.  I did this to fix it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;cd /opt/splunk/var/lib/splunk/kvstore/mongo
chmod 600 *
/opt/splunk/bin/splunk restart
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Jul 2018 02:37:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/External-command-based-lookup-tSessions-is-not-available-because/m-p/234410#M26345</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-28T02:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: External command based lookup 'tSessions' is not available because KV Store initialization has failed.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/External-command-based-lookup-tSessions-is-not-available-because/m-p/234411#M26346</link>
      <description>&lt;P&gt;In our case, the issue was as a result of the expired certs:&lt;/P&gt;

&lt;P&gt;Error:  Error in 'inputlookup' command: External command based lookup 'app_name' is not available because KV Store initialization has failed. Contact your system administrator&lt;/P&gt;

&lt;P&gt;Here is the fix:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;splunkd.log: ERROR KVStoreLookup - External command based lookup 'app_name' is not available because KV Store initialization has not completed yet......&lt;/LI&gt;
&lt;LI&gt;mongod.log: The provided SSL certificate is expired or not yet valid....&lt;/LI&gt;
&lt;LI&gt; Check Certs:
/opt/splunk/bin/splunk cmd openssl x509 -enddate -noout -in /opt/splunk/etc/auth/server.pem
notAfter=Sep  8 17:56:51 2019 GMT&lt;/LI&gt;
&lt;LI&gt;Stopped Splunk service&lt;/LI&gt;
&lt;LI&gt;Renamed current server.pem: mv /opt/splunk/etc/auth/server.pem /opt/splunk/etc/auth/server.pem&lt;/LI&gt;
&lt;LI&gt;Restarted Splunk services&lt;/LI&gt;
&lt;LI&gt; Checked Certs:
/opt/splunk/bin/splunk cmd openssl x509 -enddate -noout -in /opt/splunk/etc/auth/server.pem
notAfter=Oct 24 17:38:28 2022 GMT&lt;/LI&gt;
&lt;LI&gt;Results where displayed for app.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 25 Oct 2019 17:49:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/External-command-based-lookup-tSessions-is-not-available-because/m-p/234411#M26346</guid>
      <dc:creator>daymauler</dc:creator>
      <dc:date>2019-10-25T17:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: External command based lookup 'tSessions' is not available because KV Store initialization has failed.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/External-command-based-lookup-tSessions-is-not-available-because/m-p/234412#M26347</link>
      <description>&lt;P&gt;Step 5 is Renamed current server.pem to server.pem.old: mv /opt/splunk/etc/auth/server.pem /opt/splunk/etc/auth/server.pem.old&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 11:29:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/External-command-based-lookup-tSessions-is-not-available-because/m-p/234412#M26347</guid>
      <dc:creator>daymauler</dc:creator>
      <dc:date>2019-10-28T11:29:04Z</dc:date>
    </item>
  </channel>
</rss>

