![如何获取完整的日志信息?](https://linux22.com/image/720485/%E5%A6%82%E4%BD%95%E8%8E%B7%E5%8F%96%E5%AE%8C%E6%95%B4%E7%9A%84%E6%97%A5%E5%BF%97%E4%BF%A1%E6%81%AF%EF%BC%9F.png)
获取上传服务的日志信息。
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
?
如何获取整个日志信息?