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
'Linux' 카테고리의 다른 글
100MB 이상 쓰는 파일 중 용량 상위 10개 찾는 법 (0) | 2017.06.13 |
---|---|
os에서 gbic 및 port 확인 법 스크립트 (0) | 2017.06.13 |
root가 사용 중인 프로세스 확인 (0) | 2017.06.07 |
로그인 된 사용자 확인 법 (0) | 2017.06.07 |
perl 명령어 이용하여 vi안에 특정 내용만 변경 (0) | 2017.06.07 |