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 lo
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 lo
:Version: 2.0 :Source: http://github.com/fireantology/django-logtailer/
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.
.. image:: docs/log-reader.png :alt: LogTailer log reader in the Django admin :width: 800
Video_.. _Video: http://www.vimeo.com/28891014
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 (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.
networkmanager,
not /networkmanager/.(?i)networkmanager, not /networkmanager/i... warning::
Filters saved with versions before 2.0 were evaluated as JavaScript
regex literals and may no longer match. Rewrite them in Python syntax,
e.g. /networkmanager/i becomes (?i)networkmanager.
.. _Python regular expressions: https://docs.python.org/3/library/re.html
From the repository root::
python runtests.pyThe suite uses a minimal standalone settings module (tests/settings.py)
with an in-memory SQLite database, so no extra setup is needed.
No open issues yet, or sync has not completed.