<?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 Stream not logging as separate events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Stream-not-logging-as-separate-events/m-p/515917#M87346</link>
    <description>&lt;P&gt;Trying to send data to Splunk using 'services/receivers/stream', but data is not logged as separated event; instead its getting logged as one event.&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;HttpURLConnection huc = (HttpURLConnection)url.openConnection();&lt;/P&gt;&lt;P&gt;huc.setRequestProperty ("x-splunk-input-mode", "streaming");&lt;/P&gt;&lt;P&gt;huc.setRequestMethod("POST");&lt;BR /&gt;huc.setDoOutput(true);&lt;/P&gt;&lt;P&gt;String content = "abc";&lt;/P&gt;&lt;P&gt;huc.getOutputStream().write(content.getBytes());&lt;BR /&gt;huc.getOutputStream().flush();&lt;/P&gt;&lt;P&gt;content = "xyz";&lt;/P&gt;&lt;P&gt;huc.getOutputStream().write(content.getBytes());&lt;BR /&gt;huc.getOutputStream().flush();&lt;BR /&gt;huc.getOutputStream().close();&lt;/P&gt;</description>
    <pubDate>Tue, 25 Aug 2020 05:24:40 GMT</pubDate>
    <dc:creator>kamal87</dc:creator>
    <dc:date>2020-08-25T05:24:40Z</dc:date>
    <item>
      <title>Stream not logging as separate events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Stream-not-logging-as-separate-events/m-p/515917#M87346</link>
      <description>&lt;P&gt;Trying to send data to Splunk using 'services/receivers/stream', but data is not logged as separated event; instead its getting logged as one event.&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;HttpURLConnection huc = (HttpURLConnection)url.openConnection();&lt;/P&gt;&lt;P&gt;huc.setRequestProperty ("x-splunk-input-mode", "streaming");&lt;/P&gt;&lt;P&gt;huc.setRequestMethod("POST");&lt;BR /&gt;huc.setDoOutput(true);&lt;/P&gt;&lt;P&gt;String content = "abc";&lt;/P&gt;&lt;P&gt;huc.getOutputStream().write(content.getBytes());&lt;BR /&gt;huc.getOutputStream().flush();&lt;/P&gt;&lt;P&gt;content = "xyz";&lt;/P&gt;&lt;P&gt;huc.getOutputStream().write(content.getBytes());&lt;BR /&gt;huc.getOutputStream().flush();&lt;BR /&gt;huc.getOutputStream().close();&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 05:24:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Stream-not-logging-as-separate-events/m-p/515917#M87346</guid>
      <dc:creator>kamal87</dc:creator>
      <dc:date>2020-08-25T05:24:40Z</dc:date>
    </item>
  </channel>
</rss>

