csv_logger_conf - bruno-beloff/scs_mfr GitHub Wiki
docs > software repositories > scs_mfr > commands > file-based data management
DESCRIPTION
The csv_logger_conf utility is used to specify the filesystem path to the log files generated by csv_logger. It also specifies the csv_logger behaviour when the volume becomes full: if delete-oldest is true, the oldest logs are removed to make space, if false, then logging stops. A write-interval parameter may be used to specify time between flushes, in order to extend the life of SD cards.
The --limit-retrospection flag is used to prevent an unwanted data backlog from being published. When used, this flag sets the limit to now. When the system is restarted, the backlog will be ignored. (Backlog data remains on the SD card.)
The --filesystem flag is used to report on the condition of the filesystem that will be used by the csv_logger.
Note that the logging process(es) must be restarted for configuration changes to take effect.
SYNOPSIS
csv_logger_conf.py [{ -f | [-r ROOT_PATH] [-o DELETE_OLDEST] [-i WRITE_INTERVAL] [-l] | -d }] [-v]
Options | |
---|---|
--version | show program's version number and exit |
-h, --help | show this help message and exit |
-f, --filesystem | report on the logging filesystem |
-r ROOT_PATH, --root=ROOT_PATH | set filesystem logging directory |
-o DELETE_OLDEST, --del-oldest=DELETE_OLDEST | delete oldest logs to recover space (1) or stop when full (0) |
-i WRITE_INTERVAL, --write-int=WRITE_INTERVAL | write interval in seconds (0 for immediate writes) |
-l, --limit-retrospection | set retrospection limit to now |
-d, --delete | delete the logger configuration |
-v, --verbose | report narrative to stderr |
EXAMPLES
./csv_logger_conf.py -r /srv/removable_data_storage -o 1 -i 0
./csv_logger_conf.py -f
FILES
~/SCS/conf/csv_logger_conf.json
DOCUMENT EXAMPLE - CONFIGURATION
{"root-path": "/srv/removable_data_storage", "delete-oldest": true, "write-interval": 0, "retrospection-limit": "2023-07-25T11:36:30Z"}
DOCUMENT EXAMPLE - FILESYSTEM REPORT
{"path": "/srv/removable_data_storage", "is-available": true, "on-root": false}