LII Editors Guide
English
English
  • Judgments
    • Upload a judgment
    • Overturned and upheld
    • Delete a judgment
    • Replace a source file
    • Add multiple case numbers
    • Attach files
    • Add a judge
    • Judgments guide
      • Principles of law publication
      • Collection Development Principles
      • Case naming guidelines
      • Citation
        • Introduction to the Medium Neutral Citation
        • Construction of the MNC
        • Case naming guidelines
        • Court Designators for courts in the GhaLII network
      • Paragraph numbering
  • User management
    • How to reset your password
    • Add users
      • Add multiple users
    • Assigning Permissions
    • Delete users
  • MANAGING DOCUMENTS
    • Bills
    • Journals
    • Unpublish/hide a document
    • Restricted Content
  • Site Admin
    • Courts
    • Matter Types
    • Articles (blog posts)
  • System management
    • System architecture
    • Logs
    • Process management
    • Configure nginx
    • Renew SSL certificate
    • Block an IP address
Powered by GitBook
On this page
  • Application (django) logs
  • Viewing logs using docker
  • Nginx access logs
  • Nginx error logs
  1. System management

Logs

Viewing system logs

The system produces two sets of logs:

Application (django) logs

Django emits operational logs to stdout and can be viewed with Docker or via dokku.

To view a snapshot of recent logs with dokku, run:

dokku logs APP

To view a continuous stream of logs, run:

dokku logs APP -t

You can view logs for a particular process (web or tasks), run:

# background tasks
dokku logs APP -p tasks -t

# web requests
dokku logs APP -p web -t

Viewing logs using docker

The website processes are normal docker containers. You can view the docker logs using standard docker commands, for example:

Find the ID of the docker container you want to check the logs for:

docker ps

View the logs for that container

docker logs -f --since 10m abc123

Nginx access logs

Nginx writes access logs for all requests to /var/log/nginx/APP-access.log. View them with a command such as:

tail -f /var/log/nginx/APP-access.log

These logs are rotated according to your installed nginx log rotation configuration.

Nginx error logs

Nginx writes error logs to /var/log/nginx/APP-error.log. View them with a command such as:

tail -f /var/log/nginx/APP-error.log

These logs are rotated according to your installed nginx log rotation configuration.

PreviousSystem architectureNextProcess management

Last updated 7 months ago