2.1.6 #30
call518
announced in
Announcements
2.1.6
#30
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
LogSentinelAI v2.1.6 — First Official Release
LogSentinelAI is an AI-powered cybersecurity tool that leverages large language models with declarative extraction to analyze security events, anomalies, and errors from various log sources. By declaring a Pydantic model as the desired output schema, the LLM automatically extracts and validates structured data — no regex rules or manual parsers required.
This is the first official GitHub Release, covering the full development history from initial commit through v2.1.6.
Supported Log Types
/var/log/messages,/var/log/syslog)LLM Provider Support
The following LLM backends are supported and configurable via environment variables:
All providers share a unified configuration interface through
.envfiles.Key Features
Declarative Log Extraction
Define a Pydantic model describing the fields you want to extract. The LLM analyzes log chunks and returns JSON conforming to that schema. No parsing logic required.
Elasticsearch / Kibana Integration
Analyzed results are shipped directly to Elasticsearch with structured metadata fields (
@llm_provider,@llm_model,@processing_mode,@log_path,@chunk_analysis_start_utc, etc.). A pre-built Kibana dashboard template is included for immediate visualization.Telegram Alerting
Critical and high-severity events can trigger real-time Telegram alerts. Alert threshold is configurable via
TELEGRAM_ALERT_LEVEL.Batch and Real-time Processing Modes
REALTIME_CHUNK_PENDING_TIMEOUT).Wildcard Log Path Support
--log-pathaccepts glob patterns (e.g.,/var/log/httpd/access_log.*), enabling bulk processing of rotated log files in a single invocation.GeoIP Enrichment
Source IP addresses are enriched with geolocation data (country, city, ASN) using MaxMind GeoIP2 databases. Utilities for downloading and querying GeoIP databases are included (
logsentinelai-geoip-download,logsentinelai-geoip-lookup).Token Management
Per-chunk token counting for prompts and LLM responses is available.
LLM_MAX_TOKENSis configurable, and aLLM_NO_THINKoption suppresses chain-of-thought output on supported models to reduce token usage.Structured Application Logging
Internal application logging is written to a configurable file (
LOG_FILE, default/var/log/logsentinelai.log) with configurable level (LOG_LEVEL).CLI Entry Points
logsentinelailogsentinelai-httpd-accesslogsentinelai-httpd-serverlogsentinelai-linux-systemlogsentinelai-general-loglogsentinelai-geoip-downloadlogsentinelai-geoip-lookupConfiguration
Configuration is managed entirely through
.envfiles. A.env.templateis included in the package as a reference. Secrets are never committed —.envis excluded from version control.A Gitleaks pre-commit hook is configured to prevent accidental secret exposure in commits.
Requirements
Installation
Or with
uv:Full installation and usage instructions are available in INSTALL-and-USAGE.md.
Version History Summary
LLM_NO_THINKoption; auto-sampling; enhanced logging across all modules--configoption for custom config path; token counting utilities; Kibana dashboard enhancements (token size charts, elapsed time)TELEGRAM_ALERT_LEVELconfiguration; related logs display in alerts; utility module refactor--log-pathsupport; batch mode OOM fix (streaming I/O, max ~10 MB memory); Python version constraint enforced (>=3.11,<3.13); PyPI package badges.env-based configuration replacingconfig.template; Gitleaks pre-commit security hook; PyPI publish workflow improvements; pre-commit added as dependencyLinks
This discussion was created from the release 2.1.6.
All reactions