fluent / fluentd

Fluentd: Unified Logging Layer (project under CNCF)
https://www.fluentd.org
Apache License 2.0
12.9k stars 1.34k forks source link

Output stdout do not working #2612

Closed tuananh170489 closed 5 years ago

tuananh170489 commented 5 years ago

Hi guys, I have a case with below config but output to stdout do not working My config:

<source>
  @type tail
  path /var/log/td-agent/nagios-*-bandwidth.log
  pos_file /var/log/td-agent/nagios.pos
  <parse>
    @type regexp
    expression /^\[(?<time>.+)\] (?<title>[\w\s]+): (?<item>[\w-]+); (?<bandwidth>.+): (?<num>\d+);(?<alert>\w+);(?<type>\w+);(?<index>\d+);(?<message>.+)$/
    time_key time
    time_type unixtime
  </parse>
  tag opsview
  rotate_wait 5
  refresh_interval 60
  read_from_head true
</source>

<match opsview>
  @type stdout
  <format>
    @type stdout
    output_type json
  </format>
</match>

My config syntax is okie, but /var/log/td-agent/td-agent.log is empty. Can everybody help me? Thank a lot!

ganmacs commented 5 years ago

If you have further questions about Fluentd and plugins, please direct these to Mailing List. Don't use Github issue for asking questions. Here are examples:

https://github.com/fluent/fluentd/blob/07d9eecf0ce1413ab7873da84462b6f8fe9fae04/CONTRIBUTING.md

And at least, please follow the template of issue.