<?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: Can you make .conf changes with the rest API? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-make-conf-changes-with-the-rest-API/m-p/434928#M75912</link>
    <description>&lt;P&gt;@Log_wrangler,&lt;/P&gt;

&lt;P&gt;You can edit conf with rest API&lt;/P&gt;

&lt;P&gt;For e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass &lt;A href="https://localhost:8089/servicesNS/nobody/search/configs/conf-props" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/search/configs/conf-props&lt;/A&gt; \
    -d name=myweblogs \
    -d CHARSET=UTF-8 \
    -d SHOULD_LINEMERGE=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the above, if the stanza &lt;CODE&gt;myweblogs&lt;/CODE&gt; does not exist, then it creates a new one and if it exists, it updates it with the value you provided.&lt;/P&gt;

&lt;P&gt;Detailed documentation is available in &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTTUT/RESTconfigurations"&gt;http://docs.splunk.com/Documentation/Splunk/latest/RESTTUT/RESTconfigurations&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 16:46:51 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2018-08-29T16:46:51Z</dc:date>
    <item>
      <title>Can you make .conf changes with the rest API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-make-conf-changes-with-the-rest-API/m-p/434926#M75910</link>
      <description>&lt;P&gt;Has anyone used the rest API to successfully edit a conf file?  &lt;/P&gt;

&lt;P&gt;I understand there are 3 methods GET, POST, DELETE.&lt;BR /&gt;
I understand one can manipulate searches but I am unfamiliar with managing objects and configurations with the API.&lt;/P&gt;

&lt;P&gt;Any advice or examples would be awesome.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-make-conf-changes-with-the-rest-API/m-p/434926#M75910</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-08-29T16:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can you make .conf changes with the rest API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-make-conf-changes-with-the-rest-API/m-p/434927#M75911</link>
      <description>&lt;P&gt;Hello, did you see this? &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.2/RESTREF/RESTprolog"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.2/RESTREF/RESTprolog&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:45:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-make-conf-changes-with-the-rest-API/m-p/434927#M75911</guid>
      <dc:creator>serjandrosov</dc:creator>
      <dc:date>2018-08-29T16:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can you make .conf changes with the rest API?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-make-conf-changes-with-the-rest-API/m-p/434928#M75912</link>
      <description>&lt;P&gt;@Log_wrangler,&lt;/P&gt;

&lt;P&gt;You can edit conf with rest API&lt;/P&gt;

&lt;P&gt;For e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u admin:pass &lt;A href="https://localhost:8089/servicesNS/nobody/search/configs/conf-props" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/search/configs/conf-props&lt;/A&gt; \
    -d name=myweblogs \
    -d CHARSET=UTF-8 \
    -d SHOULD_LINEMERGE=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the above, if the stanza &lt;CODE&gt;myweblogs&lt;/CODE&gt; does not exist, then it creates a new one and if it exists, it updates it with the value you provided.&lt;/P&gt;

&lt;P&gt;Detailed documentation is available in &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTTUT/RESTconfigurations"&gt;http://docs.splunk.com/Documentation/Splunk/latest/RESTTUT/RESTconfigurations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 16:46:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-make-conf-changes-with-the-rest-API/m-p/434928#M75912</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-08-29T16:46:51Z</dc:date>
    </item>
  </channel>
</rss>

