Extension CKAN Logs Viewer


Extension Basics

Title
CKAN Logs Viewer
Name
ckanext-logs
Type
Public extension
Description
View CKAN log files in web interface
CKAN versions

~2.9, ~2.10, ~2.11

Show details
Download-Url (zip)
Download-Url commit date
2025-01-15
Url to repo
Category
Data Management & Quality


Background Infos

Description (long)
Show details

A CKAN extension to view CKAN log files directly in the CKAN web interface with advanced filtering and search capabilities. Provides a dashboard for system administrators to monitor and analyze CKAN logs including error, warning and info messages. Uses ckanext-tables for table rendering with support for reading compressed .gz log files and multi-line log entries including stack traces.

Version
0.1.0
Version release date
2025-01-15
Contact name
DataShades
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints

Installation:

1. Install the extension:

pip install -e .

2. Add ‘tables logs’ to ckan.plugins in your config file

3. Configure log file path and filename:

ckanext.logs.logs_path = /var/log/ckan

ckanext.logs.log_filename = ckan_default.error.log

4. Access log dashboard at /ckan-admin/logs/dashboard (sysadmin only)

Dependencies:

- ckanext-tables (required for table rendering)

Features:

- Read log files including .gz compressed files

- Parse multi-line log entries with stack traces

- Display timestamps, log levels, modules and messages

- Filter and search capabilities via ckanext-tables

- Support for multiple log files with automatic sorting by date

- Configurable number of log entries to display (default 10000)

Plugins to configure (ckan.ini)
logs
CKAN Settings (ckan.ini)
# ckanext.logs.logs_path = /var/log/ckan # ckanext.logs.log_filename = ckan_default.error.log
DB migration to be executed
(not set)
<< back to Extensions