Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

parsing-helper

БесплатноБез исполняемых скриптовНе проверен

Customize and test Grok parsing for USP, Cloud Sensor, and External adapters. Helps generate parsing rules from sample logs, validate against test data, and…

refractionPOINTот refractionPOINT★ 32 звезды на GitHub

Об этом скилле

Parsing Helper

A guided workflow for creating, testing, and deploying Grok parsing configurations for LimaCharlie adapters. This skill helps you customize how log data is parsed and normalized as it's ingested into LimaCharlie.


LimaCharlie Integration

Prerequisites: Run /init-lc to initialize LimaCharlie context.

LimaCharlie CLI Access

All LimaCharlie operations use the limacharlie CLI directly:

limacharlie <noun> <verb> --oid <oid> --output yaml [flags]

For command help and discovery: limacharlie <command> --ai-help

Critical Rules

Rule Wrong Right
CLI Access Call MCP tools or spawn api-executor Use Bash("limacharlie ...") directly
Output Format --output json --output yaml (more token-efficient)
Filter Output Pipe to jq/yq Use --filter JMESPATH to select fields
LCQL Queries Write query syntax manually Use limacharlie ai generate-query first
Timestamps Calculate epoch values Use date +%s or date -d '7 days ago' +%s
OID Use org name Use UUID (call limacharlie org list if needed)

⚠️ TIMEZONE NOTE: Patterns like SYSLOGTIMESTAMP (Dec 16 17:50:04) lack timezone info. LimaCharlie assumes UTC. This skill automatically detects timezone mismatches by comparing parsed times to current UTC.

When to Use

Use this skill when:

  • Setting up new log parsing: Configure Grok patterns for a new log source
  • Troubleshooting parsing issues: Logs aren't being parsed correctly or fields are missing
  • Modifying field extraction: Need to add, remove, or change extracted fields
  • Testing parsing changes: Validate new parsing rules before deploying to production
  • Generating adapter configurations: Create YAML/CLI config for local USP adapters

Common scenarios:

  • "Help me parse these firewall logs"
  • "The timestamp isn't being extracted correctly from my syslog"
  • "I need to add a new field to my adapter parsing"
  • "Generate a Grok pattern for these log samples"
  • "Test this parsing configuration before I deploy it"

What This Skill Does

This skill provides a 5-phase workflow:

  1. Organization Selection - Select the LimaCharlie organization
  2. Adapter Discovery - Identify the adapter type and get current configuration
  3. Sample Log Collection - Get sample logs from the adapter's sensor or user input
  4. Grok Pattern Generation - Analyze logs and generate appropriate Grok patterns
  5. Validation & Deployment - Test parsing and apply configuration

Supported Adapter Types

Type Description Configuration Method
External Adapter Cloud-managed adapters (syslog, webhook, API) Update via set_external_adapter API
Cloud Sensor Virtual sensors for cloud platforms (AWS, Azure, GCP, SaaS) Update via set_cloud_sensor API
One-off/USP Adapter On-prem adapters with local configuration Output YAML/CLI config for user

Required Information

Before starting, gather:

  • Organization: The LimaCharlie org where the adapter is configured
  • Adapter Type: External Adapter, Cloud Sensor, or One-off/USP Adapter
  • Adapter Name: For cloud-managed adapters, the name of the existing adapter
  • Sample Logs: Either from the adapter's sensor or user-provided samples

How to Use

Phase 1: Organization Selection

Get the list of available organizations:

limacharlie org list --output yaml

Use AskUserQuestion to let the user select an organization if multiple are available.

Phase 2: Adapter Discovery & Type Selection

Ask the user which adapter type they're working with using AskUserQuestion:

Option A: External Adapter (cloud-managed syslog, webhook, API)

  1. List available external adapters:
limacharlie external-adapter list --oid <SELECTED_ORG_ID> --output yaml
  1. Get the selected adapter's current configuration:
limacharlie external-adapter get --key <ADAPTER_NAME> --oid <SELECTED_ORG_ID> --output yaml

Option B: Cloud Sensor (AWS, Azure, GCP, SaaS)

  1. List available cloud sensors:
limacharlie cloud-adapter list --oid <SELECTED_ORG_ID> --output yaml
  1. Get the selected cloud sensor's current configuration:
limacharlie cloud-adapter get --key <SENSOR_NAME> --oid <SELECTED_ORG_ID> --output yaml

Option C: One-off/USP Adapter (local adapter, no cloud config)

No API calls needed. Proceed directly to sample log collection.

Phase 3: Get Sample Log Data

Option A: Query from adapter's sensor (for cloud-managed adapters)

If the adapter is already ingesting data, you can fetch sample events:

  1. Find the sensor by IID (Installation ID from the adapter's installation key):
limacharlie sensor list --oid <SELECTED_ORG_ID> --filter "[?iid=='<IID>']" --output yaml
  1. Get recent events from the sensor:

IMPORTANT: Alway

Полный SKILL.md на GitHub

Установить parsing-helper в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Task
Read
Bash
Skill
AskUserQuestion

FAQ

Что делает скилл parsing-helper?

Customize and test Grok parsing for USP, Cloud Sensor, and External adapters. Helps generate parsing rules from sample logs, validate against test data, and deploy configurations. Use when setting up new log sources, troubleshooting parsing issues, or modifying field extraction for adapters.

Как установить скилл parsing-helper?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл parsing-helper запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить parsing-helper с