|
NAMEfifolog_create , fifolog_writer ,
fifolog_reader —
initialize, write, seek and extract data from a fifolog
SYNOPSIS
DESCRIPTIONFifologs provide a compact round-robin circular storage for recording text and binary information to permanent storage in a bounded and predictable fashion, time and space wise.A fifolog can be stored either directly on a disk partition or in a regular file. The input data stream is encoded, compressed and marked up with timestamps before it is written to storage, such that it is possible to seek out a particular time interval in the stored data, without having to decompress the entire logfile. The Running If the file does not already exist,
The Writes happen whenever the output buffer is filled with compressed data or when either of two timers expire, forcing a partially filled buffer to be written. The first and faster timer, The second and slower timer, The The It is possible to specify a start and end time to limit the amount
of data The Finally, records can be filtered such that only records matching
the ( IMPLEMENTATION NOTESThe data stored in the fifolog consists of three layers, an outer layer that allows searches to synchronization points based on timestamps without having to decompress and decode the actual contents, a compression layer implemented with zlib(3), and an inner serialization and timestamping layer.The exact encoding is described in the fifolog.h file. Fifolog is particularly well suited for use on Flash based media, where it results in much lower write-wear, than a file system with regular log files rotated with newsyslog(8) etc. EXAMPLESCreate a fifolog with 1024*1024 records of 512 bytes:fifolog_create -r 10m
/tmp/fifolog Write a single record to this file: date | fifolog_writer
/tmp/fifolog Read it back with human readable timestamps: fifolog_reader -t
/tmp/fifolog One particular useful use of
*.* |fifolog_writer
/var/log/syslog_fifolog HISTORYThe fifolog tools have been liberated from an open source SCADA applications called “measured”, which monitors and controls remote radio navigation transmitters for the Danish Air Traffic Control system.AUTHORSThe fifolog tools were written by Poul-Henning Kamp.
Visit the GSP FreeBSD Man Page Interface. |