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

KAFKA_TEMPLATE is not effective #14

Open
kitttyHappy opened this issue Sep 29, 2020 · 0 comments
Open

KAFKA_TEMPLATE is not effective #14

kitttyHappy opened this issue Sep 29, 2020 · 0 comments

Comments

@kitttyHappy
Copy link

  • question:

the document notes
KAFKA_TEMPLATE="time="{{.Time}}" container_name="{{.Container.Name}}" source="{{.Source}}" data="{{.Data}}""
but it's not effective.
the error is kafka: template: kafka:1:11: executing "kafka" at <.Time>: can't evaluate field Time in type kafka.KafkaMessage

  • reason

logspout has changed.

  • resolve

use this:
KAFKA_TEMPLATE="time="{{.Message.Time}}" container_name="{{.Message.Container.Name}}" source="{{.Message.Source}}" data="{{.Message.Data}}""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant