Skip to content

Instantly share code, notes, and snippets.

@mdasilva
Created May 23, 2018 15:50
Show Gist options
  • Save mdasilva/cb6a7c8f3b5b51843c6fa7ce91f012f3 to your computer and use it in GitHub Desktop.
Save mdasilva/cb6a7c8f3b5b51843c6fa7ce91f012f3 to your computer and use it in GitHub Desktop.
$ docker run -it --rm -p 24224:24224 -p 24224:24224/udp -p 8888:8888 -v $PWD/fluent.conf.test:/fluentd/etc/fluent.conf -e FLUENTD_CONF=fluent.conf igm-fluentd 112ms  Wed 23 May 2018 11:10:08 AM EDT
2018-05-23 15:10:35 +0000 [info]: reading config file path="/fluentd/etc/fluent.conf"
2018-05-23 15:10:35 +0000 [info]: starting fluentd-0.12.43
2018-05-23 15:10:35 +0000 [info]: gem 'fluent-plugin-splunk-http-eventcollector' version '0.3.0'
2018-05-23 15:10:35 +0000 [info]: gem 'fluentd' version '0.12.43'
2018-05-23 15:10:35 +0000 [info]: adding match pattern="**" type="copy"
2018-05-23 15:10:36 +0000 [info]: adding source type="http"
2018-05-23 15:10:36 +0000 [info]: using configuration file: <ROOT>
<source>
@type http
port 8888
bind 0.0.0.0
format json
body_size_limit 32m
keepalive_timeout 10s
</source>
<match **>
@type copy
<store>
@type stdout
</store>
<store>
type splunk-http-eventcollector
server lcosplapp7.gwl.bz:8089
protocol http
token D572E0FC-2E81-488F-8A5A-444450858192
index igm_devops
sourcetype fluent
buffer_type memory
buffer_queue_limit 16
buffer_chunk_limit 8m
flush_interval 2s
host masticore
</store>
</match>
</ROOT>
2018-05-23 15:11:11 +0000 myapp.access: {"name":"michael","city":"toronto"}
2018-05-23 15:11:13 +0000 [warn]: temporarily failed to flush the buffer. next_retry=2018-05-23 15:11:13 +0000 error_class="Net::HTTP::Persistent::Error" error="too many connection resets (due to end of file reached - EOFError) after 0 requests on 69921237639720, last used 1527088273.07397 seconds ago" plugin_id="object:3f97ccce270c"
2018-05-23 15:11:13 +0000 fluent.warn: {"next_retry":"2018-05-23 15:11:13 +0000","error_class":"Net::HTTP::Persistent::Error","error":"too many connection resets (due to end of file reached - EOFError) after 0 requests on 69921237639720, last used 1527088273.07397 seconds ago","plugin_id":"object:3f97ccce270c","message":"temporarily failed to flush the buffer. next_retry=2018-05-23 15:11:13 +0000 error_class=\"Net::HTTP::Persistent::Error\" error=\"too many connection resets (due to end of file reached - EOFError) after 0 requests on 69921237639720, last used 1527088273.07397 seconds ago\" plugin_id=\"object:3f97ccce270c\""}
2018-05-23 15:11:14 +0000 [warn]: temporarily failed to flush the buffer. next_retry=2018-05-23 15:11:15 +0000 error_class="Net::HTTP::Persistent::Error" error="too many connection resets (due to end of file reached - EOFError) after 0 requests on 69921237639720, last used 0.961803634 seconds ago" plugin_id="object:3f97ccce270c"
2018-05-23 15:11:14 +0000 [warn]: suppressed same stacktrace
2018-05-23 15:11:14 +0000 fluent.warn: {"next_retry":"2018-05-23 15:11:15 +0000","error_class":"Net::HTTP::Persistent::Error","error":"too many connection resets (due to end of file reached - EOFError) after 0 requests on 69921237639720, last used 0.961803634 seconds ago","plugin_id":"object:3f97ccce270c","message":"temporarily failed to flush the buffer. next_retry=2018-05-23 15:11:15 +0000 error_class=\"Net::HTTP::Persistent::Error\" error=\"too many connection resets (due to end of file reached - EOFError) after 0 requests on 69921237639720, last used 0.961803634 seconds ago\" plugin_id=\"object:3f97ccce270c\""}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment