Hi, running filebeat 6.2.2
Today I noticed filebeat was going bonkers... In /var/log/messages I see allot of these...
Aug 30 13:30:43 master-0002 kernel: Out of memory: Kill process 19154 (filebeat) score 818 or sacrifice child
Aug 30 13:31:40 master-0002 filebeat: fatal error: runtime: out of memory
The metrics output (as you can see it's not monitoring many files:
2018-08-30T15:37:15.442Z INFO [monitoring] log/log.go:124 Non-zero metrics in the last 30s {"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":31800,"time":31803},"total":{"ticks":58140,"time":58143,"value":58140},"user":{"ticks":26340,"time":26340}},"info":{"ephemeral_id":"2e507519-2788-4e40-b4e4-3964f97af9c5","uptime":{"ms":38552}},"memstats":{"gc_next":13559486432,"memory_alloc":9792227856,"memory_total":21843088664,"rss":15713218560}},"filebeat":{"events":{"added":2,"done":2},"harvester":{"open_files":1,"running":1,"started":1}},"libbeat":{"config":{"module":{"running":0}},"output":{"type":"kafka"},"pipeline":{"clients":2,"events":{"active":0,"filtered":2,"total":2}}},"registrar":{"states":{"current":1,"update":2},"writes":2},"system":{"cpu":{"cores":4},"load":{"1":0.66,"15":0.27,"5":0.36,"norm":{"1":0.165,"15":0.0675,"5":0.09}}}}}}
The config:
filebeat.prospectors:
- type: log
paths:
- /var/lib/mesos/slave/slaves/*/frameworks/*/executors/*/runs/latest/stdout*
- /var/lib/mesos/slave/slaves/*/frameworks/*/executors/*/runs/latest/stderr*
exclude_files: ["stdout.logrotate.state", "stdout.logrotate.conf", "stderr.logrotate.state", "stderr.logrotate.conf"]
fields:
source_type: "framework"
fields_under_root: true
tail_files: false
- type: log
paths:
- /var/log/mesos/*.log
- /var/log/dcos/dcos.log
fields:
source_type: "dcos"
fields_under_root: true
tail_files: false
output.kafka:
hosts: ["xxxxxx:9092"]
version: 0.11.0.0
topic: "app-logs"
partition.round_robin:
reachable_only: true
required_acks: -1
max_message_bytes: 2000000