A Python package for analyzing, verifying, and monitoring text-based log files. Includes tools for file existence checks, log tail analysis, text searches, and more.
You can find Full Project Documentation here
- Mission
- Open Source Project
- Features
- Requirements
- Development Status
- Install
- Quickstart
- Contributing
To provide a reliable, open-source Python solution for managing and analyzing text-based log files, empowering developers, system administrators, and security professionals with tools to ensure log integrity, streamline troubleshooting, and enhance system monitoring practices.
This is the open source project with Happy Code license. Be free to use, fork, clone and contribute.
- Check if log file exists
- Read tail of log file
- Clear log file
- Check if user can change log file
- Check if user can delete log file (Plan)
- Search text in log file (Plan)
- Modify log file (Plan)
- python >= 3
- See more in Full Documentation
- Package already available on PyPi
- See more in Full Documentation
pip install text-log-check
See more in Full Documentation
from text_log_check import exists, tail, clear, is_modifiable
if exists('/var/log/auth.log'):
print(tail('var/log/auth.log', 5))
if is_modifiable('var/log/auth.log'):
clear('var/log/auth.log')
More examples in Full Documentation
You are welcome! To easy start please check: