0

I have a file with timestamps for hits on a system. How can I feed this into the RRDtool database (or other similar solution), so that I can plot a time graph?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
sunkencity
  • 3,482
  • 1
  • 22
  • 19

1 Answers1

1

Use an ABSOLUTE type datasource and for every event you see do a

rrdtool update log.rrd $stamp:1

If you want to track different events, have multiple rrd files. You can then pull them all together into a single graph.

$stamp is the unix time format (seconds since 1970) so you have to convert the timestamps in your logfile first.

Tobi Oetiker
  • 5,167
  • 2
  • 17
  • 23