Log Aggregation

Log Aggregation

Guides an AI agent to set up centralized logging with ELK, Loki or Splunk, covering collection, parsing, dashboards and alerts.

Skill files9 files

references/

scripts/

templates/

SKILL.md102 lines
1
---
2
name: log-aggregation
3
description: >
4
Implement centralized logging with ELK Stack, Loki, or Splunk for log
5
collection, parsing, storage, and analysis across infrastructure.
6
---
7
8
# Log Aggregation
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
Build comprehensive log aggregation systems to collect, parse, and analyze logs from multiple sources, enabling centralized monitoring, debugging, and compliance auditing.
21
22
## When to Use
23
24
- Centralized log collection
25
- Distributed system debugging
26
- Compliance and audit logging
27
- Security event monitoring
28
- Application performance analysis
29
- Error tracking and alerting
30
- Historical log retention
31
- Real-time log searching
32
33
## Quick Start
34
35
Minimal working example:
36
37
```yaml
38
# docker-compose.yml - ELK Stack setup
39
version: "3.8"
40
41
services:
42
elasticsearch:
43
image: docker.elastic.co/elasticsearch/elasticsearch:8.5.0
44
environment:
45
- discovery.type=single-node
46
- xpack.security.enabled=false
47
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
48
ports:
49
- "9200:9200"
50
volumes:
51
- elasticsearch_data:/usr/share/elasticsearch/data
52
healthcheck:
53
test: curl -s http://localhost:9200 >/dev/null || exit 1
54
interval: 10s
55
timeout: 5s
56
retries: 5
57
58
logstash:
59
image: docker.elastic.co/logstash/logstash:8.5.0
60
volumes:
61
- ./logstash.conf:/usr/share/logstash/pipeline/logstash.conf
62
ports:
63
// ... (see reference guides for full implementation)
64
```
65
66
## Reference Guides
67
68
Detailed implementations in the `references/` directory:
69
70
| Guide | Contents |
71
|---|---|
72
| [ELK Stack Configuration](references/elk-stack-configuration.md) | ELK Stack Configuration |
73
| [Logstash Pipeline Configuration](references/logstash-pipeline-configuration.md) | Logstash Pipeline Configuration |
74
| [Filebeat Configuration](references/filebeat-configuration.md) | Filebeat Configuration |
75
| [Kibana Dashboard and Alerts](references/kibana-dashboard-and-alerts.md) | Kibana Dashboard and Alerts |
76
| [Loki Configuration (Kubernetes)](references/loki-configuration-kubernetes.md) | Loki Configuration (Kubernetes) |
77
| [Log Aggregation Deployment Script](references/log-aggregation-deployment-script.md) | Log Aggregation Deployment Script |
78
79
## Best Practices
80
81
### ✅ DO
82
83
- Parse and structure log data
84
- Use appropriate log levels
85
- Add contextual information
86
- Implement log retention policies
87
- Set up log-based alerting
88
- Index important fields
89
- Use consistent timestamp formats
90
- Implement access controls
91
92
### ❌ DON'T
93
94
- Store sensitive data in logs
95
- Log at DEBUG level in production
96
- Send raw unstructured logs
97
- Ignore storage costs
98
- Skip log parsing
99
- Lack monitoring of log systems
100
- Store logs forever
101
- Log PII without encryption
102

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…