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

May we add fingerprint in file source context for log event? #17071

Open
WENPIN1 opened this issue Apr 6, 2023 · 0 comments
Open

May we add fingerprint in file source context for log event? #17071

WENPIN1 opened this issue Apr 6, 2023 · 0 comments
Labels
source: file Anything `file` source related type: feature A value-adding code addition that introduce new functionality.

Comments

@WENPIN1
Copy link

WENPIN1 commented Apr 6, 2023

Dear Vector developer,

I'm seeking a unique identity for file source not changed until the content is truncated after application restart.

For example, an application keeps appending log events as a same file until this application has been restarted (e.g. java garbage collection log).
$./myApp > myapp.log &

If I am unable to set the output file name("myapp.log") into a unique name, it won't have a unique file name in the log event while using vector file source.
I think fingerprint is a good alternative for this point when the log file name is restricted.
https://vector.dev/docs/reference/configuration/sources/file/#fingerprint

It is suggested to have a fingerprint in the output log events for uniquely identifying the log file for subsequent use.
https://vector.dev/docs/reference/configuration/sources/file/#output-logs

Thank you!

-WENPIN

@WENPIN1 WENPIN1 changed the title May you add fingerprint in file source context for log event? May we add fingerprint in file source context for log event? Apr 6, 2023
@neuronull neuronull added type: feature A value-adding code addition that introduce new functionality. source: file Anything `file` source related labels Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source: file Anything `file` source related type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

No branches or pull requests

2 participants