# cat /proc/version
Linux version 2.6.32-042stab125.5 (root@kbuild-rh6-x64.eng.sw.ru) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Tue Oct 17 12:48:22 MSK 2017
For the logging chain in my iptables.
Chain LOGGING (2 references)
target prot opt source destination
LOG tcp -- anywhere anywhere tcp dpt:ssh limit: avg 2/min burst 5 LOG level debug prefix "drop port 22"
Inspect all logging records.
# dmesg
RGP=0
[404925.404804] drop port 22IN=venet0 OUT= MAC= SRC=111.111.111.111 DST=222.222.222.222 LEN=136 TOS=0x00 PREC=0x00 TTL=45 ID=23569 DF PROTO=TCP SPT=25103 DPT=22 WINDOW=282 RES=0x00 ACK PSH URGP=0
[404955.495105] drop port 22IN=venet0 OUT= MAC= SRC=111.111.111.111 DST=222.222.222.222 LEN=136 TOS=0x00 PREC=0x00 TTL=47 ID=34883 DF PROTO=TCP SPT=19703 DPT=22 WINDOW=296 RES=0x00 ACK PSH URGP=0
Nothing as output for the following commands.
# journalctl --dmesg
-- No entries --
# cat /var/log/dmesg
# cat /var/log/messages |grep MAC
- Which file contains all the info records displayed by dmesg?
- Can journalctl command get all the output displayed by dmesg?
Many records as the output ofdmesg
command, no entries forjournalctl --dmesg
,why?