<?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: Is there a list of the different Splunk CLI exit codes and their meaning? in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236244#M10117</link>
    <description>&lt;P&gt;Well anyone with Splunk installed can check their local &lt;CODE&gt;cli.py&lt;/CODE&gt; in &lt;CODE&gt;$SPLUNK_HOME/lib/python2.7/site-packages/splunk/clilib&lt;/CODE&gt; ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 20:45:26 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2018-06-21T20:45:26Z</dc:date>
    <item>
      <title>Is there a list of the different Splunk CLI exit codes and their meaning?</title>
      <link>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236240#M10113</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I know that the Splunk CLI does exit with different exit codes (4: invalid command, 22: communication error).&lt;BR /&gt;
Is there a list of different exit codes and their meaning? &lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 11:18:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236240#M10113</guid>
      <dc:creator>lweber</dc:creator>
      <dc:date>2015-11-16T11:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a list of the different Splunk CLI exit codes and their meaning?</title>
      <link>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236241#M10114</link>
      <description>&lt;P&gt;According to this 3 year old CLI source code, it's something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# return codes from this script
ERR_NOERR        = 0
ERR_NUMARGS      = 1
ERR_UNKNOWN      = 2
ERR_AUTH         = 3
ERR_ARG          = 4
ERR_DOTSPLUNK    = 5
ERR_VERSION      = 6
ERR_PIPE         = 7
ERR_STOP         = 21
ERR_SPLUNKD_DOWN = 22
ERR_NO_ENDPOINT  = 23
ERR_INVALID_STATUS_CODE = 24
ERR_AUTH_TOKEN_XML = 25
ERR_REST          = 26
ERR_SPLUNKD       = 27
ERR_SUCCESS       = 28
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Source: &lt;A href="https://github.com/edo17/splunk/blob/master/lib/python2.7/site-packages/splunk/clilib/cli.py"&gt;https://github.com/edo17/splunk/blob/master/lib/python2.7/site-packages/splunk/clilib/cli.py&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;How ever, I'm not sure if this is what you are actually looking for. I suppose in best case this is just out of date...&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 06:26:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236241#M10114</guid>
      <dc:creator>Sebastian2</dc:creator>
      <dc:date>2015-11-17T06:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a list of the different Splunk CLI exit codes and their meaning?</title>
      <link>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236242#M10115</link>
      <description>&lt;P&gt;Thank you from my side. In a current installation this still could be found under $SPLUNK_HOME/lib/python2.7/site-packages/splunk/clilib/cli.py - so at least the code seems to be current.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 12:35:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236242#M10115</guid>
      <dc:creator>rvany</dc:creator>
      <dc:date>2017-06-27T12:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a list of the different Splunk CLI exit codes and their meaning?</title>
      <link>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236243#M10116</link>
      <description>&lt;P&gt;FYI, the link you posted was removed due to a DMCA takedown. &lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 20:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236243#M10116</guid>
      <dc:creator>zanb</dc:creator>
      <dc:date>2018-06-21T20:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a list of the different Splunk CLI exit codes and their meaning?</title>
      <link>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236244#M10117</link>
      <description>&lt;P&gt;Well anyone with Splunk installed can check their local &lt;CODE&gt;cli.py&lt;/CODE&gt; in &lt;CODE&gt;$SPLUNK_HOME/lib/python2.7/site-packages/splunk/clilib&lt;/CODE&gt; ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 20:45:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236244#M10117</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-06-21T20:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a list of the different Splunk CLI exit codes and their meaning?</title>
      <link>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236245#M10118</link>
      <description>&lt;P&gt;Ok, so thanks to user "MuS" I was able to find the exit statuses under &lt;CODE&gt;$SPLUNK_HOME/lib/python2.7/site-packages/splunk/clilib/cli.py&lt;/CODE&gt; and to confirm, these are the exit codes for the Splunk command line tool:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ERR_NOERR        = 0
ERR_NUMARGS      = 1
ERR_UNKNOWN      = 2
ERR_AUTH         = 3
ERR_ARG          = 4
ERR_DOTSPLUNK    = 5
ERR_VERSION      = 6
ERR_PIPE         = 7
ERR_STOP         = 21
ERR_SPLUNKD_DOWN = 22
ERR_NO_ENDPOINT  = 23
ERR_INVALID_STATUS_CODE = 24
ERR_AUTH_TOKEN_XML = 25
ERR_REST          = 26
ERR_SPLUNKD       = 27
ERR_SUCCESS       = 28
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Every night, around 1AM, I'm seeing exit codes for different indexers (usually a different one every night) that exits with &lt;CODE&gt;8&lt;/CODE&gt; (which isn't defined!?), &lt;CODE&gt;7&lt;/CODE&gt; (there aren't any pipes being sent!?), &lt;CODE&gt;6&lt;/CODE&gt; (all versions are the same), and now &lt;CODE&gt;5&lt;/CODE&gt; (DOTSPLUNK?). Can anyone point me in a direction that would explain why the Splunk CLI would output these exit codes through a command (&lt;CODE&gt;$SPLUNK_HOME/bin/splunk status&lt;/CODE&gt;) that runs every 5 minutes, but only throws these errors around 1AM?&lt;/P&gt;

&lt;P&gt;I'm running the latest version of Splunk Enterprise on an array of different hosts in an isolated lab.&lt;/P&gt;

&lt;P&gt;Thank you! &lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 15:21:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Is-there-a-list-of-the-different-Splunk-CLI-exit-codes-and-their/m-p/236245#M10118</guid>
      <dc:creator>zanb</dc:creator>
      <dc:date>2018-06-26T15:21:46Z</dc:date>
    </item>
  </channel>
</rss>

