Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

Documentation: document per-app logs #2651

Merged
merged 1 commit into from
May 23, 2016
Merged

Conversation

iaguis
Copy link
Member

@iaguis iaguis commented May 18, 2016

Also, update logs examples.

$ journalctl -M rkt-bc3c1451-2e81-45c6-aeb0-807db44e31b4 SYSLOG_IDENTIFIER=etcd

[...]
$ journalctl -M rkt-bc3c1451-2e81-45c6-aeb0-807db44e31b4 SYSLOC_IDENTIFIER=redis
Copy link
Contributor

Choose a reason for hiding this comment

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

sysloc


[...]
$ journalctl -M rkt-bc3c1451-2e81-45c6-aeb0-807db44e31b4 -t redis

Copy link
Contributor

Choose a reason for hiding this comment

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

any need for this blank line?

@lucab
Copy link
Member

lucab commented May 18, 2016

#2620 is somehow related to this. While reviewing that, I was wondering if we could/should update existing examples to always use _HOSTNAME= and -m, unifying handling of running and non-running pods. Do you think it is ok or is that not going to work?

@iaguis
Copy link
Member Author

iaguis commented May 18, 2016

_HOSTNAME won't work with the rkt pod UUID if the user started the pod with a custom hostname (--hostname), _MACHINE_ID should work though.

[...]
```

Additionaly, logs can be programatically accessed via the [sd-journal API](https://www.freedesktop.org/software/systemd/man/sd-journal.html).
Copy link
Contributor

Choose a reason for hiding this comment

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

programmatically

Copy link
Member Author

Choose a reason for hiding this comment

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

📖

Also, update logs examples.
@iaguis iaguis merged commit 65e6e68 into rkt:master May 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants