Can you change the date format for syslogd?
Wondered if it was possible to get syslogd to include the year in the datetime stamp on log entries so that I can store certain logs in a file for automated processing.
Xserve G5
Wondered if it was possible to get syslogd to include the year in the datetime stamp on log entries so that I can store certain logs in a file for automated processing.
Xserve G5
I've posted this in another query of mine regarding keeping a separate bootpd log file. Two birds, one stone.
syslog -u -E safe -k Sender bootpd -k Time ge -24h > DHCPday.logcat DHCP.log DHCPday.log> DHCPtemp.logcp DHCPtemp.log DHCP.logThe -u switch on syslog causes it to output the timestamp in UTC, thus it includes the year. By incorporating this script as a cron job, the server is now keeping a growing record of DHCP allocations with a full datetime stamp for later processing.
Can you change the date format for syslogd?