<?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 ImportError: No module named splunklib.searchcommands in Security</title>
    <link>https://community.splunk.com/t5/Security/ImportError-No-module-named-splunklib-searchcommands/m-p/439173#M15489</link>
    <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I'm working with app "misp42splunk" which can be used to extract information from the MISP instance.&lt;/P&gt;

&lt;P&gt;The next command return error: &lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/272622-test7.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Here is the job inspector log:&lt;/P&gt;

&lt;P&gt;05-05-2019 10:12:32.637 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':  Traceback (most recent call last):&lt;BR /&gt;
05-05-2019 10:12:32.637 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':    File "/opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py", line 19, in &lt;BR /&gt;
05-05-2019 10:12:32.637 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':      from splunklib.searchcommands import dispatch, ReportingCommand, Configuration, Option, validators&lt;BR /&gt;
05-05-2019 10:12:32.637 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':  ImportError: No module named splunklib.searchcommands&lt;BR /&gt;
05-05-2019 10:12:32.664 ERROR script - Getinfo probe failed for external search command 'mispgetioc'.&lt;BR /&gt;
05-05-2019 10:12:32.664 INFO  SearchParser - PARSING: |mispgetioc misp_instance=default_misp eventid=11398&lt;BR /&gt;
05-05-2019 10:12:32.664 INFO  script - found script file=/opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py&lt;BR /&gt;
05-05-2019 10:12:32.664 INFO  script - stderr for script mispgetioc will be added to search.log&lt;BR /&gt;
05-05-2019 10:12:32.717 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':  Traceback (most recent call last):&lt;BR /&gt;
05-05-2019 10:12:32.717 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':    File "/opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py", line 19, in &lt;BR /&gt;
05-05-2019 10:12:32.717 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':      from splunklib.searchcommands import dispatch, ReportingCommand, Configuration, Option, validators&lt;BR /&gt;
05-05-2019 10:12:32.717 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':  ImportError: No module named splunklib.searchcommands&lt;BR /&gt;
05-05-2019 10:12:32.722 ERROR script - Getinfo probe failed for external search command 'mispgetioc'.&lt;BR /&gt;
05-05-2019 10:12:32.722 INFO  SearchPhaseGenerator - Failed to create phases using AST:Error in 'script': Getinfo probe failed for external search command 'mispgetioc'.. Falling back to 2 phase mode.&lt;BR /&gt;
05-05-2019 10:12:32.722 INFO  SearchParser - PARSING: |mispgetioc misp_instance=default_misp eventid=11398&lt;BR /&gt;
05-05-2019 10:12:32.722 INFO  script - found script file=/opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py&lt;BR /&gt;
05-05-2019 10:12:32.722 INFO  script - stderr for script mispgetioc will be added to search.log&lt;BR /&gt;
05-05-2019 10:12:32.773 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':  Traceback (most recent call last):&lt;BR /&gt;
05-05-2019 10:12:32.773 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':    File "/opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py", line 19, in &lt;BR /&gt;
05-05-2019 10:12:32.773 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':      from splunklib.searchcommands import dispatch, ReportingCommand, Configuration, Option, validators&lt;BR /&gt;
05-05-2019 10:12:32.773 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':  ImportError: No module named splunklib.searchcommands&lt;BR /&gt;
05-05-2019 10:12:32.778 ERROR script - Getinfo probe failed for external search command 'mispgetioc'.&lt;BR /&gt;
05-05-2019 10:12:32.778 ERROR SearchPhaseGenerator - Fallback to two phase search failed:Error in 'script': Getinfo probe failed for external search command 'mispgetioc'.&lt;BR /&gt;
05-05-2019 10:12:32.778 ERROR SearchOrchestrator - Error in 'script': Getinfo probe failed for external search command 'mispgetioc'.&lt;BR /&gt;
05-05-2019 10:12:32.778 INFO  SearchStatusEnforcer - Enforcing disk quota = 10485760000&lt;BR /&gt;
05-05-2019 10:12:32.779 INFO  DispatchStorageManager - Remote storage disabled for search artifacts.&lt;BR /&gt;
05-05-2019 10:12:32.779 INFO  DispatchManager - DispatchManager::dispatchHasFinished(id='1557051152.24', username='admin')&lt;BR /&gt;
05-05-2019 10:12:32.780 INFO  UserManager - Unwound user context: admin -&amp;gt; NULL&lt;BR /&gt;
05-05-2019 10:12:32.780 INFO  UserManager - Unwound user context: admin -&amp;gt; NULL&lt;BR /&gt;
05-05-2019 10:12:32.781 ERROR dispatchRunner - RunDispatch::runDispatchThread threw error: Error in 'script': Getinfo probe failed for external search command 'mispgetioc'.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:21:09 GMT</pubDate>
    <dc:creator>bugnet</dc:creator>
    <dc:date>2020-09-30T00:21:09Z</dc:date>
    <item>
      <title>ImportError: No module named splunklib.searchcommands</title>
      <link>https://community.splunk.com/t5/Security/ImportError-No-module-named-splunklib-searchcommands/m-p/439173#M15489</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I'm working with app "misp42splunk" which can be used to extract information from the MISP instance.&lt;/P&gt;

