<?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 How to disable/enable db connect inputs via REST? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-disable-enable-db-connect-inputs-via-REST/m-p/603057#M10665</link>
    <description>&lt;P&gt;I have a db connect input that I want to programatically activate and deactivate.&lt;BR /&gt;Following some docs I came up with this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -H "authorization: Splunk XXXX" https://localhost:8089/servicesNS/nobody/splunk_app_db_connect/configs/conf-db_inputs/SIP_CAMIO_AUDIT_IN -d "disabled=1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However db connect seems to ignore the change and keeps indexing data. Unless I access the /en-US/debug/refresh URL and manually refresh the whole server.&lt;BR /&gt;&lt;BR /&gt;I decided to do a test and the following cURL works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -H "authorization: Splunk XXXX" https://localhost:8089/servicesNS/nobody/Admin_Tools/configs/conf-macros/test_rest -d "disabled=1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I disable/enable db connect inputs through REST?&lt;BR /&gt;Why does db_connect ignore conf updates through REST?&lt;BR /&gt;&lt;BR /&gt;Edit:&lt;BR /&gt;I've tried accessing the following endpoint without luck aswell&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -H "authorization: Splunk XXXX" -X POST https://localhost:8089/servicesNS/nobody/splunk_app_db_connect/configs/conf-db_inputs/_reload&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 18:21:06 GMT</pubDate>
    <dc:creator>falcalde</dc:creator>
    <dc:date>2022-06-23T18:21:06Z</dc:date>
    <item>
      <title>How to disable/enable db connect inputs via REST?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-disable-enable-db-connect-inputs-via-REST/m-p/603057#M10665</link>
      <description>&lt;P&gt;I have a db connect input that I want to programatically activate and deactivate.&lt;BR /&gt;Following some docs I came up with this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -H "authorization: Splunk XXXX" https://localhost:8089/servicesNS/nobody/splunk_app_db_connect/configs/conf-db_inputs/SIP_CAMIO_AUDIT_IN -d "disabled=1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However db connect seems to ignore the change and keeps indexing data. Unless I access the /en-US/debug/refresh URL and manually refresh the whole server.&lt;BR /&gt;&lt;BR /&gt;I decided to do a test and the following cURL works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -H "authorization: Splunk XXXX" https://localhost:8089/servicesNS/nobody/Admin_Tools/configs/conf-macros/test_rest -d "disabled=1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I disable/enable db connect inputs through REST?&lt;BR /&gt;Why does db_connect ignore conf updates through REST?&lt;BR /&gt;&lt;BR /&gt;Edit:&lt;BR /&gt;I've tried accessing the following endpoint without luck aswell&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -H "authorization: Splunk XXXX" -X POST https://localhost:8089/servicesNS/nobody/splunk_app_db_connect/configs/conf-db_inputs/_reload&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 18:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-disable-enable-db-connect-inputs-via-REST/m-p/603057#M10665</guid>
      <dc:creator>falcalde</dc:creator>
      <dc:date>2022-06-23T18:21:06Z</dc:date>
    </item>
  </channel>
</rss>

