Log management


Level:
Beginner
Author:
published:
Modified:

Handle the server's log files


There is one log file, and this file is rotated every night at 00:00. This means that every night the current file is backed-up and a new file is created.

The log file is located in “logs/system/” the file is called appLog.txt. As time goes by you will see a directory appearing called history, this is where the rotated “old” log files are put. They are packed with gzip and look like:

appLog-2013-10-08-1.gz

If you want to real time follow the current log file you can tail it, past log files can be viewed with zcat
To follow:

tail -f logs/system/appLog.txt

To view backed-up logs:

zcat appLog-[YEAR]-[MONTH]-[DAY].gz

Currently the logs are not rotated. This means you have to clean them manually.

Latest news/blog

Friends of PiDome

Hubbit.nl
Webshop of the most prominent dutch tech magazines
Atlassian
Products for teams, from startup to enterprise
RFXCOM
Affordable 433Mhz RF transceivers
UniPi.technology
Home-automation hardware manufacturer

Latest added technology

  • SMS
  • Z-Wave
  • PushBullet
  • PlugWise
  • MQTT

Some project stats

Open Hub project report for PiDome Platform

Other

Official NLJUG Member