first commit

This commit is contained in:
cpu
2026-07-11 12:14:59 +00:00
commit f492147b53
8 changed files with 272 additions and 0 deletions

26
.env.example Normal file
View File

@@ -0,0 +1,26 @@
# --- AI Configuration ---
OLLAMA_API_URL=http://localhost:11434/api/generate
OLLAMA_MODEL=llama3.2:1b
AI_SYSTEM_PROMPT="You are a Linux Sysadmin. Look at these server error logs from yesterday. Summarize the main issues, identify any potential attacks (like failed brute force logins), and ignore harmless background noise. Keep it brief."
# --- Email Reporting Configuration ---
REPORT_TO_EMAIL=admin@yourdomain.com
REPORT_FROM_EMAIL=system@yourdomain.com
SMTP_SERVER=mail.yourdomain.com
SMTP_PORT=587
SMTP_USER=
SMTP_PASS=
# --- Log Analysis Configuration ---
JOURNAL_UNIT=mailserver
MAX_ERRORS_TO_ANALYZE=50
# Comma-separated list of words that trigger the AI
ERROR_KEYWORDS=error,failed,warning,fatal,timeout
# --- Execution Options ---
# Set to 'true' to see detailed background processes, 'false' for clean logs
DEBUG=true
# Set to 'true' to run also immediately when the container starts, 'false' to wait for the schedule
RUN_NOW=true
# Time format must be HH:MM in 24-hour format
REPORT_TIME=08:00