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

Add a nameable file tag to file input plugin #6650

Merged
merged 2 commits into from Nov 13, 2019

Conversation

nwneisen
Copy link
Contributor

This PR adds the ability to create and name a tag containing the filename of the file parsed using the file input plugin. Leaving this option blank will cause the tag not to be generated.

Resolves #6644.

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

Signed-off-by: Nick Neisen <nwneisen@gmail.com>
plugins/inputs/file/file.go Outdated Show resolved Hide resolved
plugins/inputs/file/file.go Outdated Show resolved Hide resolved
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
@danielnelson danielnelson added this to the 1.13.0 milestone Nov 13, 2019
@danielnelson danielnelson added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Nov 13, 2019
@danielnelson danielnelson merged commit 20bb673 into influxdata:master Nov 13, 2019
@nwneisen nwneisen deleted the add-file-name-tag branch November 13, 2019 21:01
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the ability to use filename as a tag in files plugin
2 participants