AI-powered security log analysis toolkit
Project description
securitylogai
Reusable Python engine for parsing logs, detecting suspicious activity, generating reports, and producing AI explanations.
What it does
- Parse Apache-style logs
- Detect brute-force style patterns
- Generate readable reports
- Produce AI-ready summaries
- Parse mixed log lines with
parse_logs()
Install from PyPI
pip install securitylogai
Install from TestPyPI
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple securitylogai
Usage
from securitylogai import parse_logs, detect_bruteforce, generate_report, explain_attack
log = "127.0.0.1 - - [30/May/2026:12:00:00 +0630] \"POST /login HTTP/1.1\" 401 532"
events = parse_logs(log)
findings = detect_bruteforce(events * 25)
report = generate_report(findings)
summary = explain_attack(findings[0]) if findings else None
Build and publish
python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload --repository testpypi dist/*
python -m twine upload dist/*
Package structure
parser.py- parse log linesdetector.py- detect suspicious patternsreporter.py- create text reportsai.py- AI explanation layerutils.py- shared helpers
Roadmap
- add richer parsing for more log sources
- add provider adapters for OpenAI, Gemini, Ollama
- add CLI and JSON output
- add tests and release workflow
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
securitylogai-0.1.2.tar.gz
(4.0 kB
view details)
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 securitylogai-0.1.2.tar.gz.
File metadata
- Download URL: securitylogai-0.1.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fbeb1f064245ca298474019e0b81927bf5e5116d9f9fda0dc2c7b6147da0e86
|
|
| MD5 |
545065edc419fb6993455377eb6079fe
|
|
| BLAKE2b-256 |
7f323c77f2eff0235be7bc8d0f009ff922abb9b6f6bdf365afdcae253e74b142
|
File details
Details for the file securitylogai-0.1.2-py3-none-any.whl.
File metadata
- Download URL: securitylogai-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca62deb9c79d4a64e09c505f8b699b6e49faca51c9050e7a7e83edd86396cf6f
|
|
| MD5 |
46e758980098ee5b34b5f848c0298036
|
|
| BLAKE2b-256 |
345bb7e80cddf6e78c0c59138a1c5885c4671ec2c995113ae4c9126fc647cb5a
|