<?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: Using btool command in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294493#M2741</link>
    <description>&lt;P&gt;is the hostname is a splunk instance?&lt;BR /&gt;
if not, why would a hostname will be in your .conf files? &lt;BR /&gt;
i think that the btool command has to identify a .conf file (and an app if needed) but can not be ran "global" per-se&lt;BR /&gt;
with that being said, you can ran the command :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk cmd btool &amp;lt;conf_file_prefix&amp;gt; list | grep abc.com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps a little&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2017 11:45:30 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2017-08-18T11:45:30Z</dc:date>
    <item>
      <title>Using btool command</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294492#M2740</link>
      <description>&lt;P&gt;Using btool command i want to check all the conf file or get a list of all conf files where my xyz host entry is present . for example my host name is  abc.com and in that splunk is running so using btool i need to check all conf file where entry of abc.com is present . Anyone please provide btool cmd syntax for this.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 11:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294492#M2740</guid>
      <dc:creator>kannu</dc:creator>
      <dc:date>2017-08-18T11:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using btool command</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294493#M2741</link>
      <description>&lt;P&gt;is the hostname is a splunk instance?&lt;BR /&gt;
if not, why would a hostname will be in your .conf files? &lt;BR /&gt;
i think that the btool command has to identify a .conf file (and an app if needed) but can not be ran "global" per-se&lt;BR /&gt;
with that being said, you can ran the command :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk cmd btool &amp;lt;conf_file_prefix&amp;gt; list | grep abc.com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps a little&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 11:45:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294493#M2741</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-08-18T11:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using btool command</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294494#M2742</link>
      <description>&lt;P&gt;since btool requires the conf file prefix, do this instead:&lt;/P&gt;

&lt;P&gt;For Linux (bash):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; for file in 'find /opt/splunk -type f -name "*.conf"'; do echo $file; grep abc.com $file;done
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For Windows (powershell):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Get-ChildItem 'C:\Program Files\Splunk' -Recurse -ErrorAction SilentlyContinue | Where-Object {$_.Name -ilike "*.conf"} | Foreach-Object {Write-Host $_.FullName; Get-Content $_.FullName | Select-String -Pattern abc.com}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Remove "-ErrorAction SilentlyContinue" if you'd like to get permission denied errors on files your user doesnt have access to.&lt;/P&gt;

&lt;P&gt;Also, modify the paths as needed.  Your Splunk might be installed in different locations.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 18:19:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294494#M2742</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-08-18T18:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using btool command</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294495#M2743</link>
      <description>&lt;P&gt;Hi adonio ,&lt;/P&gt;

&lt;P&gt;thank you for the quick reply&lt;/P&gt;

&lt;P&gt;actually yes that hostname is running the splunk instance and currently working as indexer for my distributed env setup&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 09:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294495#M2743</guid>
      <dc:creator>kannu</dc:creator>
      <dc:date>2017-08-21T09:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using btool command</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294496#M2744</link>
      <description>&lt;P&gt;Hi jkat54,&lt;/P&gt;

&lt;P&gt;I need to check in all configrations file only,  Btool will help .&lt;BR /&gt;
Please provide btool expression.&lt;/P&gt;

&lt;P&gt;And thank you for the quick reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 10:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294496#M2744</guid>
      <dc:creator>kannu</dc:creator>
      <dc:date>2017-08-21T10:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using btool command</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294497#M2745</link>
      <description>&lt;P&gt;Again, btool will not check in ALL configs.  &lt;/P&gt;

&lt;P&gt;Syntax is as follows&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk btool &amp;lt;configFileName&amp;gt; list --debug
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You cannot use a wildcard like this:&lt;/P&gt;

&lt;P&gt;./splunk btool * list --debug&lt;/P&gt;

&lt;P&gt;It doesn't work.  So I have provided you with how to do what you want (not using btool).&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:10:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294497#M2745</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-08-21T11:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using btool command</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294498#M2746</link>
      <description>&lt;P&gt;@jkat54 provided you a valid answer imho&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 12:13:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Using-btool-command/m-p/294498#M2746</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-08-21T12:13:20Z</dc:date>
    </item>
  </channel>
</rss>

