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
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_apache_log, 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"
event = parse_apache_log(log)
findings = detect_bruteforce([event] * 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 dist/*
Publish to TestPyPI first
python -m twine upload --repository testpypi 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 Nginx / SSH / Windows parsing
- 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.0.tar.gz
(3.5 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.0.tar.gz.
File metadata
- Download URL: securitylogai-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ef72104631974dcd9dd6ec7b16b32f5c7b639828e5e279da6e32c931d6368e2
|
|
| MD5 |
99041b8ac8314518809fca8f201f1b65
|
|
| BLAKE2b-256 |
3bf2c1340b52215b9552adf1790e7e532815078b9c9cf0b6c70f5adcc43143b5
|
File details
Details for the file securitylogai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: securitylogai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 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 |
0f0b9536daec080302bc9134743a4aff7ffd82c3b074724db7afe4fe86258af5
|
|
| MD5 |
49f5bf215bbfdcfa4ce0d80c31a1635e
|
|
| BLAKE2b-256 |
7307d541ee04e718102470238d32122b0cabf3e6041fab7e8e6dd7ea8bc433a2
|