Searches logs by content keywords, patterns, and filters with context extraction
Searches logs by keywords or regex patterns across local and archived logs with context extraction. Use when you need to find specific log entries by content, filtered by log type, date range, or issue number.
/plugin marketplace add fractary/claude-plugins/plugin install fractary-logs@fractaryThis skill inherits all available tools. When active, it can use any tool Claude has access to.
docs/search-syntax.mdscripts/aggregate-results.shscripts/search-cloud.shscripts/search-local.shv2.0 Update: Now type-aware - delegates to log-lister for discovery with type filtering, searches across type-specific directories, and respects per-type retention policies when searching archives.
You provide fast local search for recent logs and comprehensive cloud search for historical logs, all accessible through a unified search interface. </CONTEXT>
<CRITICAL_RULES>
v2.0: Uses log-lister skill for type-filtered discovery before search. </INPUTS>
<WORKFLOW>When searching without location filter:
When searching local logs:
When searching archived logs:
When combining results:
Purpose: Search local logs with grep
Usage: search-local.sh "<query>" [type] [max_results]
Outputs: Matches with context
Purpose: Search archived logs via index
Usage: search-cloud.sh "<query>" [issue]
Outputs: Matches from cloud logs
Purpose: Combine and rank search results
Usage: aggregate-results.sh <results_json>
Outputs: Ranked, deduplicated results
<COMPLETION_CRITERIA> Search complete when:
Search results:
šÆ STARTING: Log Search
Query: "OAuth implementation"
Sources: local + cloud
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Searching local logs...
ā Found 2 matches in local logs
Searching cloud logs...
ā Found 1 match in archived logs
Aggregating results...
ā 3 total matches
ā
COMPLETED: Log Search
Found 3 matches (2 local, 1 archived):
1. [Local] session-123-2025-01-15.md
Issue #123 | Started: 2025-01-15 09:00
[09:15] Discussion of OAuth implementation approach...
[09:16] Claude: Let me break down the OAuth requirements...
2. [Local] session-124-2025-01-16.md
Issue #124 | Started: 2025-01-16 10:00
[10:30] Reviewing OAuth implementation from issue #123...
3. [Archived] session-089-2024-12-10.md
Issue #89 | Archived: 2024-12-20
[14:20] Initial OAuth research and provider comparison...
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Next: Use /fractary-logs:read <issue> to view full log
No results:
šÆ STARTING: Log Search
Query: "nonexistent"
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā
COMPLETED: Log Search
No matches found for "nonexistent"
Try:
- Broadening your search terms
- Removing filters
- Searching archived logs with --cloud-only
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
</OUTPUTS>
<DOCUMENTATION>
Search operations don't require documentation. Results are ephemeral.
</DOCUMENTATION>
<ERROR_HANDLING>
If query is malformed:
If local search fails:
If cloud search fails:
If archive index not found:
</ERROR_HANDLING>