Filebeats not sendind any logs (Already enable)

My config looks like

filebeat.prospectors:
- type: log
  enabled: true
  paths:
    - /opt/app/logs/info.log
output.file:
  path: "/tmp/filebeat"
  filename: filebeat
logging.level: debug
logging.to_files: true
logging.files:
  path: /var/log/filebeat/dbops-log-collector
  name: dbops-log-collector.log
  keepfiles: 5
  permissions: 0644

the filebeat log is

2019-06-05T14:48:17.259+0700	INFO	[monitoring]	log/log.go:124	Non-zero metrics in the last 30s	{"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":60,"time":63},"total":{"ticks":140,"time":143,"value":140},"user":{"ticks":80,"time":80}},"info":{"ephemeral_id":"10462772-07c9-482e-8d19-a281af1001ff","uptime":{"ms":840011}},"memstats":{"gc_next":4194304,"memory_alloc":1291312,"memory_total":8015744}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":1,"events":{"active":0}}},"registrar":{"states":{"current":0}},"system":{"load":{"1":17.04,"15":17.12,"5":17.09,"norm":{"1":4.26,"15":4.28,"5":4.2725}}}}}}

I can't figure out what's the mistake here.

Are you sure /opt/app/logs/info.log exists? Filebeat does not report if it cannot find a file, but waits for it to show up. Could you please share your debug logs?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.