<?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 do you reload config files via the CLI or REST API? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/424647#M74473</link>
    <description>&lt;P&gt;I've found a way to do it via CLI but I'd prefer an API way, because why am I using the API at this point if I'm just doing things via the CLI?&lt;/P&gt;

&lt;P&gt;Anyways, for input files this refreshes them:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk reload monitor
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are more for things such as indexes if you type "./splunk help reload" &lt;/P&gt;</description>
    <pubDate>Wed, 30 May 2018 21:14:30 GMT</pubDate>
    <dc:creator>thisissplunk</dc:creator>
    <dc:date>2018-05-30T21:14:30Z</dc:date>
    <item>
      <title>How do you reload config files via the CLI or REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/424646#M74472</link>
      <description>&lt;P&gt;I need to do the equivalent of this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://oursplnkserver.com/en-GB/debug/refresh?entity=admin/conf-inputs" target="test_blank"&gt;https://oursplnkserver.com/en-GB/debug/refresh?entity=admin/conf-inputs&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;before I use the rest api to check for input stanzas like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://oursplunkserver.com:8089/services/configs/inputs?output_mode=json&amp;amp;count=0" target="test_blank"&gt;https://oursplunkserver.com:8089/services/configs/inputs?output_mode=json&amp;amp;count=0&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The reason you and I would need to do this is to refresh the inputs so that we can list what actually sits in the config files. For instance, if you just went into the CLI to add an input stanza to inputs.conf and save it, IT WILL NOT SHOW UP IN THE REST API CALL!&lt;/P&gt;

&lt;P&gt;So my solution was to refresh the configs first, but there seems to be no automated way to do this! For the debug/refresh page, you must click on a button. &lt;/P&gt;

&lt;P&gt;Is there a way to achieve this via the CLI or api? I saw "reload deploy-server" suggested in other answers but that does not work.&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 20:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/424646#M74472</guid>
      <dc:creator>thisissplunk</dc:creator>
      <dc:date>2018-05-30T20:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reload config files via the CLI or REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/424647#M74473</link>
      <description>&lt;P&gt;I've found a way to do it via CLI but I'd prefer an API way, because why am I using the API at this point if I'm just doing things via the CLI?&lt;/P&gt;

&lt;P&gt;Anyways, for input files this refreshes them:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk reload monitor
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are more for things such as indexes if you type "./splunk help reload" &lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 21:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/424647#M74473</guid>
      <dc:creator>thisissplunk</dc:creator>
      <dc:date>2018-05-30T21:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reload config files via the CLI or REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/424648#M74474</link>
      <description>&lt;P&gt;Just to add this, you can refresh the entitities without explicitly hitting the endpoint, you can do so by CLI from the below command:&lt;BR /&gt;
curl -u admin: -X POST http://:8089/servicesNS/-/-/admin/transforms-reload/_reload&lt;/P&gt;

&lt;P&gt;above is an example of reloading the transforms entity, but in a similar way, you can do reload for other entities as well.&lt;/P&gt;

&lt;P&gt;a list of all entities is as below:&lt;/P&gt;

