<?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: Sending data stream to POST receivers/stream endpoint in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Sending-data-stream-to-POST-receivers-stream-endpoint/m-p/20978#M197</link>
    <description>&lt;P&gt;Here is a very simple &lt;STRONG&gt;pseudo-code&lt;/STRONG&gt; example showing the Object Types :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Service service = Service.connect(...);
Index index = service.getIndexes().get("someindex");
Socket socket = index.attach();
OutputStream ostream = socket.getOutputStream();
Writer writerOut = new OutputStreamWriter(ostream, "UTF8");

//stream 10 events to Splunk
for (int i=0; i&amp;lt;10; i++) {
  writerOut.write("Some data I want to stream to Splunk");
}

writerOut.flush();
writerOut.close();
socket.close();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 06 Apr 2012 23:40:20 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2012-04-06T23:40:20Z</dc:date>
    <item>
      <title>Sending data stream to POST receivers/stream endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Sending-data-stream-to-POST-receivers-stream-endpoint/m-p/20977#M196</link>
      <description>&lt;P&gt;If i want to send the raw event text to the POST receivers/stream endpoint, the raw data is streamed in as OutputStream data type in Java?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2012 14:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Sending-data-stream-to-POST-receivers-stream-endpoint/m-p/20977#M196</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-04-06T14:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sending data stream to POST receivers/stream endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Sending-data-stream-to-POST-receivers-stream-endpoint/m-p/20978#M197</link>
      <description>&lt;P&gt;Here is a very simple &lt;STRONG&gt;pseudo-code&lt;/STRONG&gt; example showing the Object Types :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Service service = Service.connect(...);
Index index = service.getIndexes().get("someindex");
Socket socket = index.attach();
OutputStream ostream = socket.getOutputStream();
Writer writerOut = new OutputStreamWriter(ostream, "UTF8");

//stream 10 events to Splunk
for (int i=0; i&amp;lt;10; i++) {
  writerOut.write("Some data I want to stream to Splunk");
}

writerOut.flush();
writerOut.close();
socket.close();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Apr 2012 23:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Sending-data-stream-to-POST-receivers-stream-endpoint/m-p/20978#M197</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-04-06T23:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sending data stream to POST receivers/stream endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Sending-data-stream-to-POST-receivers-stream-endpoint/m-p/20979#M198</link>
      <description>&lt;P&gt;May i know which Logback appender should i use if i want to create new events using the Splunk's REST receivers endpoint if i'm using logback framework. because i went to make a custom basic appender for that? Is it socket appender?&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2012 10:11:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Sending-data-stream-to-POST-receivers-stream-endpoint/m-p/20979#M198</guid>
      <dc:creator>misteryuku</dc:creator>
      <dc:date>2012-04-07T10:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sending data stream to POST receivers/stream endpoint</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Sending-data-stream-to-POST-receivers-stream-endpoint/m-p/20980#M199</link>
      <description>&lt;P&gt;If your original question was answered it would be good if you could start  "accepting" answers.&lt;BR /&gt;
It helps out splunkbase.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Apr 2012 06:09:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Sending-data-stream-to-POST-receivers-stream-endpoint/m-p/20980#M199</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-04-08T06:09:42Z</dc:date>
    </item>
  </channel>
</rss>

