使用journalctl的--follow参数时出现报错问题
使用journalctl的--follow参数时出现报错问题
各位好,我遇到了一个关于journalctl --follow参数的问题,先跟大家说说我的环境配置:
我现在运行着systemd-journal-remote.service服务,用来接收多台主机发来的日志消息,目前配置是把所有主机的日志都集中存到单个文件里,主配置文件内容如下:
# /etc/systemd/journal-remote.conf # all server logs should go into one file [Remote] SplitMode=none
另外我还通过一个drop-in文件修改了服务的启动参数,把原本的HTTPS监听改成了HTTP,同时指定了具体的日志输出路径,这个drop-in配置文件的内容是:
# /etc/systemd/system/systemd-journal-remote.service.d/10-update-http-in-execstart.conf [Service] # changed from https to http # ExecStart=/lib/systemd/systemd-journal-remote --listen-https=-3 --output=/var/log-server/journal/remote/ # empty default value before overriding it. Otherwise a systemd exception is raised: Service has more than one ExecStart= setting ExecStart= ExecStart=/lib/systemd/systemd-journal-remote --listen-http=-3 --output=/var/log/journal/remote/log.journal [Install] Also=systemd-journal-remote.socket
目前像journalctl --quiet --reverse --file='log.journal'这类命令都能正常执行,返回的日志内容也没问题,但当我尝试用--follow(或者缩写-f)参数来实时追踪这个日志文件的更新时,却出现了报错,有没有大佬能帮忙分析下原因?
备注:内容来源于stack exchange,提问作者antonio
相关产品推荐
相关产品推荐

