Overview
- Skill Key
- aronchick/expanso-log-sanitize
- Author
- aronchick
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/aronchick/expanso-log-sanitize
- Latest Commit SHA
- 9943d5fcc42802745d3ba9fe385414feeaa813a9
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Expanso Log Sanitize 技能。 若已安装,则直接安装 Expanso Log Sanitize 技能。
# log-sanitize "Sanitize log entries by removing passwords, tokens, and sensitive patterns" ## Requirements - Expanso Edge installed (`expanso-edge` binary in PATH) - Install via: `clawhub install expanso-edge` ## Usage ### CLI Pipeline ```bash # Run standalone echo '<input>' | expanso-edge run pipeline-cli.yaml ``` ### MCP Pipeline ```bash # Start as MCP server expanso-edge run pipeline-mcp.yaml ``` ### Deploy to Expanso Cloud ```bash expanso-cli job deploy https://skills.expanso.io/log-sanitize/pipeline-cli.yaml ``` ## Files | File | Purpose | |------|---------| | `skill.yaml` | Skill metadata (inputs, outputs, credentials) | | `pipeline-cli.yaml` | Standalone CLI pipeline | | `pipeline-mcp.yaml` | MCP server pipeline |
# log-sanitize
Sanitize log entries by removing sensitive data patterns like passwords, tokens, and API keys.
## Overview
This skill runs **entirely locally** without any API calls. It uses pattern matching to detect and redact common secret patterns in log files.
## Usage
### CLI Mode
```bash
# Sanitize a log line
echo 'user=admin password=secret123 token=abc456' | \
expanso-edge run pipeline-cli.yaml
# Sanitize an entire log file
cat /var/log/app.log | expanso-edge run pipeline-cli.yaml
```
### MCP Mode
```bash
# Start server
PORT=8080 expanso-edge run pipeline-mcp.yaml &
# Make request
curl -X POST http://localhost:8080/sanitize \
-H "Content-Type: application/json" \
-d '{"log": "password=secret123 api_key=sk-123abc"}'
```
## Output
```json
{
"sanitized": "user=admin password=***REDACTED*** token=***REDACTED***",
"redactions": 27,
"metadata": {
"skill": "log-sanitize",
"mode": "cli",
"trace_id": "abc123...",
"timestamp": "2024-01-15T10:30:00Z"
}
}
```
## Patterns Detected
| Pattern | Example | Replacement |
|---------|---------|-------------|
| Passwords | `password=secret` | `password=***REDACTED***` |
| API Keys | `api_key=sk-123` | `api_key=***REDACTED***` |
| Tokens | `token=abc123` | `token=***REDACTED***` |
| Bearer Auth | `Bearer eyJ...` | `Bearer ***REDACTED***` |
| AWS Keys | `AKIAIOSFODNN7` | `***AWS_KEY_REDACTED***` |
| JWT Tokens | `eyJ...eyJ...` | `***JWT_REDACTED***` |
| Secrets | `secret=xyz` | `secret=***REDACTED***` |
## Use Cases
- Pre-processing logs before sending to log aggregators
- Sanitizing logs before sharing with support
- Compliance with security policies
- Preparing logs for public documentation
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.