MATIH Platform is in active MVP development. Documentation reflects current implementation status.
19. Observability & Operations
Logging Architecture

Logging Architecture

MATIH implements structured logging using structlog for Python services and Spring Boot logging for Java services. Logs are collected by Fluent-bit or Promtail and shipped to Loki for centralized storage and querying. Log lines include trace IDs for correlation with distributed traces and metrics.


Subsections

PageDescription
Structured LoggingStructured log formatting for Python and Java services
Loki SetupLoki installation and configuration
Log Querying (LogQL)Writing LogQL queries for log exploration
Log AggregationFluent-bit and Promtail log collection

Logging Pipeline

Services --> Structured Logs --> Fluent-bit/Promtail --> Loki --> Grafana
                                                                    |
                                                          LogQL Queries
                                                          Trace Correlation

Log Levels

LevelUsage
ERRORErrors requiring investigation
WARNINGUnexpected conditions that may indicate problems
INFONormal operational events
DEBUGDetailed diagnostic information (disabled in production)