fluentd 0.10.6 → 0.10.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fluentd might be problematic. Click here for more details.
- data/ChangeLog +9 -0
- data/README +57 -0
- data/Rakefile +42 -3
- data/VERSION +1 -1
- data/bin/fluent-cat +6 -0
- data/bin/fluent-gem +10 -0
- data/bin/fluentd +6 -0
- data/lib/fluent/buffer.rb +10 -4
- data/lib/fluent/config.rb +2 -0
- data/lib/fluent/engine.rb +32 -16
- data/lib/fluent/load.rb +1 -0
- data/lib/fluent/output.rb +215 -156
- data/lib/fluent/plugin/buf_file.rb +2 -1
- data/lib/fluent/plugin/in_forward.rb +4 -2
- data/lib/fluent/plugin/in_http.rb +15 -8
- data/lib/fluent/plugin/in_stream.rb +2 -1
- data/lib/fluent/plugin/in_tail.rb +133 -9
- data/lib/fluent/plugin/out_forward.rb +15 -9
- data/lib/fluent/process.rb +469 -0
- data/lib/fluent/version.rb +1 -1
- metadata +33 -38
- data/.gitignore +0 -20
- data/.rvmrc +0 -1
- data/Gemfile +0 -3
- data/Makefile.am +0 -50
- data/autogen.sh +0 -67
- data/configure.in +0 -52
- data/fluentd.gemspec +0 -40
data/lib/fluent/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluentd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11-
|
12
|
+
date: 2011-11-16 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: msgpack
|
16
|
-
requirement: &
|
16
|
+
requirement: &9186500 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.4.4
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *9186500
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: json
|
27
|
-
requirement: &
|
27
|
+
requirement: &9185640 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.4.3
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *9185640
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: yajl-ruby
|
38
|
-
requirement: &
|
38
|
+
requirement: &9184720 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *9184720
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: cool.io
|
49
|
-
requirement: &
|
49
|
+
requirement: &9183560 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.0.0
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *9183560
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: http_parser.rb
|
60
|
-
requirement: &
|
60
|
+
requirement: &9182640 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 0.5.1
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *9182640
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
|
-
requirement: &
|
71
|
+
requirement: &9181600 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,33 +76,27 @@ dependencies:
|
|
76
76
|
version: 0.9.2
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
80
|
-
description:
|
79
|
+
version_requirements: *9181600
|
80
|
+
description:
|
81
81
|
email: frsyuki@gmail.com
|
82
82
|
executables:
|
83
|
+
- fluentd
|
83
84
|
- fluent-cat
|
84
85
|
- fluent-gem
|
85
|
-
- fluentd
|
86
86
|
extensions: []
|
87
|
-
extra_rdoc_files:
|
87
|
+
extra_rdoc_files:
|
88
|
+
- ChangeLog
|
89
|
+
- README
|
90
|
+
- README.rdoc
|
88
91
|
files:
|
89
|
-
- .gitignore
|
90
|
-
- .rvmrc
|
91
92
|
- AUTHORS
|
92
93
|
- COPYING
|
93
|
-
- ChangeLog
|
94
|
-
- Gemfile
|
95
|
-
- Makefile.am
|
96
|
-
- README.rdoc
|
97
94
|
- Rakefile
|
98
95
|
- VERSION
|
99
|
-
- autogen.sh
|
100
96
|
- bin/fluent-cat
|
101
97
|
- bin/fluent-gem
|
102
98
|
- bin/fluentd
|
103
|
-
- configure.in
|
104
99
|
- fluent.conf
|
105
|
-
- fluentd.gemspec
|
106
100
|
- lib/fluent/buffer.rb
|
107
101
|
- lib/fluent/command/cat.rb
|
108
102
|
- lib/fluent/command/fluentd.rb
|
@@ -137,6 +131,7 @@ files:
|
|
137
131
|
- lib/fluent/plugin/out_stdout.rb
|
138
132
|
- lib/fluent/plugin/out_stream.rb
|
139
133
|
- lib/fluent/plugin/out_test.rb
|
134
|
+
- lib/fluent/process.rb
|
140
135
|
- lib/fluent/test.rb
|
141
136
|
- lib/fluent/test/base.rb
|
142
137
|
- lib/fluent/test/input_test.rb
|
@@ -156,6 +151,9 @@ files:
|
|
156
151
|
- test/plugin/out_forward.rb
|
157
152
|
- test/plugin/out_roundrobin.rb
|
158
153
|
- test/plugin/out_stream.rb
|
154
|
+
- ChangeLog
|
155
|
+
- README
|
156
|
+
- README.rdoc
|
159
157
|
homepage: http://fluentd.org/
|
160
158
|
licenses: []
|
161
159
|
post_install_message:
|
@@ -174,9 +172,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
172
|
- - ! '>='
|
175
173
|
- !ruby/object:Gem::Version
|
176
174
|
version: '0'
|
177
|
-
segments:
|
178
|
-
- 0
|
179
|
-
hash: -247010597989313430
|
180
175
|
requirements: []
|
181
176
|
rubyforge_project:
|
182
177
|
rubygems_version: 1.8.10
|
@@ -184,17 +179,17 @@ signing_key:
|
|
184
179
|
specification_version: 3
|
185
180
|
summary: Fluent event collector
|
186
181
|
test_files:
|
187
|
-
- test/config.rb
|
188
|
-
- test/helper.rb
|
189
182
|
- test/match.rb
|
190
|
-
- test/plugin/
|
191
|
-
- test/plugin/in_forward.rb
|
192
|
-
- test/plugin/in_http.rb
|
183
|
+
- test/plugin/out_roundrobin.rb
|
193
184
|
- test/plugin/in_stream.rb
|
185
|
+
- test/plugin/out_stream.rb
|
194
186
|
- test/plugin/out_copy.rb
|
195
|
-
- test/plugin/
|
187
|
+
- test/plugin/in_forward.rb
|
188
|
+
- test/plugin/out_forward.rb
|
189
|
+
- test/plugin/in_http.rb
|
190
|
+
- test/plugin/in_exec.rb
|
196
191
|
- test/plugin/out_exec_filter.rb
|
197
192
|
- test/plugin/out_file.rb
|
198
|
-
- test/plugin/
|
199
|
-
- test/
|
200
|
-
- test/
|
193
|
+
- test/plugin/out_exec.rb
|
194
|
+
- test/helper.rb
|
195
|
+
- test/config.rb
|
data/.gitignore
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Gemfile.lock
|
2
|
-
INSTALL
|
3
|
-
NEWS
|
4
|
-
Makefile
|
5
|
-
Makefile.in
|
6
|
-
README
|
7
|
-
ac
|
8
|
-
aclocal.m4
|
9
|
-
autom4te.cache
|
10
|
-
confdefs.h
|
11
|
-
config.log
|
12
|
-
config.status
|
13
|
-
configure
|
14
|
-
deps/
|
15
|
-
fluent-cat
|
16
|
-
fluent-gem
|
17
|
-
fluentd
|
18
|
-
pkg/*
|
19
|
-
test/tmp/*
|
20
|
-
make_dist.sh
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm 1.9.2
|
data/Gemfile
DELETED
data/Makefile.am
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
|
2
|
-
SUBDIRS = deps/ruby
|
3
|
-
|
4
|
-
bin_SCRIPTS = fluent-gem fluent-cat fluentd
|
5
|
-
|
6
|
-
MOSTLYCLEANFILES = $(bin_SCRIPTS)
|
7
|
-
|
8
|
-
DEST_RUBY = $(DESTDIR)$(RUBY_BINDIR)/ruby
|
9
|
-
DEST_GEM = $(DEST_RUBY) -rrubygems -rrubygems/gem_runner -rrubygems/exceptions -rrubygems/installer -e 'class Gem::Installer; def shebang(bin_file_name) "\#\!$(RUBY_BINDIR)/ruby" end; end; Gem::GemRunner.new.run ARGV'
|
10
|
-
DEST_RAKE = $(DEST_RUBY) -rrake -e 'Rake.application.run'
|
11
|
-
DEST_RUBY_LIBDIR = $(DESTDIR)$(RUBY_LIBDIR)/ruby
|
12
|
-
|
13
|
-
fluent-gem:
|
14
|
-
echo '#!/bin/sh' > $@
|
15
|
-
echo 'exec "$(RUBY_BINDIR)/gem" "$$@"' >> $@
|
16
|
-
chmod 755 $@
|
17
|
-
|
18
|
-
fluent-cat:
|
19
|
-
echo '#!/bin/sh' > $@
|
20
|
-
echo 'export FLUENT_CONF="$(sysconfdir)/fluent/fluent.conf"' >> $@
|
21
|
-
echo 'export FLUENT_PLUGIN="$(sysconfdir)/fluent/plugin"' >> $@
|
22
|
-
echo 'export FLUENT_SOCKET="$(localstatedir)/run/fluent.sock"' >> $@
|
23
|
-
echo 'exec "$(RUBY_BINDIR)/fluent-cat" "$$@"' >> $@
|
24
|
-
chmod 755 $@
|
25
|
-
|
26
|
-
fluentd:
|
27
|
-
echo '#!/bin/sh' > $@
|
28
|
-
echo 'export FLUENT_CONF="$(sysconfdir)/fluent/fluent.conf"' >> $@
|
29
|
-
echo 'export FLUENT_PLUGIN="$(sysconfdir)/fluent/plugin"' >> $@
|
30
|
-
echo 'export FLUENT_SOCKET="$(localstatedir)/run/fluent.sock"' >> $@
|
31
|
-
echo 'exec "$(RUBY_BINDIR)/fluentd" "$$@"' >> $@
|
32
|
-
chmod 755 $@
|
33
|
-
|
34
|
-
install: install-recursive
|
35
|
-
for gem in $(srcdir)/deps/*.gem; do \
|
36
|
-
RUBYLIB="$(DEST_RUBY_LIBDIR)/1.9.1:$(DEST_RUBY_LIBDIR)/1.9.1/$(shell $(DEST_RUBY) --version | sed -E 's/.*\[(.*)\]/\1/')" \
|
37
|
-
$(DEST_GEM) install --no-rdoc --no-ri "$$gem"; \
|
38
|
-
done
|
39
|
-
cd "$(srcdir)" && \
|
40
|
-
RUBYLIB="$(DEST_RUBY_LIBDIR)/1.9.1:$(DEST_RUBY_LIBDIR)/1.9.1/$(shell $(DEST_RUBY) --version | sed -E 's/.*\[(.*)\]/\1/')" \
|
41
|
-
$(DEST_RAKE)
|
42
|
-
RUBYLIB="$(DEST_RUBY_LIBDIR)/1.9.1:$(DEST_RUBY_LIBDIR)/1.9.1/$(shell $(DEST_RUBY) --version | sed -E 's/.*\[(.*)\]/\1/')" \
|
43
|
-
$(DEST_GEM) install --no-rdoc --no-ri "$(srcdir)/pkg/fluentd-$(VERSION).gem"
|
44
|
-
mkdir -p $(DESTDIR)$(sysconfdir)/fluent
|
45
|
-
cp -f $(srcdir)/fluent.conf $(DESTDIR)$(sysconfdir)/fluent/fluent.conf
|
46
|
-
mkdir -p $(DESTDIR)$(sysconfdir)/fluent/plugin
|
47
|
-
|
48
|
-
dist:
|
49
|
-
cd $(srcdir) && ./make_dist.sh
|
50
|
-
|
data/autogen.sh
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
mkdir -p ac
|
4
|
-
test -f AUTHORS || touch AUTHORS
|
5
|
-
test -f COPYING || touch COPYING
|
6
|
-
test -f ChangeLog || touch ChangeLog
|
7
|
-
test -f NEWS || touch NEWS
|
8
|
-
test -f NOTICE || touch NOTICE
|
9
|
-
test -f README || cp -f README.rdoc README
|
10
|
-
|
11
|
-
function download() {
|
12
|
-
if [ ! -f "$2" ];then
|
13
|
-
wget "$1/$2" -O "$2" || exit 1
|
14
|
-
fi
|
15
|
-
}
|
16
|
-
|
17
|
-
mkdir -p deps
|
18
|
-
mkdir -p deps/ruby
|
19
|
-
mkdir -p plugins
|
20
|
-
cd deps
|
21
|
-
download "http://ftp.ruby-lang.org/pub/ruby/1.9" "ruby-1.9.2-p180.tar.bz2"
|
22
|
-
download "http://rubygems.org/downloads" "jeweler-1.6.2.gem"
|
23
|
-
download "http://rubygems.org/downloads" "json-1.5.2.gem"
|
24
|
-
download "http://rubygems.org/downloads" "msgpack-0.4.4.gem"
|
25
|
-
download "http://rubygems.org/downloads" "iobuffer-0.1.3.gem"
|
26
|
-
download "http://rubygems.org/downloads" "cool.io-1.0.0.gem"
|
27
|
-
download "http://rubygems.org/downloads" "http_parser.rb-0.5.1.gem"
|
28
|
-
download "http://rubygems.org/downloads" "yajl-ruby-1.0.0.gem"
|
29
|
-
cd ..
|
30
|
-
|
31
|
-
echo "#!/bin/sh
|
32
|
-
|
33
|
-
##
|
34
|
-
## Generated by autogen.sh
|
35
|
-
##
|
36
|
-
|
37
|
-
version=\`cat VERSION\`
|
38
|
-
dst=fluentd-\$version
|
39
|
-
rm -rf \$dst
|
40
|
-
mkdir \$dst || exit 1
|
41
|
-
cp -fpR lib bin \$dst/ || exit 1
|
42
|
-
mkdir -p \$dst/deps || exit 1
|
43
|
-
cp deps/*.gem deps/ruby-*.tar.bz2 \$dst/deps/
|
44
|
-
cp README.rdoc README COPYING NEWS ChangeLog AUTHORS INSTALL NOTICE \\
|
45
|
-
configure.in Makefile.in Makefile.am configure aclocal.m4 \\
|
46
|
-
Rakefile VERSION fluent.conf make_dist.sh \\
|
47
|
-
\$dst/ || exit 1
|
48
|
-
cp -f README.rdoc \$dst/README || exit 1
|
49
|
-
mkdir -p \$dst/ac || exit 1
|
50
|
-
cp ac/* \$dst/ac/ || exit 1
|
51
|
-
tar czvf \$dst.tar.gz \$dst || exit 1
|
52
|
-
rm -rf \$dst
|
53
|
-
" > make_dist.sh
|
54
|
-
chmod 755 make_dist.sh
|
55
|
-
|
56
|
-
if [ x`uname` = x"Darwin" ]; then
|
57
|
-
glibtoolize --force --copy
|
58
|
-
else
|
59
|
-
libtoolize --force --copy
|
60
|
-
fi
|
61
|
-
aclocal
|
62
|
-
#autoheader
|
63
|
-
automake --add-missing --copy
|
64
|
-
autoconf
|
65
|
-
|
66
|
-
rmdir deps/ruby 2>/dev/null
|
67
|
-
|
data/configure.in
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
AC_INIT(lib/fluent/engine.rb)
|
2
|
-
AC_CONFIG_AUX_DIR(ac)
|
3
|
-
AM_INIT_AUTOMAKE(fluentd, 0.10.6)
|
4
|
-
|
5
|
-
AC_CHECK_LIB(z,deflate,,
|
6
|
-
AC_MSG_ERROR([zlib library not found]))
|
7
|
-
|
8
|
-
AC_CHECK_HEADERS(openssl/sha.h,,
|
9
|
-
AC_MSG_ERROR([find openssl header not found]))
|
10
|
-
AC_CHECK_LIB(crypto,SHA1,,
|
11
|
-
AC_MSG_ERROR([openssl library not found]))
|
12
|
-
|
13
|
-
#AC_CONFIG_SUBDIRS([deps/ruby])
|
14
|
-
|
15
|
-
orig_exec_prefix=$exec_prefix
|
16
|
-
orig_prefix=$prefix
|
17
|
-
|
18
|
-
if test "$prefix" = "NONE"; then
|
19
|
-
prefix=$ac_default_prefix
|
20
|
-
fi
|
21
|
-
exec_prefix=$prefix
|
22
|
-
ruby_prefix=`eval echo $libdir/fluent/ruby`
|
23
|
-
|
24
|
-
exec_prefix=$orig_exec_prefix
|
25
|
-
prefix=$orig_prefix
|
26
|
-
|
27
|
-
AC_SUBST(RUBY_PREFIX)
|
28
|
-
AC_SUBST(RUBY_BINDIR)
|
29
|
-
AC_SUBST(RUBY_LIBDIR)
|
30
|
-
RUBY_PREFIX=$ruby_prefix
|
31
|
-
RUBY_BINDIR=$ruby_prefix/bin
|
32
|
-
RUBY_LIBDIR=$ruby_prefix/lib
|
33
|
-
|
34
|
-
AC_OUTPUT([Makefile])
|
35
|
-
|
36
|
-
if test ! -d deps/ruby; then
|
37
|
-
mkdir -p deps/ruby-extract
|
38
|
-
tar jxf deps/ruby-*.tar.bz2 -C deps/ruby-extract
|
39
|
-
mv deps/ruby-extract/* deps/ruby
|
40
|
-
fi
|
41
|
-
|
42
|
-
cd deps/ruby && ./configure "--prefix=$ruby_prefix" \
|
43
|
-
--disable-install-doc \
|
44
|
-
--with-out-ext=dbm \
|
45
|
-
--with-out-ext=fiddle \
|
46
|
-
--with-out-ext=gdbm \
|
47
|
-
--with-out-ext=probe \
|
48
|
-
--with-out-ext=racc \
|
49
|
-
--with-out-ext=ripper \
|
50
|
-
--with-out-ext=sdbm \
|
51
|
-
--with-out-ext=tk
|
52
|
-
|
data/fluentd.gemspec
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
$:.push File.expand_path('../lib', __FILE__)
|
3
|
-
|
4
|
-
Gem::Specification.new do |gem|
|
5
|
-
version_file = "lib/fluent/version.rb"
|
6
|
-
version = File.read("VERSION").strip
|
7
|
-
File.open(version_file, "w") {|f|
|
8
|
-
f.write <<EOF
|
9
|
-
module Fluent
|
10
|
-
|
11
|
-
VERSION = '#{version}'
|
12
|
-
|
13
|
-
end
|
14
|
-
EOF
|
15
|
-
}
|
16
|
-
|
17
|
-
gem.name = %q{fluentd}
|
18
|
-
gem.version = version
|
19
|
-
# gem.platform = Gem::Platform::RUBY
|
20
|
-
gem.authors = ["Sadayuki Furuhashi"]
|
21
|
-
gem.email = %q{frsyuki@gmail.com}
|
22
|
-
gem.description = "Fluent event collector"
|
23
|
-
gem.summary = gem.description
|
24
|
-
|
25
|
-
gem.homepage = "http://fluentd.org/"
|
26
|
-
gem.has_rdoc = false
|
27
|
-
gem.files = `git ls-files`.split("\n")
|
28
|
-
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
29
|
-
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
30
|
-
gem.require_paths = ['lib']
|
31
|
-
|
32
|
-
gem.required_ruby_version = '~> 1.9.2'
|
33
|
-
|
34
|
-
gem.add_dependency "msgpack", "~> 0.4.4"
|
35
|
-
gem.add_dependency "json", ">= 1.4.3"
|
36
|
-
gem.add_dependency "yajl-ruby", "~> 1.0.0"
|
37
|
-
gem.add_dependency "cool.io", "~> 1.0.0"
|
38
|
-
gem.add_dependency "http_parser.rb", "~> 0.5.1"
|
39
|
-
gem.add_development_dependency "rake", ">= 0.9.2"
|
40
|
-
end
|