[opensuse] Journalctl and rsyncd.log
Leap 42.1 with KDE5 I used to do tail -f /var/log/rsyncd.log For example: :~> tail -f /var/log/rsyncd.log 2015/11/27 12:34:40 [12582] connect from hostxx-xxx-xxx-xx.range81-157.btcentralplus.com (81.157.xx.xx) 2015/11/27 12:34:41 [12582] rsync to mixes/ from play@host81-157-xx-xx.range81-157.btcentralplus.com (81.157.xx.xx) 2015/11/27 12:34:41 [12582] receiving file list 2015/11/27 12:34:41 [12582] ERROR: daemon refused to receive file "group" 2015/11/27 12:34:41 [12582] ERROR: daemon refused to receive file "passwd" 2015/11/27 12:34:42 [12582] sent 328 bytes received 32,634 bytes total size 17,763,552,626 2015/11/27 12:34:42 [12584] connect from host81-157-xx-xx.range81-157.btcentralplus.com (81.157.xx.xx) 2015/11/27 12:34:43 [12584] rsync to soundtracks/ from play@host81-157-xx-xx.range81-157.btcentralplus.com (81.157.xx.xx) 2015/11/27 12:34:43 [12584] receiving file list 2015/11/27 12:34:44 [12584] sent 125 bytes received 28,854 bytes total size 3,605,847,084 I believe the modern way is to use journalctl but I don't get much useful output. The following was done during the same rsync session from a remote machine as the tail command quoted above: :~> journalctl -f --unit=rsyncd -- Logs begin at Tue 2015-06-02 10:09:55 BST. -- How do I use journalctl to follow the last x lines of the log? Bob -- Bob Williams System: Linux 4.1.12-1-default Distro: openSUSE 42.1 (x86_64) with KDE Development Platform: 4.14.10
Bob Williams wrote:
Leap 42.1 with KDE5
I used to do
tail -f /var/log/rsyncd.log
For example:
:~> tail -f /var/log/rsyncd.log 2015/11/27 12:34:40 [12582] connect from hostxx-xxx-xxx-xx.range81-157.btcentralplus.com (81.157.xx.xx) 2015/11/27 12:34:41 [12582] rsync to mixes/ from play@host81-157-xx-xx.range81-157.btcentralplus.com (81.157.xx.xx) 2015/11/27 12:34:41 [12582] receiving file list 2015/11/27 12:34:41 [12582] ERROR: daemon refused to receive file "group" 2015/11/27 12:34:41 [12582] ERROR: daemon refused to receive file "passwd" 2015/11/27 12:34:42 [12582] sent 328 bytes received 32,634 bytes total size 17,763,552,626 2015/11/27 12:34:42 [12584] connect from host81-157-xx-xx.range81-157.btcentralplus.com (81.157.xx.xx) 2015/11/27 12:34:43 [12584] rsync to soundtracks/ from play@host81-157-xx-xx.range81-157.btcentralplus.com (81.157.xx.xx) 2015/11/27 12:34:43 [12584] receiving file list 2015/11/27 12:34:44 [12584] sent 125 bytes received 28,854 bytes total size 3,605,847,084
I believe the modern way is to use journalctl
AFAIK, rsyncd write its own logfile, it doesn't use syslog. -- Per Jessen, Zürich (2.6°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 27/11/15 14:26, Per Jessen wrote:
AFAIK, rsyncd write its own logfile, it doesn't use syslog.
Yes, it writes to /var/log/rsyncd.log. But if that's the case, how does journalctl know when the rsyncd logs begin and end? :~> journalctl -n -u=rsyncd -- Logs begin at Tue 2015-06-02 10:09:55 BST, end at Fri 2015-11-27 13:45:01 GMT. -- Presumably it is getting that information from the rsyncd systemd unit. And if there isn't an rsyncd unit, then it should say so. Or have I misunderstood -- Bob Williams System: Linux 4.1.12-1-default Distro: openSUSE 42.1 (x86_64) with KDE Development Platform: 4.14.10
On Fri, Nov 27, 2015 at 5:40 PM, Bob Williams <linux@karmasailing.uk> wrote:
On 27/11/15 14:26, Per Jessen wrote:
AFAIK, rsyncd write its own logfile, it doesn't use syslog.
Yes, it writes to /var/log/rsyncd.log. But if that's the case, how does journalctl know when the rsyncd logs begin and end?
What makes you believe it is logs for rsyncd? What does it say for any other unit?
:~> journalctl -n -u=rsyncd -- Logs begin at Tue 2015-06-02 10:09:55 BST, end at Fri 2015-11-27 13:45:01 GMT. --
Presumably it is getting that information from the rsyncd systemd unit. And if there isn't an rsyncd unit, then it should say so. Or have I misunderstood
-- Bob Williams System: Linux 4.1.12-1-default Distro: openSUSE 42.1 (x86_64) with KDE Development Platform: 4.14.10
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 27/11/15 15:09, Andrei Borzenkov wrote:
On Fri, Nov 27, 2015 at 5:40 PM, Bob Williams <linux@karmasailing.uk> wrote:
On 27/11/15 14:26, Per Jessen wrote:
AFAIK, rsyncd write its own logfile, it doesn't use syslog.
Yes, it writes to /var/log/rsyncd.log. But if that's the case, how does journalctl know when the rsyncd logs begin and end?
What makes you believe it is logs for rsyncd? What does it say for any other unit?
The same for sshd. So there *is* an rsyncd unit, but not very useful for this use case. That's OK. I'll stick with 'tail'.
:~> journalctl -n -u=rsyncd -- Logs begin at Tue 2015-06-02 10:09:55 BST, end at Fri 2015-11-27 13:45:01 GMT. --
Presumably it is getting that information from the rsyncd systemd unit. And if there isn't an rsyncd unit, then it should say so. Or have I misunderstood
-- Bob Williams System: Linux 4.1.12-1-default Distro: openSUSE 42.1 (x86_64) with KDE Development Platform: 4.14.10
participants (3)
-
Andrei Borzenkov
-
Bob Williams
-
Per Jessen