-
Notifications
You must be signed in to change notification settings - Fork 3
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 _MACHINE_ID field to unique record identifier #20
Comments
What about _MACHINE_ID= ( The machine ID of the originating host, as available in machine-id(5) )? https://www.freedesktop.org/software/systemd/man/machine-id.html |
Sounds good. Could you please verify that it is preserved on journal
forwarding and you can actually distinguish messages coming from different
hosts? The best test would be to do it with tlog messages and verify that
recordings can be distinguished.
…On Aug 21, 2017 10:14 AM, "Kyrylo Gliebov" ***@***.***> wrote:
What about _MACHINE_ID= ( The machine ID of the originating host, as
available in machine-id(5) )?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAhhfs4zcRZBcDvb5FKDR-DJdRA1anjWks5saTxigaJpZM4O7bhX>
.
|
|
Hmm, I guess when you forward journal log from one machine to another the other machine log just ends up in the target machine's journal. |
I've add machine ID, but strictly from the front-end perspective, we should also have the same session ID stored in journal. Right? |
Since journald can also receive logs from other hosts, it is possible that TLOG_REC values can collide in the same journal, since they would be generated on separate hosts.
Use _HOSTNAME in addition to TLOG_REC to uniquely identify recordings. However, if it's not actually guaranteed to be unique (likely), check if there is a more reliable way to identify origin hosts for journal messages.
See https://www.freedesktop.org/software/systemd/man/systemd-journal-remote.html and https://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html
The text was updated successfully, but these errors were encountered: