Skip to main content

System Architecture

Live Log Insight is built on a modular, skill-based architecture that enables flexible log analysis workflows.

High-Level Overview

Live Log Insight High-Level System Architecture

Core Components

1. Pipeline Orchestrator

The central component that:
  • Loads configuration from config.json
  • Manages skill execution order
  • Handles data flow between skills
  • Manages error recovery
Location: src/agentX/pipeline/pipeline.py

2. Skills Registry

A collection of specialized skills organized by function:
SkillPurposeLocation
livelogs_insightsOrchestrates end-to-end analysis.agents/skills/livelogs_insights/
logsource_discoveryIdentifies log sources.agents/skills/logsource_discovery/
fetch_logsRetrieves raw logs.agents/skills/fetch_logs/
parse_logsNormalizes log formats.agents/skills/parse_logs/
aggregate_logsComputes metrics.agents/skills/aggregate_logs/
detect_anomaliesIdentifies issues.agents/skills/detect_anomalies/
high_hypothesisRoot cause analysis.agents/skills/high_hypothesis/
generate_summaryCreates reports.agents/skills/generate_summary/
recommend_actionsSuggests next steps.agents/skills/recommend_actions/

3. Configuration System

Hierarchical configuration management:
config/
├── config.json                          # Main configuration
├── log_sources.yaml                     # Log source definitions
├── log_patterns.yaml                    # Parsing patterns
├── anomaly_thresholds.yaml              # Detection settings
└── baseline_metrics.json               # Historical data

4. Shared Utilities

Common functionality used across skills: Location: src/agentX/shared/
ModulePurpose
utils.pyCommon utility functions
log_schema.pyStandard log format definitions
time_utils.pyTime parsing and formatting
io_utils.pyFile I/O operations

Data Flow

Live Log Insight Data Flow Diagram

Skill Structure

Each skill follows a consistent structure:
skill-name/
├── SKILL.md              # Required: Instructions + metadata
├── scripts/
│   └── run.py           # Required: Execution script
├── references/           # Optional: Additional documentation
│   ├── REFERENCE.md
│   └── OUTPUT_FORMS.md
├── config/              # Optional: Skill-specific config
│   └── settings.yaml
└── assets/              # Optional: Templates, resources
    └── templates/

SKILL.md Format

---
name: skill-name
description: Brief description of what this skill does.
license: Apache-2.0
metadata:
  author: your-name
  version: "1.0"
  category: observability
  tags: [logs, monitoring]
---

## Instructions

1. Step one
2. Step two
3. Step three

## Outputs

The skill returns structured data:
```json
{
  "result": "value"
}

## Agent Integration

The system uses Agent Skills format (`.agents/AGENTS.md`) for integration:

```markdown
# Live Log Insight Agent

## Overview

This agent analyzes system and application logs...

## Workflow

1. Log Source Discovery → Identify where logs live
2. Log Fetching → Retrieve raw logs
3. Log Parsing → Normalize into structured events
...

## Available Skills

- `logsource_discovery` - Identify log storage locations
- `fetch_logs` - Retrieve logs from sources
- ...

Next Steps

Pipeline Flow

Understand how skills work together.

Skills Reference

Explore individual skill details.