<?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: How to run btool as REST command or via Search GUI? in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453228#M3816</link>
    <description>&lt;P&gt;Also a great idea. But anyway to ensure the [stanza] can be attached to each item?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Feb 2019 15:27:55 GMT</pubDate>
    <dc:creator>koshyk</dc:creator>
    <dc:date>2019-02-05T15:27:55Z</dc:date>
    <item>
      <title>How to run btool as REST command or via Search GUI?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453224#M3812</link>
      <description>&lt;P&gt;We were looking to run btool on requirement basis for configs across whole of splunk cluster. It is not feasible to run via cmd line on individual servers. I had a plan to write it as an app and share it across all tiers, but just wanted to check if &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt; any REST endpoints for btool? (currently no mention in splunk docs)&lt;/LI&gt;
&lt;LI&gt;Can btool be run as an SPL ?  Any hint/ideas would be welcome.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;(I'm aware of &lt;A href="https://answers.splunk.com/answers/694707/is-there-a-way-to-run-cmd-btool-check-via-rest.html"&gt;https://answers.splunk.com/answers/694707/is-there-a-way-to-run-cmd-btool-check-via-rest.html&lt;/A&gt; , but that's same effort as writing an app across all tiers)&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 10:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453224#M3812</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-02-05T10:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to run btool as REST command or via Search GUI?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453225#M3813</link>
      <description>&lt;P&gt;Hi @koshyk &lt;/P&gt;

&lt;P&gt;I am pretty sure there is no rest api to get the output of btool. I wrote an app that runs btool on a servers and saves it to a file (it then commits the files to a git repository). you could pick apart my code to do what you want.  The app is here &lt;A href="https://splunkbase.splunk.com/app/4182/#/overview"&gt;https://splunkbase.splunk.com/app/4182/#/overview&lt;/A&gt;  and here is the lines of code you can use: &lt;A href="https://github.com/ChrisYounger/git_for_splunk/blob/master/bin/input_module_gitforsplunk.py#L51"&gt;https://github.com/ChrisYounger/git_for_splunk/blob/master/bin/input_module_gitforsplunk.py#L51&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope you find this helpful&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 11:38:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453225#M3813</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-05T11:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to run btool as REST command or via Search GUI?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453226#M3814</link>
      <description>&lt;P&gt;Much appreciated. Upvoted &lt;BR /&gt;
I was thinking of similar approach as an app myself, as I was thinking of making it more simple scripted input based approach. But quite painful for us to get into all tiers of huge splunk environment.&lt;/P&gt;

&lt;P&gt;Hopefully will wait for any other ideas and will accept in few days.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 14:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453226#M3814</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-02-05T14:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to run btool as REST command or via Search GUI?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453227#M3815</link>
      <description>&lt;P&gt;There is no btool endpoint, however you can access all of the configurations on the machine via the conf-file endpoints..&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://servername:mgmt/services/configs/conf-%7Bfile%7D"&gt;https://servername:mgmt/services/configs/conf-{file}&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;So you can do &lt;STRONG&gt;&lt;A href="https://localhost:8089/services/configs/conf-props"&gt;https://localhost:8089/services/configs/conf-props&lt;/A&gt;&lt;/STRONG&gt; or &lt;STRONG&gt;&lt;A href="https://localhost:8089/services/configs/conf-server"&gt;https://localhost:8089/services/configs/conf-server&lt;/A&gt;&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;Additionally you can do this via SPL..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest  splunk_server=local /services/configs/conf-props | transpose
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you do this in a distributed environment, be aware of you peers and adjust the &lt;STRONG&gt;splunk_server=&lt;/STRONG&gt; to the servers you want to collect the configs from.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 14:19:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453227#M3815</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2019-02-05T14:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to run btool as REST command or via Search GUI?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453228#M3816</link>
      <description>&lt;P&gt;Also a great idea. But anyway to ensure the [stanza] can be attached to each item?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 15:27:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453228#M3816</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-02-05T15:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to run btool as REST command or via Search GUI?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453229#M3817</link>
      <description>&lt;P&gt;What do you mean to each item?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453229#M3817</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2019-02-05T16:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to run btool as REST command or via Search GUI?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453230#M3818</link>
      <description>&lt;P&gt;The configuration errors are being recorded in splunkd_stdout.log with "Invalid key in stanza" during server restart. May be worth of getting this information from this log instead of running rest command. &lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 00:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/453230#M3818</guid>
      <dc:creator>badrinath_itrs</dc:creator>
      <dc:date>2020-01-20T00:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to run btool as REST command or via Search GUI?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/609964#M9094</link>
      <description>&lt;P&gt;esix_splunk's answer is great and use rest searches worked for us on-prem, however splunk cloud doesn't allow you to query the indexers, for some security reason. I'm pretty sure they wouldn't allow a scripted input running btool on the indexers either.&lt;/P&gt;&lt;P&gt;Someone at splunk recommended &lt;A href="https://splunkbase.splunk.com/app/6368/" target="_blank"&gt;https://splunkbase.splunk.com/app/6368/&lt;/A&gt; and we had no trouble getting it installed on cloud and it's working well for us. Not sure how it does it but it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 10:49:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/609964#M9094</guid>
      <dc:creator>gabriel_vasseur</dc:creator>
      <dc:date>2022-08-18T10:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to run btool as REST command or via Search GUI?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/610115#M9097</link>
      <description>&lt;P&gt;If you want download&amp;nbsp; the app config explorer in that you can run such things like btool and other things on UI&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Be generous and leave a like if it helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 11:14:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-btool-as-REST-command-or-via-Search-GUI/m-p/610115#M9097</guid>
      <dc:creator>Siddharth</dc:creator>
      <dc:date>2022-08-19T11:14:40Z</dc:date>
    </item>
  </channel>
</rss>

