Hide Forgot
1. Proposed title of this feature request Include "year" in rsyslog default timestamp format. 2. Who is the customer behind the request? Account: UCL accountnumber 1498818 TAM customer: no SRM customer: no Strategic: no 3. What is the nature and description of the request? Include "year" in rsyslog default timestamp format, also like to get one of following format, YYY MONTH 04 HH:MM:SS Or YYYY-MM-DD HH:MM:SS 4. Why does the customer need this? (List the business requirements here) Not having the year defined in the datestamp makes processing of logs awkward then trying to process log files going back several years. One needs to rely on the datestamp of the file to guess the year. This seems like an obvious exclusion to customer. 5. How would the customer like to achieve this? (List the functional requirements here) Expect following timestamp format in rsyslog, yyyy Jan dd HH:MM:SS Or yyyy-mm-dd HH:MM:SS 6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented. Yes 7. Is there already an existing RFE upstream or in Red Hat Bugzilla? No 8. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)? RHEL 6 and RHEL 7 9. Is the sales team involved in this request and do they have any additional input? No 10. List any affected packages or components. rsyslog
(In reply to Sham Antony from comment #0) > 1. Proposed title of this feature request > > Include "year" in rsyslog default timestamp format. The default is unlikely to change. You can turn on expanded timestamps by just commenting out this line from the default configuration: $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
Closing this bug, as we do not want to change default behavior and the customer case is also closed with following configuration snippet advice: $template MyCustomFmt,"%$Year% %timegenerated% %HOSTNAME% %syslogtag%%msg:::drop-last-lf%\n" $ActionFileDefaultTemplate MyCustomFmt