Last active
February 23, 2016 00:59
-
-
Save masasuzu/78fe31c13ff1332e1994 to your computer and use it in GitHub Desktop.
再起動時にtd-agentがabortする件
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
Starting td-agent: * Stopping save kernel messages [ OK ] | |
* Starting crash report submission daemon [ OK ] | |
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config/basic_parser.rb:56:in `skip': invalid byte sequence in US-ASCII (ArgumentError) | |
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config/basic_parser.rb:56:in `skip' | |
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config/basic_parser.rb:80:in `spacing' | |
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config/v1_parser.rb:58:in `parse_element' | |
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config/v1_parser.rb:41:in `parse!' | |
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config/v1_parser.rb:31:in `parse' | |
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config.rb:29:in `parse' | |
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/supervisor.rb:466:in `read_config' | |
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/supervisor.rb:130:in `start' | |
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/command/fluentd.rb:171:in `<top (required)>' | |
from /opt/td-agent/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
from /opt/td-agent/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/bin/fluentd:6:in `<top (required)>' | |
from /opt/td-agent/embedded/bin/fluentd:23:in `load' | |
from /opt/td-agent/embedded/bin/fluentd:23:in `<top (required)>' | |
from /usr/sbin/td-agent:7:in `load' | |
from /usr/sbin/td-agent:7:in `<main>' | |
* td-agent |
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
# あいうえお | |
#### | |
## Output descriptions: | |
## | |
# Treasure Data (http://www.treasure-data.com/) provides cloud based data | |
# analytics platform, which easily stores and processes data from td-agent. | |
# FREE plan is also provided. | |
# @see http://docs.fluentd.org/articles/http-to-td | |
# | |
# This section matches events whose tag is td.DATABASE.TABLE | |
<match td.*.*> | |
type tdlog | |
apikey YOUR_API_KEY | |
auto_create_table | |
buffer_type file | |
buffer_path /var/log/td-agent/buffer/td | |
<secondary> | |
type file | |
path /var/log/td-agent/failed_records | |
</secondary> | |
</match> | |
## match tag=debug.** and dump to console | |
<match debug.**> | |
type stdout | |
</match> | |
#### | |
## Source descriptions: | |
## | |
## built-in TCP input | |
## @see http://docs.fluentd.org/articles/in_forward | |
<source> | |
type forward | |
</source> | |
## built-in UNIX socket input | |
#<source> | |
# type unix | |
#</source> | |
# HTTP input | |
# POST http://localhost:8888/<tag>?json=<json> | |
# POST http://localhost:8888/td.myapp.login?json={"user"%3A"me"} | |
# @see http://docs.fluentd.org/articles/in_http | |
<source> | |
type http | |
port 8888 | |
</source> | |
## live debugging agent | |
<source> | |
type debug_agent | |
bind 127.0.0.1 | |
port 24230 | |
</source> | |
#### | |
## Examples: | |
## | |
## File input | |
## read apache logs continuously and tags td.apache.access | |
#<source> | |
# type tail | |
# format apache | |
# path /var/log/httpd-access.log | |
# tag td.apache.access | |
#</source> | |
## File output | |
## match tag=local.** and write to file | |
#<match local.**> | |
# type file | |
# path /var/log/td-agent/access | |
#</match> | |
## Forwarding | |
## match tag=system.** and forward to another td-agent server | |
#<match system.**> | |
# type forward | |
# host 192.168.0.11 | |
# # secondary host is optional | |
# <secondary> | |
# host 192.168.0.12 | |
# </secondary> | |
#</match> | |
## Multiple output | |
## match tag=td.*.* and output to Treasure Data AND file | |
#<match td.*.*> | |
# type copy | |
# <store> | |
# type tdlog | |
# apikey API_KEY | |
# auto_create_table | |
# buffer_type file | |
# buffer_path /var/log/td-agent/buffer/td | |
# </store> | |
# <store> | |
# type file | |
# path /var/log/td-agent/td-%Y-%m-%d/%H.log | |
# </store> | |
#</match> |
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
$ uname -a | |
Linux mlab2 3.13.0-79-generic #123~precise1-Ubuntu SMP Fri Feb 19 14:48:42 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux | |
$ /opt/td-agent/embedded/bin/ruby --version | |
ruby 2.1.8p440 (2015-12-16 revision 53160) [x86_64-linux] | |
$ /opt/td-agent/usr/sbin/td-agent --version | |
td-agent 0.12.20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment