如何获取完整的日志信息?

如何获取完整的日志信息?

获取上传服务的日志信息。

sudo journalctl -l  -u upload
-- Logs begin at Thu 2018-01-18 22:38:54 EST, end at Fri 2018-04-13 23:44:37 EDT. --
Apr 13 23:36:50 localhost systemd[1]: Started upload files into dropbox.
Apr 13 23:36:50 localhost systemd[1]: Starting upload files into dropbox...
Apr 13 23:36:50 localhost bash[120]: % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Apr 13 23:36:50 localhost bash[120]: Dload  Upload   Total   Spent    Left  Speed
Apr 13 23:36:50 localhost bash[120]: 0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: content.dropboxapi.com; Un
Apr 13 23:36:50 localhost systemd[1]: upload.service: control process exited, code=exited status=6

对于第 6 行,在它的末尾,它不是Could not resolve host: content.dropboxapi.com; Un整行,我如何才能获取后面的字符Un
如何获取整个日志信息?

相关内容