Przejdź do treści
Biblioteka skilli
DevOps i chmura · Budowanie i kod

implementing-syslog-centralization-with-rsyslog

/implementing-syslog-centralization-with-rsyslog

Konfiguruje rsyslog do centralnego zbierania logów przez TLS, z szablonami, rotacją i kolejkami, i generuje konfiguracje serwera oraz klientów.

Licencja
Apache-2.0
Ostatnia zmiana repozytorium
31.08.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 31.08.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/agent.py

Co robi i kiedy

Konfiguruje rsyslog do centralnego zbierania logów przez TLS, z szablonami, rotacją i kolejkami, i generuje konfiguracje serwera oraz klientów.

Oryginalny opis (EN)

Configure rsyslog for centralized log collection with TLS encryption, custom templates, and log rotation, generating server and client configuration files with GnuTLS stream drivers, x509 certificate authentication, per-host log segregation, and reliable queue settings. Use when building a centralized, encrypted syslog pipeline, hardening rsyslog client/server configs for high-availability log infrastructure, or troubleshooting TLS-based syslog forwarding.

Jak działa

  1. When to Use
  2. Prerequisites
  3. Instructions
  4. Examples
Sekcje z nagłówków SKILL.md, w oryginale · 54 linii, 204 słów
Podgląd SKILL.md
---
name: implementing-syslog-centralization-with-rsyslog
description: Configure rsyslog for centralized log collection with TLS encryption,
  custom templates, and log rotation, generating server and client configuration
  files with GnuTLS stream drivers, x509 certificate authentication, per-host log
  segregation, and reliable queue settings. Use when building a centralized, encrypted
  syslog pipeline, hardening rsyslog client/server configs for high-availability log
  infrastructure, or troubleshooting TLS-based syslog forwarding.
domain: cybersecurity
subdomain: security-operations
tags:
- syslog
- rsyslog
- log-centralization
- tls-encryption
- log-management
- security-operations
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- DE.CM-01
- RS.MA-01
- GV.OV-01
- DE.AE-02
mitre_attack:
- T1078
- T1190
- T1059
- T1573
- T1486
---


# Implementing Syslog Centralization with Rsyslog


## When to Use

- When deploying or configuring implementing syslog centralization with rsyslog capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation

## Prerequisites

- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities

## Instructions

1. Install dependencies: `pip install jinja2 paramiko`
2. Generate TLS certificates for rsyslog server and clients using OpenSSL.
3. Run the agent to generate rsyslog server and client configurations:
   - Server: TLS listener on port 6514, per-host directory output, JSON-format templates
   - Client: TLS forwarding with disk-assisted queues for reliability
4. Deploy configurations to servers via SSH (paramiko).
5. Validate TLS connectivity and log delivery.

```bash
python scripts/agent.py --server-ip 10.0.0.1 --clients 10.0.0.10,10.0.0.11 --ca-cert ca.pem --output syslog_report.json
```

## Examples

### Server Configuration (TLS)
```
module(load="imtcp" StreamDriver.Name="gtls" StreamDriver.Mode="1"
       StreamDriver.Authmode="x509/name")
input(type="imtcp" port="6514")
template(name="PerHostLog" type="string" string="/var/log/remote/%HOSTNAME%/%PROGRAMNAME%.log")
*.* ?PerHostLog
```

### Client Configuration (Reliable Forwarding)
```
action(type="omfwd" target="10.0.0.1" port="6514" protocol="tcp"
       StreamDriver="gtls" StreamDriverMode="1"
       StreamDriverAuthMode="x509/name"
       queue.type="LinkedList" queue.filename="fwdRule1"
       queue.maxdiskspace="1g" queue.saveonshutdown="on"
       action.resumeRetryCount="-1")
```
Pliki w paczce (4)
  • LICENSE 11 KB
  • SKILL.md 3 KB
  • references/api-reference.md 2 KB
  • scripts/agent.py 9 KB

Wersje

W bazie nie ma innych skilli o nazwie implementing-syslog-centralization-with-rsyslog.

Migawka bazy z 13.11.2026 · wersja paczki 91439b0495f3 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100rsyslog-release
    Przygotowuje i publikuje stabilne wydania rsyslog: metadane, podpisane tagi, ogłoszenia na GitHub i scalanie gałęzi stabilnej z main.
  • 100implementing-log-forwarding-with-fluentd
    Konfiguruje Fluent Bit jako nadawcę logów i Fluentd jako centralny agregator, z trasowaniem, filtrowaniem i wzbogacaniem do Elasticsearch, S3 lub Splunk.
  • 95create-parser
    Projektuje parser syslog-ng dla SC4S na podstawie próbek logów i może go wdrożyć przez serwer MCP SC4S.
  • 100rsyslog-performance
    Bezpiecznie optymalizuje wydajność rsyslog: pomiary na porównywanych buildach, profilowanie, progi akceptacji i testy poprawności.
  • 100external-logging
    Wysyła logi organizacji z Control Plane do zewnętrznych dostawców, między innymi S3, CloudWatch, Datadog, Elastic, syslog i OpenTelemetry.
  • 90sc4s-send-syslog
    Wysyła testowe zdarzenia syslog w formie zwykłego tekstu do hosta SC4S przez narzędzie MCP, np. przy testach parsowania i routingu.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.