ranilojohn/claude-blue/defensive-graylog

Claude Code and agent skill by ranilojohn/claude-blue

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Graylog for security monitoring: architecture (Graylog server, Data Node/OpenSearch, MongoDB), inputs (Syslog, GELF, Beats, Raw, CEF), streams and index sets with retention, processing pipelines and rule language, lookup tables and data adapters (GeoIP, CSV, threat intel), extractors (legacy), search query syntax, event definitions and correlation (aggregation and filter conditions), notifications, Graylog Security features (Sigma rules, investigations, anomaly detection), content packs, Sideca…

Install

npx vskill@latest install ranilojohn/claude-blue/defensive-graylog

SKILL.md

The same SKILL.md was published earlier as ranilojohn/claude-blue/defensive-graylog.

Graylog

Graylog is a log management platform popular with smaller SOCs and MSPs: cheap to run, fast search, flexible pipelines. Graylog Open covers ingestion/search/alerts; Graylog Security adds SIEM features (Sigma, investigations, anomaly detection).

Quick Workflow

  1. Inputs per source type; route to streams with dedicated index sets (retention per data type)
  2. Normalize with pipelines (prefer over extractors) to a consistent schema (GIM — Graylog Information Model — or ECS-like)
  3. Enrich via lookup tables (GeoIP, assets, threat intel)
  4. Build event definitions (filter + aggregation) with notifications
  5. Monitor input throughput, journal, and processing errors

1. Architecture

ComponentRole
Graylog serverInputs, processing, web UI, alerting
Data Node / OpenSearchStorage and search
MongoDBConfiguration metadata
SidecarManages Beats/NXLog collectors on endpoints
Forwarder (Enterprise/Cloud)Ship from on-prem to Graylog Cloud

Harden: TLS on inputs and web UI, authentication via LDAP/AD or SSO with MFA, roles per team, no inputs bound to 0.0.0.0 on internet-exposed hosts, separate admin users, audit log enabled (Enterprise).


2. Inputs & Streams

SourceInput
Linux/network syslogSyslog TCP/TLS (6514) or UDP
Windows (Winlogbeat/NXLog via Sidecar)Beats / GELF TCP
ApplicationsGELF HTTP/TCP
Firewalls with CEFCEF TCP

Stream rules route messages (e.g., source matches fw-* → "Firewall" stream) and assign index sets: e.g., firewall 90 days, Windows security 180 days, debug 7 days.


3. Pipeline Rules

text
rule "windows_failed_logon"
when
has_field("winlogbeat_event_code") && to_string($message.winlogbeat_event_code) == "4625"
then
set_field("event_category", "authentication");
set_field("event_outcome", "failure");
set_field("user_name", to_string($message.winlogbeat_event_data_TargetUserName));
set_field("source_ip", to_string($message.winlogbeat_event_data_IpAddress));
end
text
rule "geoip_and_ti_enrich"
when
has_field("source_ip") && !cidr_match("10.0.0.0/8", to_ip($message.source_ip))
then
let geo = lookup("geoip-city", to_string($message.source_ip));
set_field("source_geo_country", geo["country"].iso_code);
let ti = lookup_value("ti-bad-ips", to_string($message.source_ip));
set_field("ti_match", ti);
end
text
rule "parse_sshd_failure"
when
contains(to_string($message.message), "Failed password")
then
let m = grok(pattern: "Failed password for (invalid user )?%{USERNAME:user_name} from %{IP:source_ip} port %{INT:source_port}", value: to_string($message.message), only_named_captures: true);
set_fields(m);
set_field("event_outcome", "failure");
end

Attach pipelines to streams; order stages (parse → normalize → enrich → tag).


4. Search Syntax

text
event_category:authentication AND event_outcome:failure AND NOT source_ip:10.*
winlogbeat_event_code:4688 AND winlogbeat_event_data_CommandLine:/.*-enc.*/
source:fw-* AND action:deny AND destination_port:(445 OR 3389)
_exists_:ti_match
user_name:"svc_backup" AND source_geo_country:(NOT PH)

Lucene-style: wildcards *, ranges bytes:>1000000, regex /…/ (expensive), field existence _exists_:field. Time ranges set in UI or API.


5. Event Definitions (Alerts)

TypeExample
Filterwinlogbeat_event_code:1102 (Security log cleared) — any match
Aggregationevent_outcome:failure AND event_category:authentication grouped by source_ip, count() >= 50 in 10 min, with card(user_name) >= 20 (spray)
Correlation (Security)Sequence of events, e.g., failures then success from same IP

Notifications: email, HTTP (webhook to SOAR/TheHive/Slack/Teams), PagerDuty. Include fields and a search link in templates.


6. Graylog Security Features

Sigma rule import and management, Investigations (case collection of evidence), anomaly detection (ML on log volume/fields), Illuminate content packs (prebuilt parsing + dashboards for Windows, Okta, M365, firewalls). Verify licensing for your deployment.


7. Operations

CheckWhere
Input throughput & errorsSystem → Inputs
Journal utilization (backpressure)System → Nodes
Processing/indexing failuresSystem → Overview; failure processing stream
Index retention & sizeSystem → Indices
Source silenceEvent definition: aggregation count() < 1 over 30 min per critical source

Engagement Cheatsheet

text
inputs (TLS) → streams + index sets (retention per type) → pipelines (parse → normalize → enrich → tag) + lookup tables
→ Lucene searches → event definitions (filter/aggregation/correlation) → webhook to SOAR → monitor journal, failures, silence

Key References

  • Graylog documentation (go2docs.graylog.org); Graylog pipeline functions reference; Graylog Illuminate
  • Related: defensive-log-parsing, defensive-sigma, defensive-wazuh, defensive-query-languages

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ranilojohn/claude-blue/defensive-graylog/badge)](https://verified-skill.com/skills/ranilojohn/claude-blue/defensive-graylog)

Something wrong with this skill or its page? Tell us.