小编Vla*_*lav的帖子

如何通过journalctl合并多个期刊的输出?

我需要查看所有 postgresql 日志。我尝试:

$ journalctl -f -u postgresql.service SYSLOG_IDENTIFIER=postgres
-- Logs begin at ?? 2013-03-06 00:57:40 KRAT. --
??? 11 23:41:07 nuzzflonk postgres[2432]: LOG:  database system was interrupted; last known up at 2013-08-11 20:12:28 KRAT
??? 11 23:41:07 nuzzflonk postgres[2432]: LOG:  database system was not properly shut down; automatic recovery in progress
??? 11 23:41:07 nuzzflonk postgres[2432]: LOG:  record with zero length at 5/DACF208
??? 11 23:41:07 nuzzflonk postgres[2432]: LOG:  redo is not required
??? 11 23:41:07 nuzzflonk postgres[2432]: LOG: …
Run Code Online (Sandbox Code Playgroud)

systemd

9
推荐指数
1
解决办法
3813
查看次数

标签 统计

systemd ×1