<?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 config file checker? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11340#M96471</link>
    <description>&lt;P&gt;What if you want to examine the configurations specified in the $SPLUNK_HOME/etc/system/local directory?&lt;/P&gt;

&lt;P&gt;(and Thanks Dan!)&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2010 22:24:43 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2010-04-14T22:24:43Z</dc:date>
    <item>
      <title>Is there a config file checker?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11338#M96469</link>
      <description>&lt;P&gt;If there isn't, how do I find the errors in my configuration files?  What index &amp;amp; search string should I use to find config file problems?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2010 22:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11338#M96469</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2010-04-13T22:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a config file checker?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11339#M96470</link>
      <description>&lt;P&gt;I'm not aware of any config validation tool (for typos and such). The closest thing is the CLI btool command, which is documented here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Troubleshooting/Usebtooltotroubleshootconfigurations" rel="nofollow"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Troubleshooting/Usebtooltotroubleshootconfigurations&lt;/A&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
  &lt;H2&gt;&lt;STRONG&gt;Troubleshooting configurations&lt;/STRONG&gt;&lt;/H2&gt;
  
  &lt;P&gt;Splunk's configuration file system
  supports many overlapping
  configuration files in many different
  locations. How these configuration
  files interact with and take
  precedence over one another is
  described in "Configuration file
  precedence" in this manual. Sometimes
  the price of this level of flexibility
  is that figuring out which value for
  which configuration option is being
  used in your Splunk installation.&lt;/P&gt;
  
  &lt;P&gt;Splunk provides a command line tool
  you can use to help troubleshoot
  issues with your configuration files,
  or just see what values are being used
  by your Splunk installation.&lt;/P&gt;
  
  &lt;P&gt;The command line tool is called btool.
  You can run btool for a given App in
  your Splunk installation, and it will
  list out all the configuration options
  that are currently in use by that App
  for a given configuration file.&lt;/P&gt;
  
  &lt;P&gt;To run btool, go to $SPLUNK_HOME/bin
  and type:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk cmd btool App_name list prefix
&lt;/CODE&gt;&lt;/PRE&gt;
  
  &lt;P&gt;where App_name is the name of the App
  you want to see the configurations for
  and prefix is the name of the config
  file you're interested in without the
  .conf extension. list indicates that
  you want to list the options. btool
  supports changing configuration files
  as well, but Splunk does not recommend
  you use btool this way without
  discussing it with the Splunk Support
  team.&lt;/P&gt;
  
  &lt;P&gt;So for example, if you want to know
  what configuration options are being
  used in props.conf by the Search App,
  you'd specify the Search App and
  props.conf in your btool string like
  so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk cmd btool Search list [props]
&lt;/CODE&gt;&lt;/PRE&gt;
  
  &lt;P&gt;and would see a list of the props.conf
  settings currently being used for the
  Search App.&lt;/P&gt;
  
  &lt;P&gt;You can then save this list to a file
  and examine it.&lt;/P&gt;
  
  &lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; btool is not tested by Splunk
  and is not officially supported or
  guaranteed. That said, this is what
  our Support team uses when trying to
  troubleshoot your issues.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 13 Apr 2010 22:12:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11339#M96470</guid>
      <dc:creator>Dan</dc:creator>
      <dc:date>2010-04-13T22:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a config file checker?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11340#M96471</link>
      <description>&lt;P&gt;What if you want to examine the configurations specified in the $SPLUNK_HOME/etc/system/local directory?&lt;/P&gt;

&lt;P&gt;(and Thanks Dan!)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 22:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11340#M96471</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2010-04-14T22:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a config file checker?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11341#M96472</link>
      <description>&lt;P&gt;As of 4.2, there is a conf checker that runs on "splunk start". You can manually invoke it with the following command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk btool check
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any typos will be printed to stdout:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ cat $SPLUNK_HOME/etc/system/local/indexes.conf
[hello]
# This should be capitalized "homePath".
homepath = $SPLUNK_DB/hello/db

$ splunk btool check
Possible typo in stanza [hello] in /opt/splunk/etc/system/local/indexes.conf, line 3: homepath  =  $SPLUNK_DB/hello/db
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 May 2011 07:40:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11341#M96472</guid>
      <dc:creator>ewoo</dc:creator>
      <dc:date>2011-05-13T07:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a config file checker?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11342#M96473</link>
      <description>&lt;P&gt;I've voted this answer up but maybe Dan or someone with edit priv can combine the two as they are both using btool.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2011 21:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11342#M96473</guid>
      <dc:creator>BobM</dc:creator>
      <dc:date>2011-12-30T21:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a config file checker?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11343#M96474</link>
      <description>&lt;P&gt;Two new things:&lt;/P&gt;

&lt;P&gt;1 - Splunk now explicitly checks your configuration files (using btool) as part of the standard startup. So always check the Splunk messages at startup.&lt;/P&gt;

&lt;P&gt;2 - The SOS app (Splunk on Splunk) is very helpful for finding your configuration errors. Download it free from Splunkbase &lt;A href="http://splunk-base.splunk.com/apps/29008/sos-splunk-on-splunk"&gt;here&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2017 update&lt;/STRONG&gt; (because answers never die!)&lt;BR /&gt;
&lt;CODE&gt;btool&lt;/CODE&gt; is still a wonderful thing. But instead of the SOS app, use the built-in Splunk Monitoring Console. (It is newer and it is the offspring of the SOS app.)&lt;/P&gt;

&lt;P&gt;And, even in older versions of Splunk, remember that Splunk has its own internal logs, which it indexes into &lt;CODE&gt;_internal&lt;/CODE&gt;.&lt;BR /&gt;
So you can search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal error OR warn*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And see all the error messages that Splunk has logged. But if the problem means that Splunk was unable to index, you may need to examine the internal log files directly. splunkd.log is your friend. Use grep or findstr or some tool to find the errors and warnings.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2012 20:21:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-a-config-file-checker/m-p/11343#M96474</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-11-20T20:21:17Z</dc:date>
    </item>
  </channel>
</rss>

