LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsyncd.log with incorrect time (https://www.linuxquestions.org/questions/linux-software-2/rsyncd-log-with-incorrect-time-4175657808/)

cesarsj 07-21-2019 02:36 PM

rsyncd.log with incorrect time
 
The time is three more hours in rsyncd.log. I live in Brazil, the machine is synchronized with our NTP servers that are synchronized with ntp.br servers (Brasilia time). How do I adjust the time in the log? What is causing the delay of three hours?

scasey 07-21-2019 03:47 PM

Quote:

Originally Posted by cesarsj (Post 6017304)
The time is three more hours in rsyncd.log. I live in Brazil, the machine is synchronized with our NTP servers that are synchronized with ntp.br servers (Brasilia time). How do I adjust the time in the log? What is causing the delay of three hours?

It's not a "delay" exactly...the time is being reported in UTC time instead of Brasilia time.
What time does
Code:

date
show? Brasilia time or UTC?

cesarsj 07-21-2019 05:37 PM

Quote:

Originally Posted by scasey (Post 6017320)
It's not a "delay" exactly...the time is being reported in UTC time instead of Brasilia time.
What time does
Code:

date
show? Brasilia time or UTC?

Brasilia time

scasey 07-21-2019 07:17 PM

Quote:

Originally Posted by cesarsj (Post 6017347)
Brasilia time

Hmmm. Go through man rsyncd.conf to see if there's something there about setting the time zone.
Also confirm that rsyncd is doing the logging. (see the "transfer logging" and "log format" sections in the man page).
If it's not, then the date/time is being controlled by syslog. Do other log files (messages,secure) have local or UTC times?

cesarsj 07-22-2019 02:52 PM

See the logs:

2019/07/22 15:55:30 [31106] name lookup failed for <ip>: Name or service not known
2019/07/22 15:55:30 [31106] connect from UNKNOWN (<ip>)
2019/07/22 18:13:26 [31059] rsync on <user>/ from <user>@UNKNOWN (<ip>)
2019/07/22 18:13:26 [31059] building file list
2019/07/22 18:55:29 [31059] sent 95,334,465 bytes received 236,598 bytes total size 2,190,340,476,432

Setting up the reverse name is already something in mind. The funny thing, you see, is that the first two lines show the correct time and the next do not.

Does it have to do with reverse search failure?

Just to be: rsync version 3.1.0 protocol version 31

scasey 07-22-2019 04:28 PM

Quote:

Originally Posted by cesarsj (Post 6017629)
See the logs:

2019/07/22 15:55:30 [31106] name lookup failed for <ip>: Name or service not known
2019/07/22 15:55:30 [31106] connect from UNKNOWN (<ip>)
2019/07/22 18:13:26 [31059] rsync on <user>/ from <user>@UNKNOWN (<ip>)
2019/07/22 18:13:26 [31059] building file list
2019/07/22 18:55:29 [31059] sent 95,334,465 bytes received 236,598 bytes total size 2,190,340,476,432

Setting up the reverse name is already something in mind. The funny thing, you see, is that the first two lines show the correct time and the next do not.

Does it have to do with reverse search failure?

Just to be: rsync version 3.1.0 protocol version 31

Which log is that from? The PID for the reverse lookup is different from the PID for the rsync entry, and that doesn't look like the default rsync log output format.

Did you confirm that rsyncd is doing the logging. (see the "transfer logging" and "log format" sections in the man page)?


All times are GMT -5. The time now is 01:59 PM.