&lt;P&gt;The next command return error: &lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/272622-test7.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Here is the job inspector log:&lt;/P&gt;

&lt;P&gt;05-05-2019 10:12:32.637 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':  Traceback (most recent call last):&lt;BR /&gt;
05-05-2019 10:12:32.637 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':    File "/opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py", line 19, in &lt;BR /&gt;
05-05-2019 10:12:32.637 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':      from splunklib.searchcommands import dispatch, ReportingCommand, Configuration, Option, validators&lt;BR /&gt;
05-05-2019 10:12:32.637 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':  ImportError: No module named splunklib.searchcommands&lt;BR /&gt;
05-05-2019 10:12:32.664 ERROR script - Getinfo probe failed for external search command 'mispgetioc'.&lt;BR /&gt;
05-05-2019 10:12:32.664 INFO  SearchParser - PARSING: |mispgetioc misp_instance=default_misp eventid=11398&lt;BR /&gt;
05-05-2019 10:12:32.664 INFO  script - found script file=/opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py&lt;BR /&gt;
05-05-2019 10:12:32.664 INFO  script - stderr for script mispgetioc will be added to search.log&lt;BR /&gt;
05-05-2019 10:12:32.717 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':  Traceback (most recent call last):&lt;BR /&gt;
05-05-2019 10:12:32.717 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':    File "/opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py", line 19, in &lt;BR /&gt;
05-05-2019 10:12:32.717 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':      from splunklib.searchcommands import dispatch, ReportingCommand, Configuration, Option, validators&lt;BR /&gt;
05-05-2019 10:12:32.717 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':  ImportError: No module named splunklib.searchcommands&lt;BR /&gt;
05-05-2019 10:12:32.722 ERROR script - Getinfo probe failed for external search command 'mispgetioc'.&lt;BR /&gt;
05-05-2019 10:12:32.722 INFO  SearchPhaseGenerator - Failed to create phases using AST:Error in 'script': Getinfo probe failed for external search command 'mispgetioc'.. Falling back to 2 phase mode.&lt;BR /&gt;
05-05-2019 10:12:32.722 INFO  SearchParser - PARSING: |mispgetioc misp_instance=default_misp eventid=11398&lt;BR /&gt;
05-05-2019 10:12:32.722 INFO  script - found script file=/opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py&lt;BR /&gt;
05-05-2019 10:12:32.722 INFO  script - stderr for script mispgetioc will be added to search.log&lt;BR /&gt;
05-05-2019 10:12:32.773 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':  Traceback (most recent call last):&lt;BR /&gt;
05-05-2019 10:12:32.773 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':    File "/opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py", line 19, in &lt;BR /&gt;
05-05-2019 10:12:32.773 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':      from splunklib.searchcommands import dispatch, ReportingCommand, Configuration, Option, validators&lt;BR /&gt;
05-05-2019 10:12:32.773 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python /opt/splunk/etc/apps/misp42splunk/bin/mispgetioc.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; misp_instance=default_misp eventid=11398':  ImportError: No module named splunklib.searchcommands&lt;BR /&gt;
05-05-2019 10:12:32.778 ERROR script - Getinfo probe failed for external search command 'mispgetioc'.&lt;BR /&gt;
05-05-2019 10:12:32.778 ERROR SearchPhaseGenerator - Fallback to two phase search failed:Error in 'script': Getinfo probe failed for external search command 'mispgetioc'.&lt;BR /&gt;
05-05-2019 10:12:32.778 ERROR SearchOrchestrator - Error in 'script': Getinfo probe failed for external search command 'mispgetioc'.&lt;BR /&gt;
05-05-2019 10:12:32.778 INFO  SearchStatusEnforcer - Enforcing disk quota = 10485760000&lt;BR /&gt;
05-05-2019 10:12:32.779 INFO  DispatchStorageManager - Remote storage disabled for search artifacts.&lt;BR /&gt;
05-05-2019 10:12:32.779 INFO  DispatchManager - DispatchManager::dispatchHasFinished(id='1557051152.24', username='admin')&lt;BR /&gt;
05-05-2019 10:12:32.780 INFO  UserManager - Unwound user context: admin -&amp;gt; NULL&lt;BR /&gt;
05-05-2019 10:12:32.780 INFO  UserManager - Unwound user context: admin -&amp;gt; NULL&lt;BR /&gt;
05-05-2019 10:12:32.781 ERROR dispatchRunner - RunDispatch::runDispatchThread threw error: Error in 'script': Getinfo probe failed for external search command 'mispgetioc'.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:21:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/ImportError-No-module-named-splunklib-searchcommands/m-p/439173#M15489</guid>
      <dc:creator>bugnet</dc:creator>
      <dc:date>2020-09-30T00:21:09Z</dc:date>
    </item>
  </channel>
</rss>

