LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-31-2014, 09:08 AM   #1
Primetime0
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Rep: Reputation: Disabled
Anyway to change the rsyslog timestamp?


Hi linux gurus,

I have setup an rsyslog remote logging server on ubuntu 14.04 based in the US east timezone. It accepts logs from servers in this region and some located in the UK. The problem is that it is recording the messages originating from the UK with a timestamp +5 hours.

Is there a simple way to change this behavior for the central logging server to record delivery time as opposed to recorded time? The caveat here is that I cannot adjust the timezone on the UK or US East servers.

Version of rsyslog is: 7.4.4
 
Old 12-31-2014, 09:59 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
What an interesting subject.
Welcome to LQ!

subscribed with interest.

http://www.rsyslog.com/doc/v7-stable...sesystimestamp
says:
"UseSysTimeStamp [on/off] instructs imuxsock to obtain message time from the system (via control messages) instead of using time recorded inside the message."...

Last edited by Habitual; 12-31-2014 at 10:01 AM.
 
2 members found this post helpful.
Old 01-08-2015, 09:48 AM   #3
Primetime0
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
What an interesting subject.
Welcome to LQ!

subscribed with interest.

http://www.rsyslog.com/doc/v7-stable...sesystimestamp
says:
"UseSysTimeStamp [on/off] instructs imuxsock to obtain message time from the system (via control messages) instead of using time recorded inside the message."...
Thanks Habitual and sorry for the late reply. I have tried applying the UseSysTimeStamp option for the imuxsock module. This does not seem to affect messages coming in via imtcp but I think you have put me on the right track. I have contacted adiscon support for any further information and will post their solution here once they get back to me.

Thanks again!
 
Old 01-08-2015, 10:42 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Glad to be of help.
Happy New Year 2015!
 
  


Reply



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
script to timestamp files with timestamp from directory eRJe Programming 4 11-13-2013 06:52 PM
Is normal for /etc/shadow to change it's timestamp? booyeeka Linux - Newbie 3 08-02-2010 12:53 PM
how can I change the timestamp of a symlink wastingtime Linux - Software 1 02-10-2010 02:18 PM
change timestamp for syslog biiiep Ubuntu 1 03-31-2007 08:38 AM
Change access.log timestamp,squid proxy gordonb Linux - Software 1 04-20-2006 12:28 AM

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

All times are GMT -5. The time now is 12:02 AM.

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