<?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 Why am I getting an error running my custom generating command locally on a search head with streaming=True? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-an-error-running-my-custom-generating-command/m-p/128453#M1843</link>
    <description>&lt;P&gt;My custom  GeneratingCommand command seems to break when trying set  command to local on a search head with &lt;STRONG&gt;streaming=True&lt;/STRONG&gt;. &lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
\@Configuration(streaming=True,local=True)&lt;BR /&gt;
class mycustomcommand(GeneratingCommand):&lt;BR /&gt;
    """&lt;BR /&gt;
        Class used to generate stream data from remote system&lt;BR /&gt;
    """&lt;BR /&gt;
    jql = Option(&lt;BR /&gt;
        doc='''&lt;STRONG&gt;Syntax:&lt;/STRONG&gt; &lt;STRONG&gt;jql=&lt;/STRONG&gt;&lt;EM&gt;&lt;STRING&gt;&lt;/STRING&gt;&lt;/EM&gt;&lt;BR /&gt;
         &lt;STRONG&gt;Description:&lt;/STRONG&gt; JQL query string ''')&lt;BR /&gt;
    maxresults = Option(&lt;BR /&gt;
        doc='''&lt;STRONG&gt;Syntax:&lt;/STRONG&gt; &lt;STRONG&gt;maxresults=&lt;/STRONG&gt;&lt;EM&gt;&lt;INT&gt;&lt;/INT&gt;&lt;/EM&gt;&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
Command works on stand-alone instance, but fails when adding *&lt;EM&gt;streaming=True&lt;/EM&gt;. &lt;/P&gt;

&lt;P&gt;Looking for assistance.&lt;/P&gt;

&lt;P&gt;Python SDK Version 1.3.0&lt;BR /&gt;
Splunk 6.2&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;BR /&gt;
11-20-2014 16:02:54.808 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':  Traceback (most recent call last):&lt;BR /&gt;
11-20-2014 16:02:54.808 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':    File "$SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py", line 74, in &lt;BR /&gt;
11-20-2014 16:02:54.808 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':      class mycustomcommandCommand(GeneratingCommand):&lt;BR /&gt;
11-20-2014 16:02:54.808 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':    File "$SPLUNK_HOME/etc/apps/zcommands/bin/splunklib/searchcommands/decorators.py", line 60, in &lt;STRONG&gt;call&lt;/STRONG&gt;&lt;BR /&gt;
11-20-2014 16:02:54.809 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':      settings=self.settings)&lt;BR /&gt;
11-20-2014 16:02:54.809 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':    File "$SPLUNK_HOME/etc/apps/zcommands/bin/splunklib/searchcommands/search_command_internals.py", line 65, in &lt;STRONG&gt;init&lt;/STRONG&gt;&lt;BR /&gt;
11-20-2014 16:02:54.809 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':      'The value of configuration setting %s is managed' % name)&lt;BR /&gt;
11-20-2014 16:02:54.809 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':  AttributeError: The value of configuration setting streaming is managed&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:13:36 GMT</pubDate>
    <dc:creator>bmacias84</dc:creator>
    <dc:date>2020-09-28T18:13:36Z</dc:date>
    <item>
      <title>Why am I getting an error running my custom generating command locally on a search head with streaming=True?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-an-error-running-my-custom-generating-command/m-p/128453#M1843</link>
      <description>&lt;P&gt;My custom  GeneratingCommand command seems to break when trying set  command to local on a search head with &lt;STRONG&gt;streaming=True&lt;/STRONG&gt;. &lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
\@Configuration(streaming=True,local=True)&lt;BR /&gt;
class mycustomcommand(GeneratingCommand):&lt;BR /&gt;
    """&lt;BR /&gt;
        Class used to generate stream data from remote system&lt;BR /&gt;
    """&lt;BR /&gt;
    jql = Option(&lt;BR /&gt;
        doc='''&lt;STRONG&gt;Syntax:&lt;/STRONG&gt; &lt;STRONG&gt;jql=&lt;/STRONG&gt;&lt;EM&gt;&lt;STRING&gt;&lt;/STRING&gt;&lt;/EM&gt;&lt;BR /&gt;
         &lt;STRONG&gt;Description:&lt;/STRONG&gt; JQL query string ''')&lt;BR /&gt;
    maxresults = Option(&lt;BR /&gt;
        doc='''&lt;STRONG&gt;Syntax:&lt;/STRONG&gt; &lt;STRONG&gt;maxresults=&lt;/STRONG&gt;&lt;EM&gt;&lt;INT&gt;&lt;/INT&gt;&lt;/EM&gt;&lt;BR /&gt;
&lt;/CODE&gt;&lt;BR /&gt;
Command works on stand-alone instance, but fails when adding *&lt;EM&gt;streaming=True&lt;/EM&gt;. &lt;/P&gt;

&lt;P&gt;Looking for assistance.&lt;/P&gt;

&lt;P&gt;Python SDK Version 1.3.0&lt;BR /&gt;
Splunk 6.2&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;BR /&gt;
11-20-2014 16:02:54.808 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':  Traceback (most recent call last):&lt;BR /&gt;
11-20-2014 16:02:54.808 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':    File "$SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py", line 74, in &lt;BR /&gt;
11-20-2014 16:02:54.808 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':      class mycustomcommandCommand(GeneratingCommand):&lt;BR /&gt;
11-20-2014 16:02:54.808 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':    File "$SPLUNK_HOME/etc/apps/zcommands/bin/splunklib/searchcommands/decorators.py", line 60, in &lt;STRONG&gt;call&lt;/STRONG&gt;&lt;BR /&gt;
11-20-2014 16:02:54.809 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':      settings=self.settings)&lt;BR /&gt;
11-20-2014 16:02:54.809 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':    File "$SPLUNK_HOME/etc/apps/zcommands/bin/splunklib/searchcommands/search_command_internals.py", line 65, in &lt;STRONG&gt;init&lt;/STRONG&gt;&lt;BR /&gt;
11-20-2014 16:02:54.809 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':      'The value of configuration setting %s is managed' % name)&lt;BR /&gt;
11-20-2014 16:02:54.809 ERROR ScriptRunner - stderr from '$SPLUNK_HOME/bin/python $SPLUNK_HOME/etc/apps/zcommands/bin/mycustomcommand.py &lt;STRONG&gt;GETINFO&lt;/STRONG&gt; jql="project=SPLK"':  AttributeError: The value of configuration setting streaming is managed&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-an-error-running-my-custom-generating-command/m-p/128453#M1843</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2020-09-28T18:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting an error running my custom generating command locally on a search head with streaming=True?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-an-error-running-my-custom-generating-command/m-p/128454#M1844</link>
      <description>&lt;P&gt;I believe this has something to do with search_command_internals.py.&lt;/P&gt;

&lt;P&gt;I was able to over come this issue by settings &lt;STRONG&gt;local=true&lt;/STRONG&gt; and &lt;STRONG&gt;streaming=true&lt;/STRONG&gt;  with the &lt;STRONG&gt;commands.conf.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:14:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-am-I-getting-an-error-running-my-custom-generating-command/m-p/128454#M1844</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2020-09-28T18:14:42Z</dc:date>
    </item>
  </channel>
</rss>

