Last active
August 29, 2015 14:14
-
-
Save sunaemon/0965a45583a2f810a2b1 to your computer and use it in GitHub Desktop.
fluentd error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:wheezy | |
# install packages | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && apt-get upgrade -y | |
#install tools for logging and process administration | |
RUN apt-get install -y monit rsyslog | |
WORKDIR / | |
RUN apt-get install -y ruby ruby-dev build-essential wget | |
RUN gem install fluentd --no-ri --no-rdoc | |
ENV PATH /.gem/ruby/2.1.0/bin:$PATH | |
RUN mkdir -p /var/log/fluent | |
RUN mkdir -p /var/run/fluent | |
# install fluent-plugins | |
RUN apt-get install -y libmysqlclient-dev libpq-dev | |
RUN gem install tzinfo -v 0.3.42 --no-ri --no-rdoc | |
RUN gem install fluent-plugin-sql fluent-plugin-tail-multiline --no-ri --no-rdoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /usr/local/bin/fluentd -d /var/run/fluent/fluentd.pid -c /etc/fluent/fluentd.conf | |
2015-02-02 16:06:16 +0000 [info]: reading config file path="/etc/fluent/fluentd.conf" | |
2015-02-02 16:06:16 +0000 [info]: starting fluentd-0.12.4 | |
2015-02-02 16:06:16 +0000 [info]: gem 'fluent-plugin-sql' version '0.3.0' | |
2015-02-02 16:06:16 +0000 [info]: gem 'fluent-plugin-tail-multiline' version '0.1.5' | |
2015-02-02 16:06:16 +0000 [info]: gem 'fluentd' version '0.12.4' | |
2015-02-02 16:06:16 +0000 [info]: gem 'fluentd' version '0.10.59' | |
2015-02-02 16:06:16 +0000 [info]: using configuration file: <ROOT> | |
<source> | |
type monitor_agent | |
bind 0.0.0.0 | |
port 24220 | |
</source> | |
<source> | |
type syslog | |
tag system | |
</source> | |
<source> | |
type tail | |
format nginx | |
path /var/log/nginx/access.log | |
tag nginx.access | |
pos_file /var/log/fluent/nginx.access.pos | |
</source> | |
<source> | |
type tail | |
format nginx | |
path /var/log/nginx/error.log | |
tag nginx.error | |
pos_file /var/log/fluent/nginx.error.pos | |
</source> | |
<source> | |
type tail | |
format /^\[(?<time>[^\]]+)\]\s+(?<level>[^ ]*)\s*:\s*(?<message>.*)$/ | |
path /var/log/monit.log | |
tag monit | |
pos_file /var/log/fluent/monit.pos | |
</source> | |
<source> | |
type tail | |
format /^\[(?<time>[^\]]+)\]\s+(?<level>[^ ]*)\s*:\s*(?<message>.*)$/ | |
path /var/log/monit.log | |
tag monit | |
pos_file /var/log/fluent/monit.pos | |
</source> | |
<source> | |
type sql | |
host localhost | |
database ======== | |
adapter mysql2 | |
username ======== | |
password ======== | |
tag_prefix ======== | |
select_interval 3s | |
select_limit 500 | |
state_file /var/run/fluent/sql_state | |
<table> | |
table ======== | |
tag log | |
update_column id | |
time_column logtime | |
</table> | |
</source> | |
<match **> | |
type copy | |
<store> | |
type file | |
path /tmp/test.log | |
</store> | |
</match> | |
<match **> | |
type forward | |
send_timeout 60s | |
recover_wait 10s | |
heartbeat_interval 1s | |
phi_threshold 16 | |
hard_timeout 60s | |
<server> | |
name ======== | |
host ======== | |
port ======== | |
weight 60 | |
</server> | |
</match> | |
</ROOT> | |
2015-02-02 16:06:16 +0000 [info]: adding match pattern="**" type="copy" | |
2015-02-02 16:06:16 +0000 [info]: adding match pattern="**" type="forward" | |
2015-02-02 16:06:16 +0000 [info]: adding forwarding server '======' host="=======" port=24224 weight=60 plugin_id="object:1065ff8" | |
2015-02-02 16:06:16 +0000 [info]: adding source type="monitor_agent" | |
2015-02-02 16:06:16 +0000 [info]: adding source type="syslog" | |
2015-02-02 16:06:16 +0000 [info]: adding source type="tail" | |
2015-02-02 16:06:16 +0000 [info]: adding source type="tail" | |
2015-02-02 16:06:16 +0000 [info]: adding source type="tail" | |
2015-02-02 16:06:16 +0000 [info]: adding source type="tail" | |
2015-02-02 16:06:16 +0000 [info]: adding source type="sql" | |
/usr/lib/ruby/1.9.1/rubygems/specification.rb:1637:in `raise_if_conflicts': Unable to activate activesupport-4.0.13, because tzinfo-1.2.2 conflicts with tzinfo (~> 0.3.37) (Gem::LoadError) | |
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:746:in `activate' | |
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:780:in `block in activate_dependencies' | |
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:766:in `each' | |
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:766:in `activate_dependencies' | |
from /usr/lib/ruby/1.9.1/rubygems/specification.rb:750:in `activate' | |
from /usr/lib/ruby/1.9.1/rubygems.rb:212:in `rescue in try_activate' | |
from /usr/lib/ruby/1.9.1/rubygems.rb:209:in `try_activate' | |
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require' | |
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require' | |
from /var/lib/gems/1.9.1/gems/fluent-plugin-sql-0.3.0/lib/fluent/plugin/in_sql.rb:20:in `<module:Fluent>' | |
from /var/lib/gems/1.9.1/gems/fluent-plugin-sql-0.3.0/lib/fluent/plugin/in_sql.rb:18:in `<top (required)>' | |
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/plugin.rb:148:in `block in try_load_plugin' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/plugin.rb:146:in `each' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/plugin.rb:146:in `try_load_plugin' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/plugin.rb:106:in `new_impl' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/plugin.rb:53:in `new_input' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/root_agent.rb:144:in `add_source' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/root_agent.rb:91:in `block in configure' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/root_agent.rb:88:in `each' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/root_agent.rb:88:in `configure' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/engine.rb:97:in `configure' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/engine.rb:77:in `run_configure' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/supervisor.rb:399:in `run_configure' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/supervisor.rb:138:in `block in start' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/supervisor.rb:266:in `call' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/supervisor.rb:266:in `main_process' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/supervisor.rb:241:in `block in supervise' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/supervisor.rb:240:in `fork' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/supervisor.rb:240:in `supervise' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/supervisor.rb:134:in `start' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/lib/fluent/command/fluentd.rb:167:in `<top (required)>' | |
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /var/lib/gems/1.9.1/gems/fluentd-0.12.4/bin/fluentd:6:in `<top (required)>' | |
from /usr/local/bin/fluentd:23:in `load' | |
from /usr/local/bin/fluentd:23:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment