/sc4s-plugin:create-parserfrom sc4s-plugin
Designs SC4S syslog-ng parsers from raw log samples and optionally deploys them via the SC4S MCP server. Useful when onboarding new vendors, adding custom log sources, or creating parser logic for unsupported logs.
Ships in sc4s-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Guide the operator through collecting representative logs, designing an SC4S parser, optionally deploying it, and verifying the resulting event routing.
Ask once for all missing information:
Do not proceed until at least one complete positive log, vendor, product, index, sourcetype, and desired final event format are known or explicitly confirmed. If only one positive example is available, continue but state that filter confidence is limited and request additional examples before production rollout.
Read parser-guide.md next to this file before designing the parser. It is the bundled baseline for SC4S parser structure, filters, rewrites, templates, and deployment layout.
When the SC4S repository lookup tools are available:
sc4s://docs/creating_parsers resource when the client exposes it. Otherwise call search_docs(query) for the relevant format, topic, parser method, or rewrite question.list_vendors to check for existing vendor support.list_vendor_parsers(vendor), then get_parser(parser_name) for the closest parser. Reuse conventions, not product-specific assumptions.Use these lookups to supplement the bundled guide, not replace it.
Analyze every supplied sample and create a complete .conf file:
.tmp.*; put only intentionally serialized values in .values.*; use fields.* only when the operator requested indexed HEC fields. Follow the bundled guide's template, namespace, and quoting rules.<filename> to app-<type>-<vendor>_<product>.conf. Normalize it to lowercase, use underscores within vendor/product identifiers, retain the .conf suffix, and reject path separators, traversal components, or an empty name.set() inside rewrite { ... };. Before previewing or deploying, inspect the complete configuration and ensure it ends with ;.Show the exact <filename> and complete parser. Explain:
vendor_product, template, resulting event-body format, and extracted-field delivery method.If an external metadata override is needed, recommend $manage-sc4s-splunk-metadata; do not refer to an undefined sc4s:configure command.
Ask whether the parser needs adjustments. Revise and repeat the explanation until the operator approves the content. Treat this as authoring approval only, not permission to mutate SC4S.
Ask whether to deploy the approved parser.
If $manage-sc4s-parsers is available, hand off the exact approved <filename> and parser content to that skill. Follow its read-before-write, overwrite warning, fresh confirmation, asynchronous job polling, read-back, health verification, conflict handling, and rollback-preservation workflow. Do not call add_parser directly from this skill, and do not reuse authoring approval as deployment confirmation.
If the management skill is unavailable or the operator prefers manual deployment:
/opt/sc4s/local/config/app_parsers/<filename>.Always provide the complete parser content for manual copy and preserve the approved filename exactly.
After either deployment path:
$manage-sc4s-parsers.Use precise completion language:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub splunk/splunk-connect-for-syslog --plugin sc4s-plugin6 skills in this plugin
/manage-sc4s-parsersSafely list, inspect, deploy, update, or delete custom parsers on a running SC4S instance through MCP. Use for custom parser inventory, parser content review, parser replacement, removal, and post-change verification./manage-sc4s-splunk-metadataManage SC4S Splunk Metadata by safely inspecting, adding, updating, removing, or clearing overrides through MCP. Use for vendor_product index, source, sourcetype, host, or sc4s_template overrides in splunk_metadata.csv./sc4s-guided-configurationUse when users ask to configure SC4S, create an env_file, set Splunk HEC details, tune performance, or apply generated settings to a running SC4S instance through natural conversation./sc4s-send-syslogSend raw-text test syslog events to the SC4S host through its MCP tool. Use when a user wants to inject sample syslog lines for parser, routing, or ingestion testing; not for PCAP replay or arbitrary hosts./troubleshoot-sc4sDiagnose SC4S collector startup, ingestion, parsing, metadata, buffering, resource, and management API problems with MCP or operator-run commands. Keep troubleshooting within SC4S; identify external failures and hand off to their owner.Other plugins' skills for the same job