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

Change journal query to use the unit #26

Open
farshidtz opened this issue Apr 24, 2024 · 1 comment
Open

Change journal query to use the unit #26

farshidtz opened this issue Apr 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@farshidtz
Copy link
Member

return fmt.Sprintf("sudo journalctl --since \"%s\" --no-pager | grep \"%s\"|| true",
start.Format("2006-01-02 15:04:05"),
name)

can be changed to query based on the unit (-u snap.%s.*) instead of filtering.

@farshidtz farshidtz added the enhancement New feature or request label Apr 24, 2024
@farshidtz
Copy link
Member Author

This is often polluted with systemd status messages. Using the identifier i.e. app's name gives a better output, but it requires changing the function signature to pass app's name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant