---
layout: default
title: usr/share/doc/sysbox/html/tool/readlog.html
---
Sysbox: readlog
Sysbox: readlog
Usage: readlog [OPTION]...Read the system log. The tool can dump the contents of the system log (from the syslog service) to the standard output. The displayed times in the first column is in thousand kernel ticks (in practice in seconds) since boot.
Options:
- -f
Print full lines only. May cause data loss, because it will start to dump after the first newline character. Enabled by default. - -h
Print half lines, or print incomplete lines. - -H
Print head of the log. - -s SIZE
Set request size to SIZE. This size will limit the size of the displayed log. - -t
Print tail of the log. Enabled by default. - -T MSEC
Set request timeout to MSEC milliseconds. Affects only overloaded systems, does not change anything in normal (not overloaded) situations. - -u NUM
Set syslog service unit number. Default to 0. - -v
Verbose mode. Print messages during the progress to get details.
Examples:
$ readlog -s 500 [ 1.843] [devman] starting target "httpd" [ 1.859] [devman] starting target "telnetd" [ 1.872] [devman] starting target "ftpd" [ 1.886] [devman] starting device "eth0" [ 3.028] [devman] starting target "pci.done" [ 6.028] [prot_dhcp] eth0: sending request [ 6.029] [prot_dhcp] eth0: allocated address: 192.168.0.16, lease time: 86399 [ 25.455] [telnetd] Connection accepted from (192.168.0.44, 44412) $ $ readlog -h -s 500 1.808] [devman] starting target "sysbox" [ 1.843] [devman] starting target "httpd" [ 1.859] [devman] starting target "telnetd" [ 1.872] [devman] starting target "ftpd" [ 1.886] [devman] starting device "eth0" [ 3.028] [devman] starting target "pci.done" [ 6.028] [prot_dhcp] eth0: sending request [ 6.029] [prot_dhcp] eth0: allocated address: 192.168.0.16, lease time: 86399 [ 25.455] [telnetd] Connection accepted from (192.168.0.44, 44412) $