Breadcrumbs

log-persistent

Logs different informations persitantly to a disk

Each boot cycle a new log archive will be created.


Fileformat: tar.gz named by timestamp started or a random number if no rtc or ntp sync exits.

Features

  • Log of a specific directory

  • Logs disk free space (df)

  • Logs memory usage (free)

  • Logs actual cpu temperature

  • Logs running processes (ps)

  • Logs qtwebbrowser.log

  • Logs codesyscontrol.log

  • History free disk space

  • History memory usage

  • History cpu temeprature

  • History qtwebbrowser process

Configuration variables

Edit /etc/log-persistent/log-persistent.conf to set the following parameters:

  • DIRECTORY_TO_OBSERVER(default: "var/volatile/log") - directory included in the log archive

  • DIRECTORY_TO_EXPORT(default: "/run/media/sda") - log acrhive destination directory, it is recommended to use a seperate disk

  • CYCLE_WAIT(default: "10m") - logging cycle intervall

  • ADDITIONAL_SCRIPT(default: "/etc/log-persistent/log-persistent-pre.sh") – script with log actions.

log-persitent_process.png


log-persistent.vsdx