How incodi404/logintel-server works
Logintel Central Server collects agent events, persists them for search and visualization, and publishes them for downstream processing. The main documented path is agents sending gRPC logs to ingestion, which stores them in Elasticsearch and publishes to NATS JetStream; Kibana visualizes Elasticsearch data. The tree also contains an auth service and a NATS-consuming rule-engine service. The excerpts show service startup and selected handler/consumer behavior, but not all internal ingestion wiring, so those connections are not inferred.
Main entry points: server.go gRPC ingestion · log-ingestion/main.go Ingestion startup · log-pipelines Event pipelines · auth-service/main.go Auth startup
Components 19
Log ingestion
- gRPC ingestion
services/log-ingestion/server/server.go - Upload handlers
services/log-ingestion/handlers - Event streamers
services/log-ingestion/streamer - Log records
services/log-ingestion/models/logs.model.go - Ingestion startup
services/log-ingestion/main.go
Search and visualization
- Elasticsearch
- Index and retention setup
services/log-ingestion/elasticsearch/setup.es.go - Kibana
Streaming and rules
- NATS JetStream
- Rule-engine startup
services/rule-engine/main.go - Log consumers
services/rule-engine/nats-js/consumer.nats.go - Event pipelines
services/rule-engine/log-pipelines - Worker pool
services/rule-engine/pool/pool.go
Identity management
- Auth startup
services/auth-service/main.go - Admin login
services/auth-service/controllers/admin.controller.go - Auth database
services/auth-service/db/config.db.go
Other components
- Logintel Agent
- PostgreSQL
- RabbitMQ
Connections 14
- Logintel Agent → gRPC ingestion: sends gRPC logs
- gRPC ingestion → Elasticsearch: stores logs
- gRPC ingestion → NATS JetStream: publishes logs
- Elasticsearch → Kibana: feeds visualization
- Ingestion startup → Index and retention setup: runs setup
services/log-ingestion/main.go - Ingestion startup → NATS JetStream: initializes streams
services/log-ingestion/main.go - Ingestion startup → gRPC ingestion: starts server
services/log-ingestion/main.go - Rule-engine startup → Worker pool: starts pool
services/rule-engine/main.go - Event pipelines → NATS JetStream: consumes logs
services/rule-engine/log-pipelines/fanotify.pipeline.go - Event pipelines → Log consumers: invokes consumer
services/rule-engine/log-pipelines/fanotify.pipeline.go - Auth startup → Auth database: connects and seeds
services/auth-service/main.go - Auth startup → Admin login: starts server
services/auth-service/main.go - Auth database → PostgreSQL: uses database
- RabbitMQ → Admin login: sends alert email