&lt;P&gt;Refreshing admin/conf-times             OK&lt;BR /&gt;
Refreshing data/ui/manager              OK&lt;BR /&gt;
Refreshing data/ui/nav                  OK&lt;BR /&gt;
Refreshing data/ui/views                OK&lt;BR /&gt;
Refreshing admin/alert_actions          OK&lt;BR /&gt;
Refreshing admin/applicense                SplunkdConnectionException Splunkd daemon is not responding: ("Error connecting to /servicesNS/nobody/search/admin/applicense/_reload: ('The read operation timed out',)",)&lt;BR /&gt;
Refreshing admin/clusterconfig          OK&lt;BR /&gt;
Refreshing admin/collections-conf       OK&lt;BR /&gt;
Refreshing admin/commandsconf           OK&lt;BR /&gt;
Refreshing admin/conf-checklist         OK&lt;BR /&gt;
Refreshing admin/conf-deploymentclient  OK&lt;BR /&gt;
Refreshing admin/conf-inputs            OK&lt;BR /&gt;
Refreshing admin/conf-times             OK&lt;BR /&gt;
Refreshing admin/conf-wmi               OK&lt;BR /&gt;
Refreshing admin/cooked                 OK&lt;BR /&gt;
Refreshing admin/crl                       ResourceNotFound Invalid action for this internal handler (handler: crl, supported: list|_reload, wanted: list).&lt;BR /&gt;
Refreshing admin/datamodel-files        OK&lt;BR /&gt;
Refreshing admin/datamodelacceleration  OK&lt;BR /&gt;
Refreshing admin/datamodeledit          OK&lt;BR /&gt;
Refreshing admin/dataset_consolidation_datamodeleditOK&lt;BR /&gt;
Refreshing admin/deploymentserver       OK&lt;BR /&gt;
Refreshing admin/distsearch-peer        OK&lt;BR /&gt;
Refreshing admin/eventtypes             OK&lt;BR /&gt;
Refreshing admin/fields                 OK&lt;BR /&gt;
Refreshing admin/fifo                   OK&lt;BR /&gt;
Refreshing admin/fvtags                 OK&lt;BR /&gt;
Refreshing admin/http                   OK&lt;BR /&gt;
Refreshing admin/indexer-discovery-configOK&lt;BR /&gt;
Refreshing admin/indexes                OK&lt;BR /&gt;
Refreshing admin/limits                 OK&lt;BR /&gt;
Refreshing admin/livetail               OK&lt;BR /&gt;
Refreshing admin/localapps              OK&lt;BR /&gt;
Refreshing admin/lookup-table-files     OK&lt;BR /&gt;
Refreshing admin/macros                 OK&lt;BR /&gt;
Refreshing admin/manager                OK&lt;BR /&gt;
Refreshing admin/messages-conf          OK&lt;BR /&gt;
Refreshing admin/modalerts              OK&lt;BR /&gt;
Refreshing admin/monitor                OK&lt;BR /&gt;
Refreshing admin/nav                    OK&lt;BR /&gt;
Refreshing admin/panels                 OK&lt;BR /&gt;
Refreshing admin/passwords              OK&lt;BR /&gt;
Refreshing admin/pools                  OK&lt;BR /&gt;
Refreshing admin/proxysettings          OK&lt;BR /&gt;
Refreshing admin/quickstart             OK&lt;BR /&gt;
Refreshing admin/raw                    OK&lt;BR /&gt;
Refreshing admin/remote_eventlogs       OK&lt;BR /&gt;
Refreshing admin/remote_indexes            BadRequest The following required arguments are missing: repositoryLocation.&lt;BR /&gt;
Refreshing admin/remote_monitor         OK&lt;BR /&gt;
Refreshing admin/remote_perfmon         OK&lt;BR /&gt;
Refreshing admin/remote_raw             OK&lt;BR /&gt;
Refreshing admin/remote_script          OK&lt;BR /&gt;
Refreshing admin/remote_udp             OK&lt;BR /&gt;
Refreshing admin/savedsearch            OK&lt;BR /&gt;
Refreshing admin/scheduledviews         OK&lt;BR /&gt;
Refreshing admin/script                 OK&lt;BR /&gt;
Refreshing admin/search-head-bundles    OK&lt;BR /&gt;
Refreshing admin/serverclasses          OK&lt;BR /&gt;
Refreshing admin/shclusterconfig        OK&lt;BR /&gt;
Refreshing admin/sourcetypes            OK&lt;BR /&gt;
Refreshing admin/splunktcptoken         OK&lt;BR /&gt;
Refreshing admin/ssl                    OK&lt;BR /&gt;
Refreshing admin/syslog                 OK&lt;BR /&gt;
Refreshing admin/tcpout-default         OK&lt;BR /&gt;
Refreshing admin/tcpout-group           OK&lt;BR /&gt;
Refreshing admin/tcpout-server          OK&lt;BR /&gt;
Refreshing admin/telemetry              OK&lt;BR /&gt;
Refreshing admin/transforms-extract     OK&lt;BR /&gt;
Refreshing admin/transforms-lookup      OK&lt;BR /&gt;
Refreshing admin/transforms-reload      OK&lt;BR /&gt;
Refreshing admin/udp                    OK&lt;BR /&gt;
Refreshing admin/ui-prefs               OK&lt;BR /&gt;
Refreshing admin/ui-tour                OK&lt;BR /&gt;
Refreshing admin/views                  OK&lt;BR /&gt;
Refreshing admin/viewstates             OK&lt;BR /&gt;
Refreshing admin/vix-indexes            OK&lt;BR /&gt;
Refreshing admin/vix-providers          OK&lt;BR /&gt;
Refreshing admin/workflow-actions       OK&lt;BR /&gt;
DONE&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:21:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/424648#M74474</guid>
      <dc:creator>vsingla1</dc:creator>
      <dc:date>2020-09-29T21:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reload config files via the CLI or REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/639826#M109242</link>
      <description>&lt;P&gt;Do we have something similar for Splunk cloud?&lt;/P&gt;&lt;P&gt;Is there option to do debug/refresh in Splunk cloud via ACS?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 16:12:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/639826#M109242</guid>
      <dc:creator>inderjot</dc:creator>
      <dc:date>2023-04-13T16:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reload config files via the CLI or REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/639979#M109256</link>
      <description>&lt;P&gt;You can schedule a cron job to do this.&lt;BR /&gt;You can also schedule a search using this app:&lt;BR /&gt;&lt;A href="https://splunkbase.splunk.com/app/1871" target="_blank"&gt;https://splunkbase.splunk.com/app/1871&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 18:16:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/639979#M109256</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-14T18:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you reload config files via the CLI or REST API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/640349#M109287</link>
      <description>&lt;P&gt;This doesn't seem to work for clearing the scripts cache ($SPLUNK_API/servicesNS/-/-/admin/script/_reload). It's not equivalent to $SPLUNK_WEB/en-US/debug/refresh?entity=admin/script.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 12:56:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-reload-config-files-via-the-CLI-or-REST-API/m-p/640349#M109287</guid>
      <dc:creator>spunk_enthusias</dc:creator>
      <dc:date>2023-04-18T12:56:20Z</dc:date>
    </item>
  </channel>
</rss>

