|
NAMEaddts - add timestamps at the beginning of each lineSYNOPSISaddts [-asu] [-f FMT] [-w CHR] [FILE]addts -? DESCRIPTIONReads standard input and writes it to standard output, adding a timestamp at the begginning (or end) of each line. If FILE is suppied, writes to it instead. Typical usage is for Apache forensic log:ForensicLog "|/usr/bin/addts -a /var/log/httpd/forensic.log" To add timestamps to the end of each line, formatting it as an additional header: ForensicLog "|/usr/bin/addts -a -s -f '|X-TS:%c' /var/log/httpd/forensic.log" OPTIONS
BUGSFormatted timestamp cannot be longer than 511 bytes.Empty lines are left unchanged (no timestamp added). SEE ALSOstrftime(3).AUTHORSSergey Poznyakoff <gray@gnu.org.ua>.COPYRIGHTCopyright © 2018, 2019 Sergey PoznyakoffLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Visit the GSP FreeBSD Man Page Interface. |