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

Support customizing pos_file path #78

Closed
qingling128 opened this issue Jul 25, 2019 · 2 comments
Closed

Support customizing pos_file path #78

qingling128 opened this issue Jul 25, 2019 · 2 comments

Comments

@qingling128
Copy link

qingling128 commented Jul 25, 2019

[Problem]
When specifying a customized pos_file for in_systemd plugin, the value gets ignored.

[Version]
gem 'fluent-plugin-systemd' version '1.0.2'

[Config]

  <source>
    @type systemd
    filters [{"_SYSTEMD_UNIT":"docker.service"}]
    pos_file /var/log/k8s-gcp-journald-docker.pos
    read_from_head true
    tag "docker"
  </source>

[Warnings in the log]

2019-07-25 16:22:39 +0000 [warn]: parameter 'pos_file' in <source>
  @type systemd
  filters [{"_SYSTEMD_UNIT":"docker.service"}]
  pos_file /var/log/k8s-gcp-journald-docker.pos
  read_from_head true
  tag "docker"
</source> is not used.
@qingling128
Copy link
Author

Ah, in fact this is out-of-date. I think I just need to use https://docs.fluentd.org/storage.

@errm
Copy link
Collaborator

errm commented Aug 27, 2019

Yes with the current version of the plugin you can just use any storage plugin

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

2 participants