Skip to content

buffer flush failed by unexpected Zlib::DataError #1903

@google238

Description

@google238

fluted v1.0,this is my configure rule:

<match myprofile.*.*>
  @type file
  path /var/log/td-agent/${tag[1]}/%Y%m/${tag[2]}/myprofile.${tag[2]}.%Y%m%d
  compress gzip
  append true
  <buffer tag, time>
    @type memory
    flush_mode interval
    flush_interval 30s 
  </buffer>
  <format>
    @type single_value
  </format>
</match>

there are so many warn log like this:
2018-03-19 00:18:51 +0900 [warn]: #0 failed to flush the buffer. retry_time=0 next_retry_seconds=2018-03-19 00:18:52 +0900 chunk="567b15a13fd0f003c72c7e0e534dbf3e" error_class=Zlib::DataError error="data error"
2018-03-19 00:18:51 +0900 [warn]: #0 suppressed same stacktrace
2018-03-19 00:18:52 +0900 [warn]: #0 retry succeeded. chunk_id="567b15a13fd0f003c72c7e0e534dbf3e"

the result file cannot open correctly:
gzip: invalid compressed data--crc error
gzip: invalid compressed data--length error
what happend??

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions