test-limacharlie-adapter
Deploy a temporary LimaCharlie Adapter on the local Linux or Mac OS host for testing log ingestion. Downloads the adapter, auto-detects log sources, and…
от refractionPOINT★ 32 звезды на GitHub
Установить test-limacharlie-adapter в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Test LimaCharlie Adapter
Deploy a temporary LimaCharlie Adapter on the local Linux or Mac OS host for testing log ingestion. The adapter streams local logs to your LimaCharlie organization in real-time.
LimaCharlie Integration
Prerequisites: Run
/init-lcto 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) |
| Parsing | Write Grok patterns manually | Use parsing-helper skill (identifies timezone requirements) |
This skill includes a helper script (lc-adapter-helper.sh) that handles all platform detection, downloading, and process management automatically.
When to Use
Use this skill when:
- Testing log ingestion: Validate that logs flow correctly into LimaCharlie
- Testing D&R rules on logs: Write and test detection rules against real log data
- Exploring adapter behavior: Understand how adapters forward log data
- Development and debugging: Test adapter configurations before production deployment
- Learning: Explore LimaCharlie's log ingestion capabilities hands-on
What This Skill Does
This skill performs a multi-phase deployment:
- Phase 1 - Installation Key: Creates or finds an existing "Test Adapter" installation key in your selected LimaCharlie organization
- Phase 2 - Sample Collection & Parsing: Captures sample logs and invokes the
parsing-helperskill to generate and validate Grok patterns - Phase 3 - Adapter Deployment: Downloads the appropriate adapter binary for your platform and runs it with logs piped to stdin, using the parsing configuration from Phase 2
- Phase 4 - Verification: Verifies the adapter is connected and appearing as a sensor
- Phase 5 - View Data: Query and view the parsed ingested data
The adapter:
- Runs in the background (non-blocking)
- Uses a unique temp directory (avoids file conflicts)
- Streams logs in real-time (
journalctl -fortail -fon Linux,log streamon Mac OS) - Does NOT require root/sudo
- Cleans up automatically when stopped
Required Information
Before starting, ensure you have:
- LimaCharlie organization: Select from your available orgs or create a new one
- Linux or Mac OS host: Supports Linux x64, Mac Intel (x64), and Mac Apple Silicon (arm64)
- Internet access: Required to download the adapter binary
- Log access: On Linux with journalctl, uses system journal (preferred). On Linux without journalctl, needs read access to log files in
/var/log. On Mac OS, uses the unified logging system vialog stream
How to Use
Pre-requisite: Select an Organization
First, get the list of available organizations:
limacharlie org list --output yaml
This returns your available organizations. Use AskUserQuestion to let the user select one, or if they need a new org, use limacharlie org create to create one.
Phase 1: Get or Create Installation Key
Check for existing "Test Adapter" installation key:
limacharlie installation-key list --oid <SELECTED_ORG_ID> --output yaml
Look for a key with description 'Test Adapter' and extract its iid.
If "Test Adapter" key exists: Extract the iid value from the response.
If not exists: Create one:
limacharlie installation-key create --description "adapter test key" --oid <SELECTED_ORG_ID> --output yaml
Save the returned iid for later phases.
IMPORTANT: For adapters, the
installation_keyparameter is the IID (UUID format), NOT the full base64-encoded key used by EDR sensors.
Phase 2: Sample Collection & Parsing Configuration (MANDATORY)
DO NOT SKIP THIS PHASE. You MUST use the
parsing-helperskill to generate parsing configuration. Never write Grok patterns manually - the parsing-helper will identify timezone requirements and other critical settings.
Before deploying the adapter, capture sample logs and configure parsing rules. This ensures your logs are properly parsed when they arrive in LimaCharlie.
Step 1: Copy the helper script to /tmp:
cp plugins/lc-essentials/skills/test-limacharlie-adapter/lc-adapter-helper.sh /tmp/ && chmod +x /tmp/lc-adapter-helper.sh
Step 2: Capture sample logs to a file:
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Task - 02
Bash - 03
Read - 04
AskUserQuestion - 05
Skill
Вложенные файлы
- lc-adapter-helper.sh
FAQ
Что делает скилл test-limacharlie-adapter?
Deploy a temporary LimaCharlie Adapter on the local Linux or Mac OS host for testing log ingestion. Downloads the adapter, auto-detects log sources, and streams them to your LimaCharlie organization.
Как установить скилл test-limacharlie-adapter?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-limacharlie-adapter запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…