<?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: Could I use REST API to create a monitor input from the script of a modular input? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Could-I-use-REST-API-to-create-a-monitor-input-from-the-script/m-p/122824#M9521</link>
    <description>&lt;P&gt;Thanks for your answer. I reviewed my question and I think I did not describe it clearly, so I rewrote it. Could you check it again?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2014 05:02:40 GMT</pubDate>
    <dc:creator>lzhang_soliton</dc:creator>
    <dc:date>2014-02-13T05:02:40Z</dc:date>
    <item>
      <title>Could I use REST API to create a monitor input from the script of a modular input?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Could-I-use-REST-API-to-create-a-monitor-input-from-the-script/m-p/122822#M9519</link>
      <description>&lt;P&gt;For creating a monitor input of our product, our customers have to type correct sourcetype and complex regular expression for whitelist. We want to create a simplified UI by using Modular Input. In the script a monitor input will be made automatically as same as adding it manually.&lt;BR /&gt;
Could you tell me that is a good idea or bad one?&lt;BR /&gt;
Even if our customers have correct permission, we are not sure if authentication tokens are necessary in the script. &lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2014 09:28:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Could-I-use-REST-API-to-create-a-monitor-input-from-the-script/m-p/122822#M9519</guid>
      <dc:creator>lzhang_soliton</dc:creator>
      <dc:date>2014-01-23T09:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Could I use REST API to create a monitor input from the script of a modular input?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Could-I-use-REST-API-to-create-a-monitor-input-from-the-script/m-p/122823#M9520</link>
      <description>&lt;P&gt;Sure you can. Splunk does this type of thing to aid in the install-time experience for some of our premium apps. Also consider that Splunk Web is built on top of the REST API itself. Start with a POST to &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTinput#POST_data.2Finputs.2Fmonitor"&gt;data/inputs/monitor&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;As to the authority question, the user executing the actions would have to have the correct permission in Splunk.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 17:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Could-I-use-REST-API-to-create-a-monitor-input-from-the-script/m-p/122823#M9520</guid>
      <dc:creator>halr9000</dc:creator>
      <dc:date>2014-02-12T17:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Could I use REST API to create a monitor input from the script of a modular input?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Could-I-use-REST-API-to-create-a-monitor-input-from-the-script/m-p/122824#M9521</link>
      <description>&lt;P&gt;Thanks for your answer. I reviewed my question and I think I did not describe it clearly, so I rewrote it. Could you check it again?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 05:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Could-I-use-REST-API-to-create-a-monitor-input-from-the-script/m-p/122824#M9521</guid>
      <dc:creator>lzhang_soliton</dc:creator>
      <dc:date>2014-02-13T05:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Could I use REST API to create a monitor input from the script of a modular input?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Could-I-use-REST-API-to-create-a-monitor-input-from-the-script/m-p/122825#M9522</link>
      <description>&lt;P&gt;Using Modular Inputs as a proxy just for creating a Monitor Input is a bit of a hack , and limiting what you can do in the UI.&lt;BR /&gt;
Have you considered using the &lt;A href="http://dev.splunk.com/view/web-framework/SP-CAAAER6"&gt;Web Framework&lt;/A&gt; and building a custom setup page for your Monitor Inputs (with you simplified approach). Your custom setup page could have whatever JS/HTML/CSS you want to provide your simpler experience for your users , and then you could have some &lt;A href="http://dev.splunk.com/view/SP-CAAAEMP"&gt;Django serverside logic&lt;/A&gt; for your setup page that uses the Splunk REST API to create the Monitor Input stanza for you.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 07:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Could-I-use-REST-API-to-create-a-monitor-input-from-the-script/m-p/122825#M9522</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2014-02-13T07:26:06Z</dc:date>
    </item>
  </channel>
</rss>

