Log Message 특정시간 추출 법
journalctl --since='20XX-XX-XX XX:XX:XX' --until='20XX-XX-XX XX:XX:00' > `echo $HOSTNAME`_log1.txt
[root@test ~]# journalctl --since='2017-06-13 11:20:00' --until='2017-06-13 11:30:00' > `echo $HOSTNAME`_log1.txt
[root@test ~]# ls
anaconda-ks.cfg test_log1.txt
[root@test ~]# cat test_log1.txt
-- Logs begin at 화 2017-06-13 11:15:01 KST, end at 화 2017-06-13 11:30:18 KST. --
6월 13 11:22:21 test yum[2450]: Installed: pcsc-lite-libs-1.8.8-6.el7.x86_64
6월 13 11:22:21 test yum[2450]: Installed: libusbx-1.0.15-4.el7.x86_64
6월 13 11:22:21 test systemd[1]: Reloading.
6월 13 11:22:21 test systemd[1]: Configuration file /usr/lib/systemd/system/auditd.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
6월 13 11:22:21 test systemd[1]: Configuration file /usr/lib/systemd/system/ebtables.service is marked executable. Please remove executable permission bits. Proceeding anyway.
6월 13 11:22:21 test systemd[1]: Configuration file /usr/lib/systemd/system/wpa_supplicant.service is marked executable. Please remove executable permission bits. Proceeding anyway.
6월 13 11:22:21 test yum[2450]: Installed: pcsc-lite-1.8.8-6.el7.x86_64
6월 13 11:22:21 test yum[2450]: Installed: pcsc-lite-ccid-1.4.10-10.el7.x86_64