- Version:
- 2.0
- Source:
Allows the viewing of any log file entries in real time directly from the Django admin interface. It allows you to filter on logs with regex and offer also a log clipboard for save desired log lines to the django db.
Demos
Demo Video
Requirements
Django >= 6.1.1
Python >= 3.12
Sessions enabled
Installation
Install the package with pip install django-logtailer
Add it to the INSTALLED_APPS in your SETTINGS
Set LOGTAILER_ALLOWED_ROOTS in your SETTINGS (see Settings below)
add to urls.py: url(r’^logs/’, include(‘logtailer.urls’)),
Run manage.py migrate for create the required tables
Run manage.py collectstatic
Settings
LOGTAILER_ALLOWED_ROOTS (mandatory): list of directories log files are allowed to live in. Paths are fully resolved (symlinks and .. included) before checking, preventing path traversal (CWE-22). If the setting is missing or empty, access to every log file is denied:
LOGTAILER_ALLOWED_ROOTS = ['/var/log/myapp']
Filters
Filters (saved in the admin or typed in the custom filter field) are Python regular expressions evaluated server-side with re.search() against each raw log line. Only matching lines are returned to the browser.
Write plain patterns, not JavaScript literals: use networkmanager, not /networkmanager/.
Flags are inline groups: case-insensitive matching is (?i)networkmanager, not /networkmanager/i.
An invalid regex falls back to a literal substring match.
Running tests
From the repository root:
python runtests.py
The suite uses a minimal standalone settings module (tests/settings.py) with an in-memory SQLite database, so no extra setup is needed.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_logtailer-2.0.0.tar.gz.
File metadata
- Download URL: django_logtailer-2.0.0.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ebd2e7ed1e3d04cf42394b2e07ba1998059e85b42ce0f4d31f0e47166e4c8e3
|
|
| MD5 |
85003d5de06511433b8d1cb61b907bec
|
|
| BLAKE2b-256 |
7a3bfa479170c74fedf41212a5ddde03929a3444f780bbb475f87e8584a195c9
|
Provenance
The following attestation bundles were made for django_logtailer-2.0.0.tar.gz:
Publisher:
publish.yml on fireantology/django-logtailer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_logtailer-2.0.0.tar.gz -
Subject digest:
6ebd2e7ed1e3d04cf42394b2e07ba1998059e85b42ce0f4d31f0e47166e4c8e3 - Sigstore transparency entry: 2774151453
- Sigstore integration time:
-
Permalink:
fireantology/django-logtailer@468beb22c1a4abc89504b2a84e8c7fb00875b918 -
Branch / Tag:
refs/tags/2.0.0 - Owner: https://github.com/fireantology
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@468beb22c1a4abc89504b2a84e8c7fb00875b918 -
Trigger Event:
release
-
Statement type:
File details
Details for the file django_logtailer-2.0.0-py3-none-any.whl.
File metadata
- Download URL: django_logtailer-2.0.0-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf2c7e516c012a83dc79239a8d83574383c59a524646ccc0c4d049ee7f6bbc65
|
|
| MD5 |
1432bcde24ef572a745b8393eee82f9e
|
|
| BLAKE2b-256 |
20fb4aea184d4172f71db9102a3ca1dafdb4cac092d41e19a2e7325155419eb2
|
Provenance
The following attestation bundles were made for django_logtailer-2.0.0-py3-none-any.whl:
Publisher:
publish.yml on fireantology/django-logtailer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_logtailer-2.0.0-py3-none-any.whl -
Subject digest:
bf2c7e516c012a83dc79239a8d83574383c59a524646ccc0c4d049ee7f6bbc65 - Sigstore transparency entry: 2774151567
- Sigstore integration time:
-
Permalink:
fireantology/django-logtailer@468beb22c1a4abc89504b2a84e8c7fb00875b918 -
Branch / Tag:
refs/tags/2.0.0 - Owner: https://github.com/fireantology
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@468beb22c1a4abc89504b2a84e8c7fb00875b918 -
Trigger Event:
release
-
Statement type: