<?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: Sourcetypes with Docker and HTTP Event Collector in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/631030#M108168</link>
    <description>&lt;P&gt;Check out our otel image. It replaces fluentd-hec anyways.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 18:37:23 GMT</pubDate>
    <dc:creator>mattymo</dc:creator>
    <dc:date>2023-02-15T18:37:23Z</dc:date>
    <item>
      <title>Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209599#M41273</link>
      <description>&lt;P&gt;(Trying to pull a few similar discussions together and recorded for posterity)&lt;/P&gt;

&lt;H1&gt;Challenge&lt;/H1&gt;

&lt;P&gt;The current &lt;A href="https://docs.docker.com/engine/admin/logging/splunk/" target="_blank"&gt;Docker Logging Driver for Splunk&lt;/A&gt; sends HTTP events to Splunk as single-line JSON events because Docker treats each line flushed to stdout / stderror as a separate event (thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/40971"&gt;@halr9000&lt;/a&gt;). Example:&lt;BR /&gt;
 &lt;IMG src="https://community.splunk.com/storage/temp/159225-json-event.png" alt="json_event" /&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Notice that those ideally are our access_combined data but since the data is json, we can't get all the field parsing that comes with the out-of-the-box &lt;CODE&gt;access_combined&lt;/CODE&gt;. This means that you're in a pickle trying to sourcetype the &lt;CODE&gt;line&lt;/CODE&gt; payload. &lt;/LI&gt;
&lt;LI&gt;Multi-line events, like java stack traces, arrive line by line with this implementation because the connection is not held open until the the event finishes (thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/263"&gt;@Michael&lt;/a&gt; Wilde).&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;STRONG&gt;How can this be addressed to enjoy the power of my existing sourcetypes with this HTTP Event Collector payload from Docker?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:06:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209599#M41273</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2020-09-29T11:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209600#M41274</link>
      <description>&lt;H1&gt;Solution&lt;/H1&gt;

&lt;P&gt;The strongest solution is in the works! That is for the &lt;A href="https://docs.docker.com/engine/admin/logging/splunk/"&gt;Docker Logging Driver for Splunk&lt;/A&gt; to transmit HTTP Event Collector in raw mode (rather than json), so the events won’t get surrounded by JSON and our normal field extraction stuff will work. &lt;BR /&gt;
Our yogi @Michael Wilde has been tracking a PR with Docker for specifically this. If and when that's implemented, I hope to update this accordingly.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 18:10:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209600#M41274</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-09-21T18:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209601#M41275</link>
      <description>&lt;H1&gt;Workaround(s)&lt;/H1&gt;

&lt;P&gt;Whilst we wait for the ideal solution, here's some workarounds to consider:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Traditional UF Monitor:&lt;/STRONG&gt; Have the container write its logs to a volume on the host and use a universal forwarder to pick them up from the host and move them to the indexer.  Keep in mind that it's not a bad idea to have a forwarder on the host anyway so you can see things outside of the containers. Again, thank you to @Michael Wilde for this premise!&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Sourcetype Override:&lt;/STRONG&gt; Use a props and transforms to &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/Data/Advancedsourcetypeoverrides"&gt;override the sourcetype&lt;/A&gt; to rip out the &lt;CODE&gt;line&lt;/CODE&gt;'s payload (similar to &lt;A href="https://answers.splunk.com/answers/336935/how-to-set-and-configure-the-sourcetype-to-format.html"&gt;this&lt;/A&gt;) and rename to the desired sourcetype. With a sourcetype override, the field parsing of the sourcetype name is what is used.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Other ideas? Post 'em up!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 18:17:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209601#M41275</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-09-21T18:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209602#M41276</link>
      <description>&lt;P&gt;From @dgladkikh: Raw format has been merged to master &lt;A href="https://github.com/docker/docker/pull/25786"&gt;https://github.com/docker/docker/pull/25786&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
So it should be available in 1.13 and it is possible to try it with experimental docker or custom build from master&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 19:52:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209602#M41276</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-09-21T19:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209603#M41277</link>
      <description>&lt;P&gt;Just to clarify: this solution solves challenge 1, not 2. Multi-line events like stack traces are still not handled properly as stderr/stdout streams from different containers are interleaved as they are aggregated by Docker logging driver.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:37:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209603#M41277</guid>
      <dc:creator>rarsan_splunk</dc:creator>
      <dc:date>2016-09-21T20:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209604#M41278</link>
      <description>&lt;P&gt;Cross reference to this thread: &lt;A href="https://answers.splunk.com/answers/390219/how-to-parse-docker-logs-with-multiple-events-from.html"&gt;https://answers.splunk.com/answers/390219/how-to-parse-docker-logs-with-multiple-events-from.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 21:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209604#M41278</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-09-21T21:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209605#M41279</link>
      <description>&lt;P&gt;Keep in mind that that raw events are only supported in Splunk 6.4 and onwards&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/event-collector/SP-CAAAE8Y"&gt;http://dev.splunk.com/view/event-collector/SP-CAAAE8Y&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 15:42:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209605#M41279</guid>
      <dc:creator>dsmc_adv</dc:creator>
      <dc:date>2016-11-17T15:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209606#M41280</link>
      <description>&lt;P&gt;Yes! Thanks for adding that info!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 22:17:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209606#M41280</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-11-17T22:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209607#M41281</link>
      <description>&lt;P&gt;How can the fields which are separated by colon like “line” , “tag” and “source” be extracted automatically on source=http:docker for Docker logs while using Http Event Collector , also if the docker logs have the Key Value in the logs how can those appear as fields in Splunk?&lt;/P&gt;

&lt;P&gt;For example the log has the following :&lt;/P&gt;

&lt;P&gt;{ [-] &lt;BR /&gt;
   line: 2016-11-14 15:22:03,779; [LOG=debug, NAME=bhav, TIME=1,MSG=Goodday, CLIENT=127.0.0.1] &lt;BR /&gt;
   source: stdout&lt;BR /&gt;
   tag: abc02be1be4e &lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;I need to see line , source and tag as fields , along with that KV pair should also showup fields like LOG, NAME, MSG and CLIENT .&lt;/P&gt;

&lt;P&gt;Can this be done if so how ? We would want a permanent solution so that it can be applied Enterprise wise.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 09:56:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209607#M41281</guid>
      <dc:creator>bhavesh91</dc:creator>
      <dc:date>2016-12-01T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209608#M41282</link>
      <description>&lt;P&gt;How can the fields which are separated by colon like “line” , “tag” and “source” be extracted automatically on source=http:docker for Docker logs while using Http Event Collector , also if the docker logs have the Key Value in the logs how can those appear as fields in Splunk?&lt;/P&gt;

&lt;P&gt;For example the log has the following :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{ [-] 
   line: 2016-11-14 15:22:03,779; [LOG=debug, NAME=bhav, TIME=1,MSG=Goodday, CLIENT=127.0.0.1] 
   source: stdout
   tag: abc02be1be4e 
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to see line , source and tag as fields , along with that KV pair should also show up fields like LOG, NAME, MSG and CLIENT .&lt;/P&gt;

&lt;P&gt;Can this be done if so how ? We would want a permanent solution so that it can be applied Enterprise wise.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 09:56:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209608#M41282</guid>
      <dc:creator>bhavesh91</dc:creator>
      <dc:date>2016-12-01T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209609#M41283</link>
      <description>&lt;P&gt;(Sounds like this is in regards to using the log driver so I've moved this comment to that solution rather than the answer related to more traditional approaches)&lt;/P&gt;

&lt;P&gt;Odd that those fields are not already parsed for you. Does the sourcetype have a props.conf entry for &lt;CODE&gt;KV_MODE = json&lt;/CODE&gt;? What is the sourcetype being used and where was it defined (by you or by an app from splunkbase)?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 13:23:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209609#M41283</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-12-02T13:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209610#M41284</link>
      <description>&lt;P&gt;We have been using the default sourcetype - json_no_timestamp which shows up on the Data Inputs -&amp;gt; Http Event Collector.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209610#M41284</guid>
      <dc:creator>bhavesh91</dc:creator>
      <dc:date>2020-09-29T12:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209611#M41285</link>
      <description>&lt;P&gt;I'm not sure if &lt;CODE&gt;json_no_timestamp&lt;/CODE&gt; is an out-of-the-box sourcetype. What is the value of &lt;CODE&gt;KV_MODE&lt;/CODE&gt; for that sourcetype (Settings -&amp;gt; Sourcetypes)? In fact, maybe provide a screen shot of that sourectypes definition from the web UI (or btool - but not the conf file).&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 13:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209611#M41285</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-12-02T13:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209612#M41286</link>
      <description>&lt;P&gt;Also this brings us to a point where we will need to start monitoring the GC(Garbage Collection) and Heap exhaustion in a containers using Splunk - how do we that ?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2016 17:11:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209612#M41286</guid>
      <dc:creator>bhavesh91</dc:creator>
      <dc:date>2016-12-04T17:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209613#M41287</link>
      <description>&lt;P&gt;Slight update that it sounds like 1.13 is more easily accessible these days and you can start using the new driver: &lt;A href="http://blogs.splunk.com/2016/12/01/docker-1-13-with-improved-splunk-logging-driver"&gt;http://blogs.splunk.com/2016/12/01/docker-1-13-with-improved-splunk-logging-driver&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 21:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209613#M41287</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-12-05T21:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209614#M41288</link>
      <description>&lt;P&gt;Splunk is a dummy here and just simply accepting data the container sends so you'll need the container to send that data as well. So you'll need to expose data from the GC and heap of the container to Splunk over the same driver. &lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 22:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209614#M41288</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-12-07T22:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209615#M41289</link>
      <description>&lt;P&gt;Looks like 1.13 just recently came out of beta!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:00:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209615#M41289</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-01-25T14:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209616#M41290</link>
      <description>&lt;P&gt;Is there any updates to multi-line events. Searched around but this is the closest post that discussed this.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 14:05:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209616#M41290</guid>
      <dc:creator>ErikAulin</dc:creator>
      <dc:date>2017-04-07T14:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209617#M41291</link>
      <description>&lt;P&gt;@Michael Wilde - Is this because Docker still spits out each line individually or has this been adjusted on the docker side so as to send a multiline output as one event?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 12:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209617#M41291</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-04-10T12:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sourcetypes with Docker and HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209618#M41292</link>
      <description>&lt;P&gt;@rarsan - Are you sure? I thought the logging driver sends data from the container itself and so different containers send different streams.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 13:00:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sourcetypes-with-Docker-and-HTTP-Event-Collector/m-p/209618#M41292</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-04-10T13:00:16Z</dc:date>
    </item>
  </channel>
</rss>

