Skip to content

Instantly share code, notes, and snippets.

@hsbt
Created January 23, 2013 10:05
Show Gist options
  • Save hsbt/4603915 to your computer and use it in GitHub Desktop.
Save hsbt/4603915 to your computer and use it in GitHub Desktop.
2013-01-23 17:55:13 +0900: temporarily failed to flush the buffer, next retry will be at 2013-01-23 17:55:44 +0900. error="No such file or directory - /tmp/fluent/tdlog/tdlog-20130123-2417-4y9qf4.lock" instance=23896807600240
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/tempfile.rb:346:in `rmdir'
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/tempfile.rb:346:in `rmdir'
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/tempfile.rb:338:in `ensure in locking'
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/tempfile.rb:338:in `locking'
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/tempfile.rb:144:in `block in initialize'
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/tmpdir.rb:133:in `create'
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/1.9.1/tempfile.rb:134:in `initialize'
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluent-plugin-td-0.10.13/lib/fluent/plugin/out_tdlog.rb:249:in `new'
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluent-plugin-td-0.10.13/lib/fluent/plugin/out_tdlog.rb:249:in `write'
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.30/lib/fluent/buffer.rb:279:in `write_chunk'
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.30/lib/fluent/buffer.rb:263:in `pop'
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.30/lib/fluent/output.rb:303:in `try_flush'
2013-01-23 17:55:13 +0900: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.30/lib/fluent/output.rb:120:in `run'
@hsbt
Copy link
Author

hsbt commented Jan 23, 2013

 <match td.**>
    type tdlog
    apikey key
    use_ssl true
    auto_create_table false
    database foo
    table bar
    flush_interval 30s
    buffer_type file
    buffer_path /var/log/td-agent/buffer/td
  </match>
  <source>
    type tail
    format /^(?<remote_addr>[^ ]*) (?<host>[^ ]*) (?<remote_user>[^ ]*) \[(?<time_local>[^\]]*)\] "(?<method>\S+)(?: +(?<path>[^ ]*) +\S*)?" (?<code>[^ ]*) (?<size>[^ ]*) "(?<referer>[^\"]*)" "(?<agent>[^\"]*)" "(?<x_forward>[^\"]*)" (?<upstream_response>.*)$/
    path /var/log/nginx/access.log
    tag td.service.nginx.access
  </source>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment