Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With <secondary> and the path parameter, fluentd refuse to start #1330

Closed
christiankakesa opened this issue Nov 27, 2016 · 3 comments · Fixed by #1338
Closed

With <secondary> and the path parameter, fluentd refuse to start #1330

christiankakesa opened this issue Nov 27, 2016 · 3 comments · Fixed by #1338
Labels
bug Something isn't working

Comments

@christiankakesa
Copy link

When using and path parameter, fluentd refuse to start and complain with:

Parameter 'path' has timestamp placeholders, but chunk key 'time' is not configured

  • fluentd v0.14.9.
  • GNU/Linux CentOS-7.

Configuration file

<source>
    @type forward
    port 42423
</source>

<match fluent.**>
    @type null
</match>

<match **>
    @type forward
    
    <server>
        host host_1
        port 10020
        weight 33
    </server>
    <server>
        host host_2
        port 10020
        weight 33
    </server>
    <server>
        host host_3
        port 10020
        weight 33
    </server>

    <server>
        host host_1
        port 10021
        weight 33
        standby true
    </server>
    <server>
        host host_2
        port 10021
        weight 33
        standby true
    </server>
    <server>
        host host_2
        port 10021
        weight 33
        standby true
    </server>

    <secondary>
        @type file
        path fluent/var/log/aws_s3/forward-failed
    </secondary>

    flush_interval 10
    send_timeout 60
    heartbeat_type tcp
    heartbeat_interval 1
    recover_wait 10
    hard_timeout 120
    expire_dns_cache nil
    phi_threshold 16
    phi_failure_detector true
</match>

Error output:

2016-11-26 15:33:40 +0100 [info]: reading config file path="./fluent/fluent.conf"
2016-11-26 15:33:40 +0100 [info]: starting fluentd-0.14.9
2016-11-26 15:33:40 +0100 [info]: spawn command to main: /usr/local/rvm/rubies/ruby-2.3.1/bin/ruby -Eascii-8bit:ascii-8bit /usr/local/rvm/gems/ruby-2.3.1@fluentd/bin/fluentd -c ./fluent/fluent.conf --under-supervisor
2016-11-26 15:33:42 +0100 [info]: reading config file path="./fluent/fluent.conf"
2016-11-26 15:33:42 +0100 [info]: starting fluentd-0.14.9 without supervision
2016-11-26 15:33:42 +0100 [info]: gem 'fluent-mixin-config-placeholders' version '0.4.0'
2016-11-26 15:33:42 +0100 [info]: gem 'fluent-plugin-forest' version '0.3.3'
2016-11-26 15:33:42 +0100 [info]: gem 'fluent-plugin-s3' version '0.7.2'
2016-11-26 15:33:42 +0100 [info]: gem 'fluentd' version '0.14.9'
2016-11-26 15:33:42 +0100 [info]: adding match pattern="fluent.**" type="null"
2016-11-26 15:33:42 +0100 [info]: adding match pattern="**" type="forward"
2016-11-26 15:33:42 +0100 [error]: config error file="./fluent/fluent.conf" error="Parameter 'path' has timestamp placeholders, but chunk key 'time' is not configured"
2016-11-26 15:33:42 +0100 [info]: Worker 0 finished unexpectedly with status 2
2016-11-26 15:33:42 +0100 [info]: Received graceful stop
@tagomoris
Copy link
Member

I pushed a pull-request to fix this issue. #1338.

@tagomoris tagomoris added the bug Something isn't working label Nov 30, 2016
@christiankakesa
Copy link
Author

OK, I tried the github code, it works.

@tagomoris
Copy link
Member

@FeNicks Thank you to confirm it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants