# bugrazen/elkstack architecture

> Architecture diagram of the GitHub repository bugrazen/elkstack, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bugrazen/elkstack
- Repository: https://github.com/bugrazen/elkstack

## Overview

This repository configures a log-monitoring stack that collects Windows and Exchange events, enriches and parses them in Logstash, and sends the results to Elasticsearch for inspection in Kibana. The README documents the Beats listener, security-event scoring, Exchange CSV parsing, and stack services. Source excerpts were unavailable, so relationships beyond those documented in the README are omitted or marked unverified.

Main entry points: [`logstash/conf.d/10-input.conf`](https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/10-input.conf) (Beats input), [`logstash/conf.d/90-output.conf`](https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/90-output.conf) (Logstash output), [`logstash/conf.d/21-dc-security.conf`](https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/21-dc-security.conf) (Security enrichment), [`logstash/conf.d/31-exc-messagetracking.conf`](https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/31-exc-messagetracking.conf) (Exchange CSV parser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collection["Log collection"]
  node_winlogbeat["Winlogbeat config<br/>[DC_winlogbeat.yml]"]
  node_filebeat["Filebeat config<br/>[EXC_filebeat.yml]"]
end

subgraph group_processing["Logstash processing"]
  node_input["Beats input<br/>[10-input.conf]"]
  node_security["Security enrichment"]
  node_application["Application events"]
  node_system["System events<br/>[23-dc-system.conf]"]
  node_exchange_parser["Exchange CSV parser"]
  node_output["Logstash output<br/>[90-output.conf]"]
end

subgraph group_storage["Search and storage"]
  node_elasticsearch[("Elasticsearch<br/>[compose.yml]")]
  node_kibana["Kibana<br/>[compose.yml]"]
end

subgraph group_operations["Stack services"]
  node_logstash_service["Logstash service<br/>[compose.yml]"]
end

node_beats(("Beats senders"))
node_exchange_logs["Exchange tracking logs"]
node_operator(("Analyst"))

node_winlogbeat -.->|"configures"| node_beats
node_filebeat -.->|"configures"| node_beats
node_beats -->|"sends events"| node_input
node_input -->|"routes events"| node_security
node_exchange_logs -->|"parses CSV"| node_exchange_parser
node_security -.->|"forwards enriched events"| node_output
node_exchange_parser -.->|"forwards parsed events"| node_output
node_output -->|"writes events"| node_elasticsearch
node_logstash_service -.->|"runs pipeline"| node_input
node_operator -.->|"inspects events"| node_kibana

click node_winlogbeat "https://github.com/bugrazen/elkstack/blob/main/winlogbeat/DC_winlogbeat.yml"
click node_filebeat "https://github.com/bugrazen/elkstack/blob/main/filebeat/EXC_filebeat.yml"
click node_input "https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/10-input.conf"
click node_security "https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/21-dc-security.conf"
click node_application "https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/22-dc-application.conf"
click node_system "https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/23-dc-system.conf"
click node_exchange_parser "https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/31-exc-messagetracking.conf"
click node_output "https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/90-output.conf"
click node_elasticsearch "https://github.com/bugrazen/elkstack/blob/main/compose.yml"
click node_kibana "https://github.com/bugrazen/elkstack/blob/main/compose.yml"
click node_logstash_service "https://github.com/bugrazen/elkstack/blob/main/compose.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_winlogbeat,node_filebeat toneBlue
class node_input,node_security,node_application,node_system,node_exchange_parser,node_output toneAmber
class node_elasticsearch,node_kibana toneMint
class node_logstash_service toneRose
class node_beats,node_exchange_logs,node_operator toneIndigo
```

## Components

### Log collection

- [Winlogbeat config](https://github.com/bugrazen/elkstack/blob/main/winlogbeat/DC_winlogbeat.yml): `winlogbeat/DC_winlogbeat.yml`
- [Filebeat config](https://github.com/bugrazen/elkstack/blob/main/filebeat/EXC_filebeat.yml): `filebeat/EXC_filebeat.yml`

### Logstash processing

- [Beats input](https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/10-input.conf): `logstash/conf.d/10-input.conf`
- [Security enrichment](https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/21-dc-security.conf): `logstash/conf.d/21-dc-security.conf`
- [Application events](https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/22-dc-application.conf): `logstash/conf.d/22-dc-application.conf`
- [System events](https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/23-dc-system.conf): `logstash/conf.d/23-dc-system.conf`
- [Exchange CSV parser](https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/31-exc-messagetracking.conf): `logstash/conf.d/31-exc-messagetracking.conf`
- [Logstash output](https://github.com/bugrazen/elkstack/blob/main/logstash/conf.d/90-output.conf): `logstash/conf.d/90-output.conf`

### Search and storage

- [Elasticsearch](https://github.com/bugrazen/elkstack/blob/main/compose.yml): `compose.yml`
- [Kibana](https://github.com/bugrazen/elkstack/blob/main/compose.yml): `compose.yml`

### Stack services

- [Logstash service](https://github.com/bugrazen/elkstack/blob/main/compose.yml): `compose.yml`

### Other components

- **Beats senders**
- **Exchange tracking logs**
- **Analyst**

## Connections

- Winlogbeat config → Beats senders: configures
- Filebeat config → Beats senders: configures
- Beats senders → Beats input: sends events (evidence: `README.md`)
- Beats input → Security enrichment: routes events (evidence: `README.md`)
- Exchange tracking logs → Exchange CSV parser: parses CSV (evidence: `README.md`)
- Security enrichment → Logstash output: forwards enriched events
- Exchange CSV parser → Logstash output: forwards parsed events
- Logstash output → Elasticsearch: writes events (evidence: `README.md`)
- Logstash service → Beats input: runs pipeline
- Analyst → Kibana: inspects events
