<?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 an application auto-create an HTTP event collector? upon setup perhaps? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-an-application-auto-create-an-HTTP-event-collector-upon/m-p/258937#M49707</link>
    <description>&lt;P&gt;Heres a good starting point:  &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/RESTREF/RESTprolog"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/RESTREF/RESTprolog&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 31 Jan 2016 16:06:00 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2016-01-31T16:06:00Z</dc:date>
    <item>
      <title>Can an application auto-create an HTTP event collector? upon setup perhaps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-an-application-auto-create-an-HTTP-event-collector-upon/m-p/258935#M49705</link>
      <description>&lt;P&gt;Can an application auto-create an HTTP event collector? upon setup perhaps?&lt;BR /&gt;
I noticed that they are listed in their own app's input.conf (splunk__httpinput).&lt;/P&gt;

&lt;P&gt;I suppose I would need a setup script, and have that script use CLI and/or cUrl and setup the collector.&lt;BR /&gt;
Is there an example of such a script? preferably, one that checks for Splunk version, and does not attempt it if not 6.3.x&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2016 09:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-an-application-auto-create-an-HTTP-event-collector-upon/m-p/258935#M49705</guid>
      <dc:creator>ramabu</dc:creator>
      <dc:date>2016-01-31T09:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can an application auto-create an HTTP event collector? upon setup perhaps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-an-application-auto-create-an-HTTP-event-collector-upon/m-p/258936#M49706</link>
      <description>&lt;P&gt;It can be done via api calls using curl or other http tools.  I'll give you the steps, you can do the work and help you develop it too.  I just need to know if you'll "hard code" the user/password or if it needs to be encrypted.  Also if you understand Python or prefer bash, etc.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2016 16:00:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-an-application-auto-create-an-HTTP-event-collector-upon/m-p/258936#M49706</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-01-31T16:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can an application auto-create an HTTP event collector? upon setup perhaps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-an-application-auto-create-an-HTTP-event-collector-upon/m-p/258937#M49707</link>
      <description>&lt;P&gt;Heres a good starting point:  &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/RESTREF/RESTprolog"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/RESTREF/RESTprolog&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2016 16:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-an-application-auto-create-an-HTTP-event-collector-upon/m-p/258937#M49707</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-01-31T16:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can an application auto-create an HTTP event collector? upon setup perhaps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-an-application-auto-create-an-HTTP-event-collector-upon/m-p/258938#M49708</link>
      <description>&lt;P&gt;After reading the prolog above check out the /data/input endpoints here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/RESTREF/RESTlist#DLOC"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/RESTREF/RESTlist#DLOC&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2016 16:08:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-an-application-auto-create-an-HTTP-event-collector-upon/m-p/258938#M49708</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-01-31T16:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can an application auto-create an HTTP event collector? upon setup perhaps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-an-application-auto-create-an-HTTP-event-collector-upon/m-p/258939#M49709</link>
      <description>&lt;P&gt;@ramabu you can use our CLI to do this or curl.&lt;/P&gt;

&lt;P&gt;For the CLI see &lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE7D"&gt;here&lt;/A&gt;. Using this command: &lt;CODE&gt;splunk http-event-collector enable -uri&lt;/CODE&gt; will work. Using the CLI you can also manage tokens, or even send events.&lt;/P&gt;

&lt;P&gt;You can also use curl against our &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/RESTREF/RESTinputExamples#data.2Finputs.2Fhttp_POST"&gt;data/inputs/http&lt;/A&gt; endpoint sending disabled=0&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -u admin:pass &lt;A href="https://localhost:8089/servicesNS/nobody/search/data/inputs/http" target="test_blank"&gt;https://localhost:8089/servicesNS/nobody/search/data/inputs/http&lt;/A&gt; -d disabled=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 14 Feb 2016 04:34:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-an-application-auto-create-an-HTTP-event-collector-upon/m-p/258939#M49709</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-02-14T04:34:31Z</dc:date>
    </item>
  </channel>
</rss>

