remote-log-fetch

Retrieve and clean remote server logs via SSH and grep commands.

2|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/dd-xiaozhi/dev-agent-flow --skill remote-log-fetch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remote-log-fetch
Source: https://github.com/dd-xiaozhi/dev-agent-flow/tree/main/.claude/skills/remote-log-fetch
Command: npx skills add https://github.com/dd-xiaozhi/dev-agent-flow --skill remote-log-fetch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) components.

What problem does it solve?

This Skill solves the friction of manually logging into remote servers to troubleshoot issues, providing a standardized way to query, filter, and retrieve log files directly into your local development environment.

Core Features & Use Cases

  • Automated Log Retrieval: Execute grep, tail, and list operations on remote servers via SSH without manual terminal sessions.
  • Intelligent Cleaning: Automatically strips remote path prefixes, line numbers, and locale warnings from log outputs for cleaner analysis.
  • Use Case: When a production bug occurs, use this tool to quickly pull the last 200 lines of logs for a specific traceId from the development server to your local machine for immediate inspection.

Quick Start

Use the remote-log-fetch skill to grep for the traceId 9527 in the dev environment and save the results locally.

Frequently Asked Questions about remote-log-fetch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch remote server logs via SSH without manual terminal sessions?

Fetching remote server logs via SSH without manual terminal sessions requires automating retrieval using grep and tail operations. This Skill executes SSH commands directly to query and retrieve log files into your local development environment.

Can I grep logs for a specific traceId across multiple environments?

Yes, you can grep logs for a specific traceId across multiple environments. This Skill automates querying remote servers by traceId to pull relevant log lines directly to your local machine for immediate inspection.

What's the best way to clean remote server log outputs for local analysis?

Cleaning remote server log outputs for local analysis is best handled by automatically stripping remote path prefixes, line numbers, and locale warnings. This process ensures you get clean, standardized log data for debugging.

Do I need sshpass to retrieve remote server logs?

Yes, you need sshpass to retrieve remote server logs. This Skill requires sshpass for non-interactive authentication, along with local environment configuration, to establish secure server access.

When should I use automated remote log retrieval instead of manual SSH?

Automated remote log retrieval should be used instead of manual SSH when troubleshooting production bugs across multiple environments. It provides a standardized way to aggregate and filter log data directly into your local environment.

Why does remote log fetching include intelligent cleaning and stripping?

Remote log fetching includes intelligent cleaning and stripping to remove remote path prefixes and locale warnings from outputs. This ensures the retrieved log data is clean and immediately readable for accurate system monitoring and debugging.