LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2019, 02:30 AM   #1
naveen.kumar2512
LQ Newbie
 
Registered: Jan 2019
Posts: 1

Rep: Reputation: Disabled
How to get local timestamp msg=audit(Mon Jan 21 23:47:38 2019.689:1866319) in audit.log instead of msg=audit(1548145864.461:1866430)


I want local timestamp in audit.log file, currently, it is showing time which is not in human readable form, Does anyone know how to change this.
Yes, we can use ausearch but I want to export these logs and need readable time in logs.
Please help.

Last edited by naveen.kumar2512; 01-22-2019 at 02:32 AM.
 
Old 01-22-2019, 07:24 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,841

Rep: Reputation: 6330Reputation: 6330Reputation: 6330Reputation: 6330Reputation: 6330Reputation: 6330Reputation: 6330Reputation: 6330Reputation: 6330Reputation: 6330Reputation: 6330
Quote:
Originally Posted by naveen.kumar2512 View Post
I want local timestamp in audit.log file, currently, it is showing time which is not in human readable form, Does anyone know how to change this.
Yes, we can use ausearch but I want to export these logs and need readable time in logs.
Read the "Question Guidelines" link in my posting signature. We're happy to help, but you have provided NO DETAILS about your system. Nothing like version/distro of Linux, or what you've done/tried already to accomplish your goals.

There are lots of hints/scripts out there to convert the dates. If you want them exported, you can pipe the log through a script, and have the dates converted to another file, which you can do with what you please.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Current64 - Changes Wed Jan 9 03:21:06 UTC 2019 - cups and gutenprint burdi01 Slackware 1 01-11-2019 04:02 AM
[SOLVED] Logrotate - what is rotating /var/log/audit/audit.log? veeruk101 Linux - Newbie 3 11-03-2011 07:53 PM
How can I read the audit time stamp? msg=audit(1213186256.105:20663) abefroman Linux - Software 3 04-21-2011 06:37 PM
LQ weekly security rep - Mon Jan 27th 2003 unSpawn Linux - Security 3 02-01-2003 08:22 AM
LQ weekly security rep - Mon Jan 13th 2003 unSpawn Linux - Security 5 01-19-2003 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration