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 dev-logging stack to enable scraping logs in structured form with lnav #163

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

soenkeliebau
Copy link
Member

This adds the "dev-logging" stack, which consists of only the vector aggregator, configured to log everything it receives to the console of the pod in json format.

This is designed to be used in conjunction with https://github.com/stackabletech/lnav_scripts/blob/main/vector-json.json to allow streaming logs directly from the vector pod to lnav with kubectl logs vector-aggregator-0 -f | grep "^{" | lnav
Note: The grep "^{" is necessary to get rid of vector startup logs that also land in its stdout. I'm sure there is a more elegant way for this, but it does the trick for now.

…outputting them to the vector pod's console in json format.

This is in order to be able to scrape the logs with lnav from there and display them in a nice format.
@soenkeliebau soenkeliebau requested a review from a team March 12, 2025 13:30
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

Successfully merging this pull request may close these issues.

1 participant