]> git.itanic.dy.fi Git - rrdd/commit
Add support for data logging
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 6 Jan 2013 13:49:14 +0000 (15:49 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sun, 6 Jan 2013 13:49:14 +0000 (15:49 +0200)
commitb75cf8a9fa8259c68cf2877ade4a7ae4bf1b497e
tree08dc1e26c484f16448a9f6c0222205046af63f99
parentd4ef55625c72b6d8d50bc9226ef1a958b31d20ca
Add support for data logging

Add new configuration parameters "logfile" and
"logfile_timestamp_fmt". Both of them are fed through strftime. The
first one is used for creating log file name, the second one is the
time stamp format in the beginning of each line.

Neither of the options are mandatory. If no file name is given, no
logging will be done. If no time stamp format is given, default of
"%Y.%m.%d %H:%M " is used.

Each line in the log file contains all the data elements given to
rrdtool during updating the database. The format is altered
slightly. The beginning of the line has got the time stamp, the
beginning "N:" part is removed and all ':' characters are replaced
with white space. Each entry is padded up to 12 characters with white
space in order to make the log file entries nicely human readable.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
config.c
rrdtool.c
rrdtool.h