fluent-plugin-logit 0.1.0.pre.alpha.pre.9 → 0.1.0.pre.alpha.pre.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3ecf145ca8f8ebc1f32741ce78f813a96df4687
4
- data.tar.gz: a295a019a77c56350ecea90e11d092c8ea5be904
3
+ metadata.gz: 128ac710f8a0d220b72d989132a741d6f5d87dcd
4
+ data.tar.gz: d033f8d00d5d370ac97bc6cea903d91fe3a6dff4
5
5
  SHA512:
6
- metadata.gz: f88d1e7e465559f0555b86fa116cec3ed2c80ff736dc7c51419342ab3b8e2da6ba2344bf363f7533729aa921d809fb5c1001c280afa64a61c3db6fd926a78bee
7
- data.tar.gz: f50fdc18973dd980c41a665bb333fde736f7012719d9f9d5fe10581550fcb42ce46a6515e04b409b27bdf4513e29d2a929d1019770e3f3b142df0cbf7e56d16f
6
+ metadata.gz: 093063bcf651b74878688f0200c71b7fd21746daa7ecbeef329a7d10659890b652807cff222191d5f2370b4c2b7fc2183b97afca4277d4a57770dbc47c05cc45
7
+ data.tar.gz: 9f014bae52ce38fcd641f9f4107212b420f23d8b1c2db195d1418cba40cc5959aeefe568472daed6ea989035e2d332af0d07e64363f5e6910fa2a86f715a5445
@@ -1,7 +1,10 @@
1
1
  # coding: utf-8
2
+
3
+ require 'fluent/output'
4
+
2
5
  module Fluent
3
6
  class LogitOutput < BufferedOutput
4
- Plugin.register_output('logit', self)
7
+ Fluent::Plugin.register_output('logit', self)
5
8
 
6
9
  def initialize
7
10
  super
@@ -0,0 +1,7 @@
1
+ FROM fluent/fluentd:latest
2
+ MAINTAINER Patrick McEvoy <pmcevoy@logit.io>
3
+
4
+ RUN gem install fluent-plugin-logit -v 0.1.0
5
+
6
+ # To allow the file buffer to work
7
+ RUN chmod 777 /tmp
@@ -0,0 +1,29 @@
1
+ # Start a fluentd server
2
+ # docker run --rm -it -e "FLUENTD_OPT=-vv" -p 24224:24224 -v (pwd):/fluentd/etc -e FLUENTD_CONF=fluent.conf logit/fluentd
3
+
4
+ # Generate example logs
5
+ # docker run --log-driver=fluentd --log-opt fluentd-address=localhost:24224 --log-opt tag=docker.{{.ID}} chentex/random-logger:latest
6
+
7
+ <source>
8
+ type forward
9
+ port 24224
10
+ bind 0.0.0.0
11
+ </source>
12
+
13
+ # if container stdout is json
14
+ #<filter docker.**>
15
+ # @type parser
16
+ # format json
17
+ # key_name log
18
+ # reserve_data true
19
+ #</filter>
20
+
21
+ <match docker.**>
22
+ type logit
23
+ stack_id your-stack-id
24
+ port your-tls-tls-port
25
+ # edit as required
26
+ buffer_type file
27
+ buffer_path /tmp/
28
+ flush_interval 2s
29
+ </match>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-logit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.pre.9
4
+ version: 0.1.0.pre.alpha.pre.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logit
@@ -89,6 +89,8 @@ files:
89
89
  - fluent-plugin-logit.gemspec
90
90
  - lib/fluent/plugin/out_logit.rb
91
91
  - test/helper.rb
92
+ - test/integration/Dockerfile
93
+ - test/integration/fluent.conf
92
94
  - test/plugin/test_out_logit.rb
93
95
  homepage: https://github.com/logit/fluent-plugin-logit
94
96
  licenses:
@@ -116,4 +118,6 @@ specification_version: 4
116
118
  summary: Fluentd output plugin to store data with logit.io
117
119
  test_files:
118
120
  - test/helper.rb
121
+ - test/integration/Dockerfile
122
+ - test/integration/fluent.conf
119
123
  - test/plugin/test_out_logit.rb