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

Start using syslog identifier #2569

Merged

Conversation

portante
Copy link
Member

@portante portante commented Dec 3, 2021

No description provided.

This makes journalctl entries go from looking like (notice the plain
"journal" string that formats because the identifier is missing):

   Dec 03 02:43:02 srv.example.com journal[1402211]: WARNING 1402211 \
   140429661997952 pbench-backup-tarballs.pbench-backup-tarballs \
   sanity_check 132 -- Bucket not defined in config file - S3 backup \
   is disabled.

To (each pbench command being run shows up):

   Dec 03 02:43:02 srv.example.com pbench-backup-tarballs[1402211]: \
   WARNING 1402211 140429661997952 \
   pbench-backup-tarballs.pbench-backup-tarballs \
   sanity_check 132 -- Bucket not defined in config file - S3 backup \
   is disabled.

And one can use the journalctl `--identifier` switch to filter as well:

   journalctl -f --identifier=pbench-unpack-tarballs-small
Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@portante portante merged commit ab69f79 into distributed-system-analysis:b0.69 Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants