LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-21-2019, 02:36 PM   #1
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 159

Rep: Reputation: Disabled
Question 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?
 
Old 07-21-2019, 03:47 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by cesarsj View Post
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?
 
Old 07-21-2019, 05:37 PM   #3
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by scasey View Post
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
 
Old 07-21-2019, 07:17 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by cesarsj View Post
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?
 
Old 07-22-2019, 02:52 PM   #5
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
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

Last edited by cesarsj; 07-22-2019 at 02:58 PM.
 
Old 07-22-2019, 04:28 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by cesarsj View Post
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)?
 
  


Reply

Tags
ntp, rsync



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsyncd and ntpd in xubuntu 7.10 v8hadas Ubuntu 1 02-06-2008 09:21 AM
rsyncd.conf file module question bjones Linux - Software 1 11-26-2005 08:21 AM
Where is rsyncd.conf klemen Slackware 2 03-08-2005 09:14 AM
rsyncd: stopped logging properly hamish Linux - Software 0 01-23-2005 11:08 AM
rsyncd bind to a interface Greenpie Linux - Networking 1 10-22-2004 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration