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
Added Path_Key to tail config #90
Conversation
Added Path_Key to config so we capture name of file being tailed.
Updated tests so we pass.
Pull Request Test Coverage Report for Build 259117880
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review finished from my side.
Changed Path_Key from filename to a more descriptive filePath.
Could you run |
pkg/integrations/v4/logs/cfg.go
Outdated
@@ -482,7 +482,7 @@ func newFBExternalConfig(l LogExternalFBCfg) FBCfgExternal { | |||
func newFileInput(filePath string, dbPath string, tag string, bufSize int) FBCfgInput { | |||
return FBCfgInput{ | |||
Name: fbInputTypeTail, | |||
Path_Key: "filename", | |||
Path_Key: "filePath", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Path_Key: "filePath", | |
PathKey: "filePath", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the changes, looks good.
Added Path_Key to config so we capture name of file being tailed.