<?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: Splunk API comparison to btool command in Security</title>
    <link>https://community.splunk.com/t5/Security/Splunk-API-comparison-to-btool-command/m-p/478929#M11052</link>
    <description>&lt;P&gt;So, if in case I have a monitor stanza which monitors a file [monitor:///abc/syslog/xyz/*.log] and this monitor is enabled as in if there was a .log file present under the xyz directory splunk would be monitoring this file. &lt;/P&gt;

&lt;P&gt;This monitor shows up in the  btool as this is the run time config that is currently running on the instance.&lt;/P&gt;

&lt;P&gt;This monitor should also show up in the rest query..I am hoping to see this config using rest calls.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Apr 2020 01:27:28 GMT</pubDate>
    <dc:creator>rohitmaheshwari</dc:creator>
    <dc:date>2020-04-23T01:27:28Z</dc:date>
    <item>
      <title>Splunk API comparison to btool command</title>
      <link>https://community.splunk.com/t5/Security/Splunk-API-comparison-to-btool-command/m-p/478927#M11050</link>
      <description>&lt;P&gt;I am using Splunk version 7.3.2.&lt;/P&gt;
&lt;P&gt;I am trying to find the runtime input configuration on a Splunk heavy forwarder using Rest API endpoint. &lt;BR /&gt;I have noticed a difference in results when accessing the input configuration on a heavy forwarder using btool in comparison to Splunk API endpoint.&lt;BR /&gt;Some of the monitoring input stanzas that appear on the Splunk instance when using btool are not part of the API call results.&lt;/P&gt;
&lt;P&gt;Rest API Call:&lt;BR /&gt;The Rest API call uses the ‘GET’ method to retrieve the configured inputs from the endpoint ‘&lt;A href="https://somethingishere:8089/services/data/inputs/monitor%E2%80%99" target="_blank"&gt;https://somethingishere:8089/services/data/inputs/monitor’&lt;/A&gt;.&lt;BR /&gt;The btool command:&lt;BR /&gt;Command used for ‘btool ‘ and filtered on the keyword syslog: &lt;BR /&gt;./splunk btool inputs list&lt;/P&gt;
&lt;P&gt;Is there an endpoint to capture the current running monitor input configurations?? ..or another way of doing this.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 17:36:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-API-comparison-to-btool-command/m-p/478927#M11050</guid>
      <dc:creator>rohitmaheshwari</dc:creator>
      <dc:date>2020-06-07T17:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk API comparison to btool command</title>
      <link>https://community.splunk.com/t5/Security/Splunk-API-comparison-to-btool-command/m-p/478928#M11051</link>
      <description>&lt;P&gt;Recall that btool shows the contents of the config files, which is not always what Splunk is currently running.  Output of btool is what Splunk will run the next time it restarts.&lt;/P&gt;

&lt;P&gt;The endpoint for capturing currently monitored inputs is what you already use - &lt;CODE&gt;services/data/inputs/monitor&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;There is also the CLI command &lt;CODE&gt;splunk list monitor&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:28:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-API-comparison-to-btool-command/m-p/478928#M11051</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-22T14:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk API comparison to btool command</title>
      <link>https://community.splunk.com/t5/Security/Splunk-API-comparison-to-btool-command/m-p/478929#M11052</link>
      <description>&lt;P&gt;So, if in case I have a monitor stanza which monitors a file [monitor:///abc/syslog/xyz/*.log] and this monitor is enabled as in if there was a .log file present under the xyz directory splunk would be monitoring this file. &lt;/P&gt;

&lt;P&gt;This monitor shows up in the  btool as this is the run time config that is currently running on the instance.&lt;/P&gt;

&lt;P&gt;This monitor should also show up in the rest query..I am hoping to see this config using rest calls.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 01:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-API-comparison-to-btool-command/m-p/478929#M11052</guid>
      <dc:creator>rohitmaheshwari</dc:creator>
      <dc:date>2020-04-23T01:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk API comparison to btool command</title>
      <link>https://community.splunk.com/t5/Security/Splunk-API-comparison-to-btool-command/m-p/478930#M11053</link>
      <description>&lt;P&gt;"This monitor shows up in the btool as this is the run time config that is currently running on the instance.&lt;BR /&gt;
"&lt;/P&gt;

&lt;P&gt;That is not correct, btool shows the filesystem level configuration, not the currently active configuration.&lt;BR /&gt;
Currently active configuration you can find via REST endpoints&lt;/P&gt;

&lt;P&gt;If you are unsure which endpoint either check the REST API docs or try &lt;A href="https://splunkbase.splunk.com/app/3696/"&gt;Config Quest&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 03:36:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-API-comparison-to-btool-command/m-p/478930#M11053</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-04-23T03:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk API comparison to btool command</title>
      <link>https://community.splunk.com/t5/Security/Splunk-API-comparison-to-btool-command/m-p/478931#M11054</link>
      <description>&lt;P&gt;Run the CLI command I mentioned.  It will tell you which files are being monitored.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 12:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-API-comparison-to-btool-command/m-p/478931#M11054</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-23T12:08:14Z</dc:date>
    </item>
  </channel>
</rss>

