{"id":684,"date":"2014-03-24T02:05:19","date_gmt":"2014-03-23T17:05:19","guid":{"rendered":"http:\/\/1bed.allright.life\/?p=684"},"modified":"2020-04-18T20:21:55","modified_gmt":"2020-04-18T11:21:55","slug":"systemd","status":"publish","type":"post","link":"https:\/\/1bed.allright.life\/?p=684","title":{"rendered":"systemd \u306e\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b journalctl"},"content":{"rendered":"<p><a href=\"http:\/\/1bed.allright.life\/?p=632\">SSD \u306b\u512a\u3057\u3044\u8a2d\u5b9a\u3063\u3066\u306a\u3093\u3060\u308d\u3046\uff1f<\/a> \u3092Fedora 19 \u306b\u3082\u3084\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3063\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u305f\u3002<\/p>\n<p>\u305d\u3046\u3059\u308b\u3068 \/var\/log \u306b journal \u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3042\u308a\u3001800MB \u8fd1\u3044\u30ed\u30b0\u304c\u6e9c\u307e\u3063\u3066\u3044\u308b\u3002journal \u3068\u898b\u3066\u3001\u4e00\u77ac\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30e2\u30ce\u304b\u3068\u30ae\u30e7\u30c3\u3068\u3057\u305f\u3051\u3069\u8abf\u3079\u305f\u3089 systemd \u306e\u30ed\u30b0\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u4f7f\u3063\u305f\u4e8b\u306a\u3044\u304b\u3089 systemd \u306f\u3088\u304f\u5224\u3089\u306a\u304b\u3063\u305f\u3002<br \/>\n\u3068\u308a\u3042\u3048\u305a\u5206\u304b\u308b\u7bc4\u56f2\u3067\u8abf\u3079\u308b\u3002<\/p>\n<p>\u5148\u305a\u306f journal \u3092 more \u3067\u898b\u3066\u307f\u308b&#8230; \u30d0\u30a4\u30ca\u30ea\u3067\u3057\u305f\uff57 journal \u306e\u30ed\u30b0\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u306f journalctl \u3068\u3044\u3046\u3089\u3057\u3044\u3002<\/p>\n<h3>\u30d8\u30eb\u30d7\u306e\u8868\u793a<\/h3>\n<pre><code class=\"language-bash\">$ sudo journalctl -h # or journalctl --help<\/code><\/pre>\n<h3>\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u78ba\u8a8d<\/h3>\n<p>\u8a66\u3057\u306b\u6253\u3063\u3066\u307f\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u3060\u3063\u305f\u306e\u3067\u3001204 \u3063\u3066\u3053\u3068\u306a\u306e\u304b\u306a\u3002<\/p>\n<pre><code class=\"language-bash\">$ sudo journalctl --version\nsystemd 204\n+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ<\/code><\/pre>\n<h3>\u30da\u30fc\u30b8\u6a5f\u80fd\u306a\u3057<\/h3>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f | less<br \/>\n\u3067\u30da\u30fc\u30b8\u30f3\u30b0\u3057\u3066\u3044\u308b\u5f62\u306b\u306a\u308b\u304c\u3001\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u308b\u3068\u5168\u90e8\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n\u7279\u5b9a\u306e\u5358\u8a9e\u3092\u63a2\u3057\u3066 grep \u3059\u308b\u6642\u3068\u304b\u306b\u6709\u52b9\u305d\u3046\u3002<\/p>\n<pre><code class=\"language-bash\">$ sudo journalctl --no-pager<\/code><\/pre>\n<h3>\u51fa\u529b\u3092 plain text \u306b\u3059\u308b<\/h3>\n<p>\u51fa\u529b\u304c plain text \u3067\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u8868\u793a\u3067\u306f\u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9\u304c\u5165\u3063\u3066\u3044\u3066\u3001\u6587\u5b57\u306b\u88c5\u98fe\u304c\u3064\u3044\u3066\u3044\u308b\u3002<\/p>\n<pre><code class=\"language-bash\">$ sudo journalctl --full<\/code><\/pre>\n<h3>\u51fa\u529b\u3092\u5b8c\u5168\u8868\u793a<\/h3>\n<p>\u30ed\u30b0\u3092\u7701\u7565\u305b\u305a\u8868\u793a\u3055\u305b\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u898b\u305f\u6642\u7528\u306b\u6587\u5b57\u306e\u88c5\u98fe\u304c\u5165\u3063\u3066\u3044\u308b\u3002<\/p>\n<pre><code class=\"language-bash\">$ sudo journalctl -a  # or journalctl --all<\/code><\/pre>\n<h3>\u30ed\u30b0\u306e\u6700\u65b0(\u672b\u5c3e)\u3092\u8868\u793a\u3057\u72b6\u614b\u3092\u66f4\u65b0\u3057\u7d9a\u3051\u308b<\/h3>\n<p>\u6614\u306e tail -f \/var\/log\/message \u307f\u305f\u3044\u306a\u3082\u3093\u304b\u306a\u3002<\/p>\n<pre><code class=\"language-bash\">$ sudo journalctl -f  # or journalctl --follow<\/code><\/pre>\n<h3>\u30ed\u30b0\u306e\u6700\u65b0(\u672b\u5c3e) 1000 \u4ef6\u3092\u8868\u793a\u3059\u308b<\/h3>\n<p>\u6614\u306e tail -n 1000 \/var\/log\/message | less \u307f\u305f\u3044\u306a\u3082\u3093\u304b\u306a\u3002<\/p>\n<pre><code class=\"language-bash\">$ sudo journalctl -e  # or journalctl --pager-end<\/code><\/pre>\n<h3>\u30ed\u30b0\u306e\u6700\u65b0(\u672b\u5c3e)\u304b\u3089\u6307\u5b9a\u3057\u305f\u4ef6\u6570\u3092\u8868\u793a\u3059\u308b<\/h3>\n<p>\u6614\u306e tail -n \u4ef6\u6570 \/var\/log\/message | less \u307f\u305f\u3044\u306a\u3082\u3093\u304b\u306a\u3002<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f 10 \u4ef6\u8868\u793a\u3002<\/p>\n<pre><code class=\"language-bash\">$ sudo journalctl -n  # or journalctl --lines<\/code><\/pre>\n<p>\u672b\u5c3e\u304b\u3089 20 \u4ef6\u8868\u793a\u3059\u308b\u4f8b\u3002<\/p>\n<pre><code class=\"language-bash\">$ sudo journalctl -n 20  # or journalctl --lines=20<\/code><\/pre>\n<h3>\u5168\u30ed\u30b0\u306e\u51fa\u529b<\/h3>\n<blockquote>\n<p>Show all stored output lines, even in follow mode. Undoes the effect<br \/>\nof &#8211;lines=.<\/p>\n<\/blockquote>\n<p>\u3063\u3066\u30d8\u30eb\u30d7\u306b\u66f8\u3044\u3066\u3042\u308b\u3051\u3069\u3001\u624b\u5143\u306e\u74b0\u5883\u3067\u9055\u3044\u304c\u3067\u306a\u3044\u3002<br \/>\n\u6050\u3089\u304f\u3001\u5168\u3066\u306e\u30ed\u30b0\u3092\u51fa\u529b\u3059\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u306a\u3002 \u3061\u306a\u307f\u306b &#8211;lines<br \/>\n\u306f\u7121\u52b9\u5316\u3059\u308b\u3063\u307d\u3044\u3002<\/p>\n<pre><code class=\"language-bash\">$ sudo journalctl --no-tail<\/code><\/pre>\n<h3>\u51fa\u529b\u3092\u53cd\u8ee2\u3055\u305b\u308b<\/h3>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u53e4\u3044\u9806\u3067\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u308b\u304c\u3001\u65b0\u3057\u3044\u9806\u306b\u8868\u793a\u3055\u305b\u308b\u3002<\/p>\n<pre><code class=\"language-bash\">$ sudo journalctl -r  # or journalctl --reverse<\/code><\/pre>\n<h3>\u51fa\u529b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u5909\u3048\u308b<\/h3>\n<ul>\n<li>short: \u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u51fa\u529b\u5f62\u5f0f<\/li>\n<li>short-monotonic: \u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u304c\u7d4c\u904e\u6642\u9593\u306b\u306a\u308a\u3001\u8868\u793a\u304c\u7c21\u7d20\u5316\u3055\u308c\u308b<\/li>\n<li>verbose: \u5168\u3066\u306e\u884c\u306b\u5bfe\u3057\u3066\u8a73\u7d30\u306a\u30ed\u30b0\u3092\u8868\u793a\u3059\u308b<\/li>\n<li>export: journal \u3092 plain-text (Journal Export Format \u5f62\u5f0f)<br \/>\n\u3067\u51fa\u529b\u3059\u308b<\/li>\n<li>json: 1\u30c7\u30fc\u30bf 1\u884c\u3065\u3064 JSON \u5f62\u5f0f\u3067\u51fa\u529b\u3059\u308b<\/li>\n<li>json-pretty: JSON \u5f62\u5f0f\u3060\u304c\u3001\u4eba\u306b\u898b\u3084\u3059\u3044\u5f62(\u8907\u6570\u884c)\u306b\u6210\u5f62\u3055\u308c\u3066\u3044\u308b<\/li>\n<li>json-sse: Server-Sent Events \u306b\u5411\u3044\u305f JSON<\/li>\n<\/ul>\n<p>JSON \u5f62\u5f0f\u3067\u306e\u51fa\u529b\u3059\u308b\u30b3\u30de\u30f3\u30c9\u4f8b<\/p>\n<pre><code class=\"language-bash\">$ sudo journalctl -o json# or journalctl --output=json<\/code><\/pre>\n<ul>\n<li>short \u3067\u306e\u51fa\u529b\u4f8b<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">-- Logs begin at \u6c34 2014-03-12 19:30:12 JST, end at \u6728 2014-03-13 02:35:59 JST. --\n 3\u6708 12 19:30:12 localhost.localdomain systemd-journal[66]: Allowing runtime journal files to grow to 245.7M.\n 3\u6708 12 19:30:12 localhost.localdomain kernel: Initializing cgroup subsys cpuset\n 3\u6708 12 19:30:12 localhost.localdomain kernel: Initializing cgroup subsys cpu\n 3\u6708 12 19:30:12 localhost.localdomain kernel: Initializing cgroup subsys cpuacct<\/code><\/pre>\n<ul>\n<li>short-monotonic \u3067\u306e\u51fa\u529b\u4f8b<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">-- Logs begin at \u6c34 2014-03-12 19:30:12 JST, end at \u6728 2014-03-13 02:36:23 JST. --\n[    2.177326] localhost.localdomain systemd-journal[66]: Allowing runtime journal files to grow to 245.7M.\n[    0.000000] localhost.localdomain kernel: Initializing cgroup subsys cpuset\n[    0.000000] localhost.localdomain kernel: Initializing cgroup subsys cpu\n[    0.000000] localhost.localdomain kernel: Initializing cgroup subsys cpuacct<\/code><\/pre>\n<ul>\n<li>verbose \u3067\u306e\u51fa\u529b\u4f8b<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">-- Logs begin at \u6c34 2014-03-12 19:30:12 JST, end at \u6728 2014-03-13 02:37:00 JST. --\n\u6c34 2014-03-12 19:30:12 JST [s=7cf0970b1bb44465b08531345d8fa9f3;i=1;b=de10f6f7c322406eb35df53b2218ed1b;m=21392e;t=4f46652629b05;x=79feb053e18e37af]\n        PRIORITY=6\n        _TRANSPORT=driver\n        MESSAGE=Allowing runtime journal files to grow to 245.7M.\n        _PID=66\n        _UID=0\n        _GID=0\n        _COMM=systemd-journal\n        _EXE=\/usr\/lib\/systemd\/systemd-journald\n        _CMDLINE=\/usr\/lib\/systemd\/systemd-journald\n        _SYSTEMD_CGROUP=\/system\/systemd-journald.service\n        _SYSTEMD_UNIT=systemd-journald.service\n        _SELINUX_CONTEXT=kernel\n        _BOOT_ID=de10f6f7c322406eb35df53b2218ed1b\n        _MACHINE_ID=7725dfc225d14958a625ddaaaea5962b\n        _HOSTNAME=localhost.localdomain\n\u6c34 2014-03-12 19:30:12 JST [s=7cf0970b1bb44465b08531345d8fa9f3;i=2;b=de10f6f7c322406eb35df53b2218ed1b;m=2139b0;t=4f46652629b87;x=5512d805b7c27a94]\n        PRIORITY=6\n        _BOOT_ID=de10f6f7c322406eb35df53b2218ed1b\n        _MACHINE_ID=7725dfc225d14958a625ddaaaea5962b\n        _HOSTNAME=localhost.localdomain\n        _SOURCE_MONOTONIC_TIMESTAMP=0\n        _TRANSPORT=kernel\n        SYSLOG_IDENTIFIER=kernel\n        MESSAGE=Initializing cgroup subsys cpuset<\/code><\/pre>\n<ul>\n<li>export \u3067\u306e\u51fa\u529b\u4f8b<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">__CURSOR=s=7cf0970b1bb44465b08531345d8fa9f3;i=1;b=de10f6f7c322406eb35df53b2218ed1b;m=21392e;t=4f46652629b05;x=79feb053e18e37af\n__REALTIME_TIMESTAMP=1394620212878085\n__MONOTONIC_TIMESTAMP=2177326\n_BOOT_ID=de10f6f7c322406eb35df53b2218ed1b\nPRIORITY=6\n_TRANSPORT=driver\nMESSAGE=Allowing runtime journal files to grow to 245.7M.\n_PID=66\n_UID=0\n_GID=0\n_COMM=systemd-journal\n_EXE=\/usr\/lib\/systemd\/systemd-journald\n_CMDLINE=\/usr\/lib\/systemd\/systemd-journald\n_SYSTEMD_CGROUP=\/system\/systemd-journald.service\n_SYSTEMD_UNIT=systemd-journald.service\n_SELINUX_CONTEXT=kernel\n_MACHINE_ID=7725dfc225d14958a625ddaaaea5962b\n_HOSTNAME=localhost.localdomain\n\n__CURSOR=s=7cf0970b1bb44465b08531345d8fa9f3;i=2;b=de10f6f7c322406eb35df53b2218ed1b;m=2139b0;t=4f46652629b87;x=5512d805b7c27a94\n__REALTIME_TIMESTAMP=1394620212878215\n__MONOTONIC_TIMESTAMP=2177456\n_BOOT_ID=de10f6f7c322406eb35df53b2218ed1b\nPRIORITY=6\n_MACHINE_ID=7725dfc225d14958a625ddaaaea5962b\n_HOSTNAME=localhost.localdomain\n_SOURCE_MONOTONIC_TIMESTAMP=0\n_TRANSPORT=kernel\nSYSLOG_IDENTIFIER=kernel\nMESSAGE=Initializing cgroup subsys cpuset<\/code><\/pre>\n<ul>\n<li>json \u3067\u306e\u51fa\u529b\u4f8b<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">\n{ &quot;__CURSOR&quot; : &quot;s=7cf0970b1bb44465b08531345d8fa9f3;i=1;b=de10f6f7c322406eb35df53b2218ed1b;m=21392e;t=4f46652629b05;x=79feb053e18e37af&quot;, &quot;__REALTIME_TIMESTAMP&quot; : &quot;1394620212878085&quot;, &quot;__MONOTONIC_TIMESTAMP&quot; : &quot;2177326&quot;, &quot;_BOOT_ID&quot; : &quot;de10f6f7c322406eb35df53b2218ed1b&quot;, &quot;PRIORITY&quot; : &quot;6&quot;, &quot;_TRANSPORT&quot; : &quot;driver&quot;, &quot;MESSAGE&quot; : &quot;Allowing runtime journal files to grow to 245.7M.&quot;, &quot;_PID&quot; : &quot;66&quot;, &quot;_UID&quot; : &quot;0&quot;, &quot;_GID&quot; : &quot;0&quot;, &quot;_COMM&quot; : &quot;systemd-journal&quot;, &quot;_EXE&quot; : &quot;\/usr\/lib\/systemd\/systemd-journald&quot;, &quot;_CMDLINE&quot; : &quot;\/usr\/lib\/systemd\/systemd-journald&quot;, &quot;_SYSTEMD_CGROUP&quot; : &quot;\/system\/systemd-journald.service&quot;, &quot;_SYSTEMD_UNIT&quot; : &quot;systemd-journald.service&quot;, &quot;_SELINUX_CONTEXT&quot; : &quot;kernel&quot;, &quot;_MACHINE_ID&quot; : &quot;7725dfc225d14958a625ddaaaea5962b&quot;, &quot;_HOSTNAME&quot; : &quot;localhost.localdomain&quot; }\n{ &quot;__CURSOR&quot; : &quot;s=7cf0970b1bb44465b08531345d8fa9f3;i=2;b=de10f6f7c322406eb35df53b2218ed1b;m=2139b0;t=4f46652629b87;x=5512d805b7c27a94&quot;, &quot;__REALTIME_TIMESTAMP&quot; : &quot;1394620212878215&quot;, &quot;__MONOTONIC_TIMESTAMP&quot; : &quot;2177456&quot;, &quot;_BOOT_ID&quot; : &quot;de10f6f7c322406eb35df53b2218ed1b&quot;, &quot;PRIORITY&quot; : &quot;6&quot;, &quot;_MACHINE_ID&quot; : &quot;7725dfc225d14958a625ddaaaea5962b&quot;, &quot;_HOSTNAME&quot; : &quot;localhost.localdomain&quot;, &quot;_SOURCE_MONOTONIC_TIMESTAMP&quot; : &quot;0&quot;, &quot;_TRANSPORT&quot; : &quot;kernel&quot;, &quot;SYSLOG_IDENTIFIER&quot; : &quot;kernel&quot;, &quot;MESSAGE&quot; : &quot;Initializing cgroup subsys cpuset&quot; }\n{ &quot;__CURSOR&quot; : &quot;s=7cf0970b1bb44465b08531345d8fa9f3;i=3;b=de10f6f7c322406eb35df53b2218ed1b;m=2139c8;t=4f46652629b9e;x=8db8687f57d40c13&quot;, &quot;__REALTIME_TIMESTAMP&quot; : &quot;1394620212878238&quot;, &quot;__MONOTONIC_TIMESTAMP&quot; : &quot;2177480&quot;, &quot;_BOOT_ID&quot; : &quot;de10f6f7c322406eb35df53b2218ed1b&quot;, &quot;PRIORITY&quot; : &quot;6&quot;, &quot;_MACHINE_ID&quot; : &quot;7725dfc225d14958a625ddaaaea5962b&quot;, &quot;_HOSTNAME&quot; : &quot;localhost.localdomain&quot;, &quot;_SOURCE_MONOTONIC_TIMESTAMP&quot; : &quot;0&quot;, &quot;_TRANSPORT&quot; : &quot;kernel&quot;, &quot;SYSLOG_IDENTIFIER&quot; : &quot;kernel&quot;, &quot;MESSAGE&quot; : &quot;Initializing cgroup subsys cpu&quot; }\n{ &quot;__CURSOR&quot; : &quot;s=7cf0970b1bb44465b08531345d8fa9f3;i=4;b=de10f6f7c322406eb35df53b2218ed1b;m=2139dd;t=4f46652629bb3;x=afad3e41687089bf&quot;, &quot;__REALTIME_TIMESTAMP&quot; : &quot;1394620212878259&quot;, &quot;__MONOTONIC_TIMESTAMP&quot; : &quot;2177501&quot;, &quot;_BOOT_ID&quot; : &quot;de10f6f7c322406eb35df53b2218ed1b&quot;, &quot;PRIORITY&quot; : &quot;6&quot;, &quot;_MACHINE_ID&quot; : &quot;7725dfc225d14958a625ddaaaea5962b&quot;, &quot;_HOSTNAME&quot; : &quot;localhost.localdomain&quot;, &quot;_SOURCE_MONOTONIC_TIMESTAMP&quot; : &quot;0&quot;, &quot;_TRANSPORT&quot; : &quot;kernel&quot;, &quot;SYSLOG_IDENTIFIER&quot; : &quot;kernel&quot;, &quot;MESSAGE&quot; : &quot;Initializing cgroup subsys cpuacct&quot; }\n{ &quot;__CURSOR&quot; : &quot;s=7cf0970b1bb44465b08531345d8fa9f3;i=5;b=de10f6f7c322406eb35df53b2218ed1b;m=2139ee;t=4f46652629bc4;x=78eecee17b32a43a&quot;, &quot;__REALTIME_TIMESTAMP&quot; : &quot;1394620212878276&quot;, &quot;__MONOTONIC_TIMESTAMP&quot; : &quot;2177518&quot;, &quot;_BOOT_ID&quot; : &quot;de10f6f7c322406eb35df53b2218ed1b&quot;, &quot;_MACHINE_ID&quot; : &quot;7725dfc225d14958a625ddaaaea5962b&quot;, &quot;_HOSTNAME&quot; : &quot;localhost.localdomain&quot;, &quot;_SOURCE_MONOTONIC_TIMESTAMP&quot; : &quot;0&quot;, &quot;_TRANSPORT&quot; : &quot;kernel&quot;, &quot;SYSLOG_IDENTIFIER&quot; : &quot;kernel&quot;, &quot;PRIORITY&quot; : &quot;5&quot;, &quot;MESSAGE&quot; : &quot;Linux version 3.13.5-103.fc19.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.8.2 20131212 (Red Hat 4.8.2-7) (GCC) ) #1 SMP Mon Mar 3 18:46:36 UTC 2014&quot; }<\/code><\/pre>\n<ul>\n<li>json-pretty \u3067\u306e\u51fa\u529b\u4f8b<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">{\n        &quot;__CURSOR&quot; : &quot;s=7cf0970b1bb44465b08531345d8fa9f3;i=1;b=de10f6f7c322406eb35df53b2218ed1b;m=21392e;t=4f46652629b05;x=79feb053e18e37af&quot;,\n        &quot;__REALTIME_TIMESTAMP&quot; : &quot;1394620212878085&quot;,\n        &quot;__MONOTONIC_TIMESTAMP&quot; : &quot;2177326&quot;,\n        &quot;_BOOT_ID&quot; : &quot;de10f6f7c322406eb35df53b2218ed1b&quot;,\n        &quot;PRIORITY&quot; : &quot;6&quot;,\n        &quot;_TRANSPORT&quot; : &quot;driver&quot;,\n        &quot;MESSAGE&quot; : &quot;Allowing runtime journal files to grow to 245.7M.&quot;,\n        &quot;_PID&quot; : &quot;66&quot;,\n        &quot;_UID&quot; : &quot;0&quot;,\n        &quot;_GID&quot; : &quot;0&quot;,\n        &quot;_COMM&quot; : &quot;systemd-journal&quot;,\n        &quot;_EXE&quot; : &quot;\/usr\/lib\/systemd\/systemd-journald&quot;,\n        &quot;_CMDLINE&quot; : &quot;\/usr\/lib\/systemd\/systemd-journald&quot;,\n        &quot;_SYSTEMD_CGROUP&quot; : &quot;\/system\/systemd-journald.service&quot;,\n        &quot;_SYSTEMD_UNIT&quot; : &quot;systemd-journald.service&quot;,\n        &quot;_SELINUX_CONTEXT&quot; : &quot;kernel&quot;,\n        &quot;_MACHINE_ID&quot; : &quot;7725dfc225d14958a625ddaaaea5962b&quot;,\n        &quot;_HOSTNAME&quot; : &quot;localhost.localdomain&quot;\n}\n{\n        &quot;__CURSOR&quot; : &quot;s=7cf0970b1bb44465b08531345d8fa9f3;i=2;b=de10f6f7c322406eb35df53b2218ed1b;m=2139b0;t=4f46652629b87;x=5512d805b7c27a94&quot;,\n        &quot;__REALTIME_TIMESTAMP&quot; : &quot;1394620212878215&quot;,\n        &quot;__MONOTONIC_TIMESTAMP&quot; : &quot;2177456&quot;,\n        &quot;_BOOT_ID&quot; : &quot;de10f6f7c322406eb35df53b2218ed1b&quot;,\n        &quot;PRIORITY&quot; : &quot;6&quot;,\n        &quot;_MACHINE_ID&quot; : &quot;7725dfc225d14958a625ddaaaea5962b&quot;,\n        &quot;_HOSTNAME&quot; : &quot;localhost.localdomain&quot;,\n        &quot;_SOURCE_MONOTONIC_TIMESTAMP&quot; : &quot;0&quot;,\n        &quot;_TRANSPORT&quot; : &quot;kernel&quot;,\n        &quot;SYSLOG_IDENTIFIER&quot; : &quot;kernel&quot;,\n        &quot;MESSAGE&quot; : &quot;Initializing cgroup subsys cpuset&quot;\n}<\/code><\/pre>\n<ul>\n<li>json-sse \u3067\u306e\u51fa\u529b\u4f8b<\/li>\n<\/ul>\n<pre><code>data: { &quot;__CURSOR&quot; : &quot;s=7cf0970b1bb44465b08531345d8fa9f3;i=1;b=de10f6f7c322406eb35df53b2218ed1b;m=21392e;t=4f46652629b05;x=79feb053e18e37af&quot;, &quot;__REALTIME_TIMESTAMP&quot; : &quot;1394620212878085&quot;, &quot;__MONOTONIC_TIMESTAMP&quot; : &quot;2177326&quot;, &quot;_BOOT_ID&quot; : &quot;de10f6f7c322406eb35df53b2218ed1b&quot;, &quot;PRIORITY&quot; : &quot;6&quot;, &quot;_TRANSPORT&quot; : &quot;driver&quot;, &quot;MESSAGE&quot; : &quot;Allowing runtime journal files to grow to 245.7M.&quot;, &quot;_PID&quot; : &quot;66&quot;, &quot;_UID&quot; : &quot;0&quot;, &quot;_GID&quot; : &quot;0&quot;, &quot;_COMM&quot; : &quot;systemd-journal&quot;, &quot;_EXE&quot; : &quot;\/usr\/lib\/systemd\/systemd-journald&quot;, &quot;_CMDLINE&quot; : &quot;\/usr\/lib\/systemd\/systemd-journald&quot;, &quot;_SYSTEMD_CGROUP&quot; : &quot;\/system\/systemd-journald.service&quot;, &quot;_SYSTEMD_UNIT&quot; : &quot;systemd-journald.service&quot;, &quot;_SELINUX_CONTEXT&quot; : &quot;kernel&quot;, &quot;_MACHINE_ID&quot; : &quot;7725dfc225d14958a625ddaaaea5962b&quot;, &quot;_HOSTNAME&quot; : &quot;localhost.localdomain&quot;}\n\ndata: { &quot;__CURSOR&quot; : &quot;s=7cf0970b1bb44465b08531345d8fa9f3;i=2;b=de10f6f7c322406eb35df53b2218ed1b;m=2139b0;t=4f46652629b87;x=5512d805b7c27a94&quot;, &quot;__REALTIME_TIMESTAMP&quot; : &quot;1394620212878215&quot;, &quot;__MONOTONIC_TIMESTAMP&quot; : &quot;2177456&quot;, &quot;_BOOT_ID&quot; : &quot;de10f6f7c322406eb35df53b2218ed1b&quot;, &quot;PRIORITY&quot; : &quot;6&quot;, &quot;_MACHINE_ID&quot; : &quot;7725dfc225d14958a625ddaaaea5962b&quot;, &quot;_HOSTNAME&quot; : &quot;localhost.localdomain&quot;, &quot;_SOURCE_MONOTONIC_TIMESTAMP&quot; : &quot;0&quot;, &quot;_TRANSPORT&quot; : &quot;kernel&quot;, &quot;SYSLOG_IDENTIFIER&quot; : &quot;kernel&quot;, &quot;MESSAGE&quot; : &quot;Initializing cgroup subsys cpuset&quot;}\n\ndata: { &quot;__CURSOR&quot; : &quot;s=7cf0970b1bb44465b08531345d8fa9f3;i=3;b=de10f6f7c322406eb35df53b2218ed1b;m=2139c8;t=4f46652629b9e;x=8db8687f57d40c13&quot;, &quot;__REALTIME_TIMESTAMP&quot; : &quot;1394620212878238&quot;, &quot;__MONOTONIC_TIMESTAMP&quot; : &quot;2177480&quot;, &quot;_BOOT_ID&quot; : &quot;de10f6f7c322406eb35df53b2218ed1b&quot;, &quot;PRIORITY&quot; : &quot;6&quot;, &quot;_MACHINE_ID&quot; : &quot;7725dfc225d14958a625ddaaaea5962b&quot;, &quot;_HOSTNAME&quot; : &quot;localhost.localdomain&quot;, &quot;_SOURCE_MONOTONIC_TIMESTAMP&quot; : &quot;0&quot;, &quot;_TRANSPORT&quot; : &quot;kernel&quot;, &quot;SYSLOG_IDENTIFIER&quot; : &quot;kernel&quot;, &quot;MESSAGE&quot; : &quot;Initializing cgroup subsys cpu&quot;}<\/code><\/pre>\n<h3>\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u30ab\u30bf\u30ed\u30b0\u3092\u8868\u793a\u3059\u308b<\/h3>\n<p>\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u30ab\u30bf\u30ed\u30b0\u306b\u6cbf\u3063\u305f\u30ed\u30b0\u3092\u51fa\u529b\u3059\u308b\u3002<br \/>\n\u30ed\u30b0\u306e\u5f62\u5f0f\u306f\u30e1\u30fc\u30eb(RFC822)\u306b\u985e\u4f3c\u3057\u3066\u3044\u308b\u3002<\/p>\n<pre><code class=\"language-bash\">$ sudo journalctl -x  # or journalctl --catalog<\/code><\/pre>\n<ul>\n<li>Journal Message Catalogs \u306e\u51fa\u529b\u4f8b<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">3\u6708 13 12:05:29 localhost.localdomain systemd-journal[66]: Journal started\n-- Subject: The Journal has been started\n-- Defined-By: systemd\n-- Support: http:\/\/lists.freedesktop.org\/mailman\/listinfo\/systemd-devel\n--\n-- The system journal process has been starting up, opened the journal\n-- files for writing and is now ready to process requests.\n 3\u6708 13 12:05:29 localhost.localdomain systemd[1]: Started Setup Virtual Console.\n-- Subject: Unit systemd-vconsole-setup.service has finished start-up\n-- Defined-By: systemd\n-- Support: http:\/\/lists.freedesktop.org\/mailman\/listinfo\/systemd-devel\n--\n-- Unit systemd-vconsole-setup.service has finished starting up.\n--\n-- The start-up result is done.<\/code><\/pre>\n<h3>root \u3067\u306f\u306a\u3044\u6642\u306b\u30a2\u30af\u30bb\u30b9\u51fa\u6765\u306a\u3044\u8b66\u544a\u3092\u8868\u793a\u3057\u306a\u3044(\u672a\u691c\u8a3c)<\/h3>\n<p>\u8a66\u3057\u3066\u898b\u3066\u308b\u3093\u3060\u3051\u3069\u518d\u73fe\u3057\u306a\u3044\u3002<br \/>\n\u8907\u6570\u30e6\u30fc\u30b6\u30fc\u3067\u4f7f\u3063\u3066\u3044\u305f\u3089\u5224\u308b\u3093\u3060\u308d\u3046\u3051\u3069\u3002<\/p>\n<pre><code class=\"language-bash\">$ journalctl -q  # or journalctl --quiet<\/code><\/pre>\n<h3>\u30ea\u30e2\u30fc\u30c8\u3092\u542b\u3080\u5168\u3066\u306e\u30ed\u30b0\u3092\u5408\u308f\u305b\u308b(\u672a\u691c\u8a3c)<\/h3>\n<p>\u624b\u5143\u306b\u74b0\u5883\u304c\u7121\u3044\u304b\u3089\u8a66\u305b\u3066\u306a\u3044\u3051\u3069\u305d\u3046\u3044\u3046\u610f\u5473\u3058\u3083\u306a\u3044\u304b\u306a\uff1f<\/p>\n<pre><code class=\"language-bash\">$ journalctl -m  # or journalctl --merge<\/code><\/pre>\n<h3>\u30d6\u30fc\u30c8\u30ed\u30b0\u3092\u8868\u793a\u3059\u308b<\/h3>\n<p>\u30d6\u30fc\u30c8\u30ed\u30b0\u3092\u8868\u793a\u3059\u308b\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u76f4\u8fd1\u306e\u30d6\u30fc\u30c8\u30ed\u30b0\u3002<\/p>\n<pre><code class=\"language-bash\">$ journalctl -b  # or journalctl --this-boot<\/code><\/pre>\n<p>\u76f8\u5bfe\u5024\u3067\u306e\u53d6\u5f97\u3082\u53ef\u80fd\u3002<\/p>\n<pre><code class=\"language-bash\">$ journalctl -b 2 # 2\u56de\u524d\u306e\u30d6\u30fc\u30c8\u30ed\u30b0\u306e\u6642<\/code><\/pre>\n<p>\u7d76\u5bfe\u5024\u3067\u306e\u53d6\u5f97\u3082\u53ef\u80fd\u306a\u6a21\u69d8(\u672a\u78ba\u8a8d)<\/p>\n<pre><code class=\"language-bash\">$ journalctl -b _BOOT_ID=xxxxx  # \u30d6\u30fc\u30c8ID\u3067\u7d76\u5bfe\u5024\u53d6\u5f97\u3067\u304d\u308b\u3089\u3057\u3044<\/code><\/pre>\n<h3>\u30e6\u30cb\u30c3\u30c8\u3092\u6307\u5b9a\u3057\u3066\u30ed\u30b0\u3092\u8868\u793a\u3059\u308b<\/h3>\n<p>\u6307\u5b9a\u3057\u305f\u30e6\u30cb\u30c3\u30c8\u306e\u30ed\u30b0\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">$ journalctl -u \u30e6\u30cb\u30c3\u30c8\u540d  # or journalctl --unit=\u30e6\u30cb\u30c3\u30c8\u540d<\/code><\/pre>\n<p>firewall \u306e\u30ed\u30b0\u3092\u53d6\u5f97\u3059\u308b\u4f8b<\/p>\n<pre><code class=\"language-bash\">$ journalctl -u firewalld.service  # or journalctl --unit=firewalld.service<\/code><\/pre>\n<p>\u3061\u306a\u307f\u306b\u3001\u30e6\u30cb\u30c3\u30c8\u306e\u30ea\u30b9\u30c8\u306f systemctl \u3067\u53d6\u5f97\u53ef\u80fd\u3002<br \/>\n\u5168\u3066\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u4f8b\u3002<\/p>\n<pre><code class=\"language-bash\">$ systemctl -a # systemctl --all\n\n$ systemctl -t service # systemctl --type=service # service \u3060\u3051\u53d6\u5f97\u3059\u308b\u4f8b<\/code><\/pre>\n<p>\u5c11\u3057\u3065\u3064\u78ba\u304b\u3081\u3066\u66f8\u304d\u8db3\u3057\u3066\u884c\u3053\u3046\u3063\u3068<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SSD \u306b\u512a\u3057\u3044\u8a2d\u5b9a\u3063\u3066\u306a\u3093\u3060\u308d\u3046\uff1f \u3092Fedora 19 \u306b\u3082\u3084\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3063\u3066\u8a2d\u5b9a\u3057\u3066\u3044\u305f\u3002 \u305d\u3046\u3059\u308b\u3068 \/var\/log \u306b journal \u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3042\u308a\u3001800MB \u8fd1\u3044\u30ed\u30b0\u304c\u6e9c\u307e\u3063\u3066\u3044\u308b\u3002jour [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[33,54],"class_list":["post-684","post","type-post","status-publish","format-standard","hentry","category-linux","tag-fedora","tag-systemd"],"_links":{"self":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=684"}],"version-history":[{"count":41,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/684\/revisions"}],"predecessor-version":[{"id":870,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/684\/revisions\/870"}],"wp:attachment":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}