- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SYSLOG Format
Operating System - HP-UX
1820260
Members
2986
Online
109622
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2009 03:04 AM
тАО09-09-2009 03:04 AM
SYSLOG Format
Hello
Does anyone know if a mechanism exists which would allow me to change the format of the information being written to syslog?
I'm really interested in the actual date format to see if I can include a year. Ideally I'd like each entry prefixed with a date in the format DD MON YYYY e.g. 09 SEP 2009.
Thanks
Jason
Does anyone know if a mechanism exists which would allow me to change the format of the information being written to syslog?
I'm really interested in the actual date format to see if I can include a year. Ideally I'd like each entry prefixed with a date in the format DD MON YYYY e.g. 09 SEP 2009.
Thanks
Jason
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2009 03:52 AM
тАО09-09-2009 03:52 AM
Re: SYSLOG Format
/etc/syslog.conf configuration file allows the system administrator to specify where
the various systems├в processes messages will get sent.
But not sure you can play the format and not necessary, just use a cronjob ; put a wrapper just periodically generate another file in another format from source /var/adm/syslog file as file convertor.
the various systems├в processes messages will get sent.
But not sure you can play the format and not necessary, just use a cronjob ; put a wrapper just periodically generate another file in another format from source /var/adm/syslog file as file convertor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2009 04:13 AM
тАО09-09-2009 04:13 AM
Re: SYSLOG Format
I've never tried it, but take a look at:
man logger
It says...logger command provdes a program interface to the syslog() system log module.
Rgrds,
Rita
man logger
It says...logger command provdes a program interface to the syslog() system log module.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2009 10:01 AM
тАО09-09-2009 10:01 AM
Re: SYSLOG Format
Most syslog files are far too big to keep for more than a year. The format is fixed because syslog is a standard across multiple platforms (your syslog file does not have to be kept on your server). I would schedule your log rotation script to run at 0000 hours and check for a new year. Then use awk to read the old file and create a new one with the year added.
Personally, I do not like log dates with month names as they are painful to sort and compare. If I needed to search multiple logs over several years, I would convert the date to YYYYMMDD.HHMMSS (as in 20090909.140522) which will be easy to sort, especially across year end boundaries.
Bill Hassell, sysadmin
Personally, I do not like log dates with month names as they are painful to sort and compare. If I needed to search multiple logs over several years, I would convert the date to YYYYMMDD.HHMMSS (as in 20090909.140522) which will be easy to sort, especially across year end boundaries.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP