look-at-the-logs

Locate relevant entries in plain text and JSON log files.

18|1|Updated Nov 5, 2015
One-click install
npx skills add https://github.com/cristianoliveira/dotfiles --skill look-at-the-logs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: look-at-the-logs
Source: https://github.com/cristianoliveira/dotfiles/tree/main/ai/shared/skills/look-at-the-logs
Command: npx skills add https://github.com/cristianoliveira/dotfiles --skill look-at-the-logs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you quickly locate relevant information within provided log files, reducing the time spent manually searching and debugging.

Core Features & Use Cases

  • Scan through designated log sources to extract targeted entries.
  • Support both plain text and JSON logs; leverage jq for JSON queries when available.
  • Use cases include debugging application failures, monitoring service health, and auditing events across environments.

Quick Start

Start by defining where your logs live (via $PWD/.logsrc or the default paths) and run the look-at-the-logs workflow to scan for the information you need.

Frequently Asked Questions about look-at-the-logs

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

FAQPage Schema
How do I search and extract specific entries from JSON log files?

You can locate information in JSON log files by leveraging jq queries to parse and extract specific entries. This allows you to quickly scan designated log sources while handling both plain text and JSON formats.

What is the best way to locate application errors across different log directories?

Locating application errors across directories involves scanning designated log sources in default, runtime, and watcher paths. It safely falls back to system paths like /var/log and /tmp when permitted to find the relevant log entries.

Can I analyze logs in /var/log and /tmp if my local directory is empty?

Yes, you can analyze logs in /var/log and /tmp if your local directories are empty. The log analysis process includes safe fallbacks to these system paths when permitted to ensure you can still locate relevant log entries.

How do I configure custom paths for log monitoring and text search?

You configure custom paths for log monitoring by defining a .logsrc file in your current working directory. This setup directs the text search to scan your specified locations instead of defaulting to the standard log directories.

Does log truncation preserve the original files during log analysis?

Yes, log truncation preserves the original files during log analysis. The process creates backups before truncating logs, ensuring the original data is maintained while you extract targeted information from your log sources.