#
41167a2a |
| 10-Dec-2024 |
Jian Zhang <zhangjian.3032@bytedance.com> |
dreport: collecting all namespace journal logs
For BMCs that support multiple namespaces to manage logs, add the --namespace=* option to the journalctl command to collect all logs.
refer to systemd
dreport: collecting all namespace journal logs
For BMCs that support multiple namespaces to manage logs, add the --namespace=* option to the journalctl command to collect all logs.
refer to systemd-journald.service.html[0].
Tested: 1. Prepare a namespace configuration, to isolate logs (in general for the third-party code, like silicon vendor, etc), avoid too many unexpected to noise the system. ``` ~# cp /etc/systemd/journald.conf /etc/systemd/journald@intel.conf ~# mkdir -p /etc/systemd/system/com.intel.crashdump.service.d ~# echo "[Service]" > /etc/systemd/system/com.intel.crashdump.service.d/override.conf ~# echo "LogNamespace=intel" >> /etc/systemd/system/com.intel.crashdump.service.d/override.conf ~# reboot # or restart systemd-journald, and daemon-reload ````
2. using journalctl vs journalctl --namespace=* ``` ~# journalctl -u com.intel.crashdump.service Dec 10 16:56:49 xxx systemd[1]: Starting Intel BMC CPU Crashdump... Dec 10 16:56:55 xxx systemd[1]: Started Intel BMC CPU Crashdump. ```
``` ~# journalctl --namespace=* Dec 10 16:56:49 xxx systemd[1]: Starting Intel BMC CPU Crashdump... Dec 10 16:56:55 xxx systemd[1]: Started Intel BMC CPU Crashdump. Dec 10 16:56:57 xxx crashdump[258]: Crashdump version: .... Dec 10 16:56:57 xxx crashdump[258]: Initializing crashdump... .... ```
3. After this change, check the journal logs, and the journal logs should be collect the logs from all namespaces. ``` cat journal-pretty.log| ag "Initializing crashdump" "MESSAGE" : "Initializing crashdump...", ```
[0]: https://www.freedesktop.org/software/systemd/man/latest/systemd-journald.service.html#Journal%20Namespaces
Change-Id: I70f33eb6119cbe041bb0dc2aac527e02d8f5e757 Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>
show more ...
|
#
6d7f753b |
| 04-Dec-2018 |
Marri Devender Rao <devenrao@in.ibm.com> |
Specify plugins to be invoked for chekstop error
Set the config value for the scripts that need to be invoked during dump collection for checkstop error.
Checkstop dump enum type has value 4.
Chan
Specify plugins to be invoked for chekstop error
Set the config value for the scripts that need to be invoked during dump collection for checkstop error.
Checkstop dump enum type has value 4.
Change-Id: Ic75fa0f800ed459b8e493b191eec18f144664655 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
show more ...
|
#
14d790fe |
| 15-Oct-2017 |
Jayanth Othayoth <ojayanth@in.ibm.com> |
dreport: Added journal pretty log plugin
Plugin used for collecting journal pretty log data.
Change-Id: I5923708f0f08800d8c3d75faeabc2b9b09999b2d Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.co
dreport: Added journal pretty log plugin
Plugin used for collecting journal pretty log data.
Change-Id: I5923708f0f08800d8c3d75faeabc2b9b09999b2d Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
show more ...
|