Loading...
Loading...
Analyzes system and application logs to detect anomalies and security threats in blue-team operations.
npx skill4agent add alphaonedev/openclaw-graph log-analysis$LOG_ANALYSIS_API_KEYlog-analysis scanPOST /api/v1/logs/analyzelog-analysis scan --file /var/log/syslog --anomaly true --output report.jsoncurl -X POST https://api.openclaw.com/api/v1/logs/analyze \
-H "Authorization: Bearer $LOG_ANALYSIS_API_KEY" \
-d '{"logs": [{"line": "ERROR: Unauthorized access"}], "filters": {"ip": "192.168.1.1"}}'--file <path>--anomaly--threshold 0.8{
"rules": [
{"pattern": "Failed login", "severity": "high"}
]
}--config config.json$LOG_ANALYSIS_API_KEYimport log_analysis_sdk
client = log_analysis_sdk.Client(api_key=os.environ['LOG_ANALYSIS_API_KEY'])
response = client.analyze(logs_data)try:
result = log_analysis.scan('--file invalid.log')
except FileNotFoundError:
print("Error: Log file not found. Verify path and permissions.")$LOG_ANALYSIS_API_KEYos.path.exists()log-analysis scan --file /var/log/auth.log --anomaly truelogs=$(curl http://server/logs.txt)
echo "$logs" | log-analysis scan --stream --threshold 0.7