beats icon indicating copy to clipboard operation
beats copied to clipboard

Filebeat crashes on fatal error: concurrent map read and map write

Open Shemeikka opened this issue 9 years ago • 2 comments

Hi,

I'm running Filebeat in docker container and after some time, filebeat crashed with fatal error: concurrent map read and map write.

I had about 20 docker containers running on localhost with filebeat and logstash. Filebeat forwarded all container logs to logstash which outputs those to a file in container's name.

Both filebeat and logstash only log to a file.

Log can be found: https://gist.github.com/Shemeikka/b690f43ec446445281fa011eeec9d658

Filebeat image: docker.elastic.co/beats/filebeat:6.0.0-beta2

Filebeat config:

filebeat.prospectors:
- type: log
  paths:    
    - /var/lib/docker/containers/*/*.log
  json.message_key: log
  json.keys_under_root: true
  fields:    
    document_type: docker_log
  processors:
  - add_docker_metadata: ~

  multiline.pattern: '^connect: |^send: |^reply: |^data: '
  multiline.negate: false
  multiline.match: after

logging.level: info
logging.to_files: true
logging.to_syslog: false
logging.files:
  path: /var/log/
  name: filebeat.log
  keepfiles: 7
  rotateeverybytes: 104857600

fields_under_root: true

Shemeikka avatar Oct 03 '17 12:10 Shemeikka

@Shemeikka Thanks for reporting this. Any chance you could switch to 6.0.0-rc1 to see if this still happens. It seems to be a race condition in the publisher and quite a bit of change happened int eh publisher between beta2 and rc1.

ruflin avatar Oct 03 '17 14:10 ruflin

This could also be https://github.com/elastic/beats/issues/5147, I opened a PR for that one

exekias avatar Oct 03 '17 15:10 exekias