-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: added support for reading locally generated file logs via vector inst… #5166
base: main
Are you sure you want to change the base?
Conversation
Hey @aayushdhiman01 , So the logs would be written in a shared local folder and we mount that folder in vector to read them, You can enable file logging via the config file(development/docker_compose.toml), The vector/loki/grafana cotainers can be run via |
@lsampras can you check the changes made, mounted the logs folder in vector , in docker-compose file and enabled file logging in development.toml and docker_compose.toml file. |
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.
We need to add extra labels to distinguish between file & console logs,
can add a label like source = console/file
Also can you share screenshots of the file logs in loki
@lsampras i am not able to connect to loki server in grafana,monitoring containers are running. Made the commented changes. |
Type of Change
Description
Added the code for reading locally generated file logs via vector instance, but need to verify that local logs are coming, can u guide how to check that?
Additional Changes
Motivation and Context
How did you test it?
Checklist
cargo +nightly fmt --all
cargo clippy