Filtering & Search
Master Gonzo's powerful filtering and search capabilities to quickly find the logs that matter. From simple text matching to advanced regex patterns, this guide covers all techniques for efficient log analysis.
Filtering vs Search Overview
Gonzo provides two complementary approaches to finding relevant logs:
🔍 Filtering
/
Shows only matching logs, hides others
Reducing data volume, focusing analysis
📍 Search
s
Highlights matches, shows all logs
Finding text while preserving context
🎯 Attribute Filter
Click attributes
Filters by structured data values
JSON/logfmt field-based analysis
📊 Word Filter
Click words
Filters by frequency panel selections
Quick filtering from common terms
Basic Filtering Techniques
Text-Based Filtering
The simplest way to filter logs is by searching for specific text:
# Enter filter mode with '/'
# Then type any of these patterns:
error # Show logs containing "error"
database # Show logs containing "database"
timeout # Show logs containing "timeout"
user_id # Show logs containing "user_id"Workflow:
Press
/from any panelType your search term
Press
Enterto apply filterNavigate filtered results with normal keys
Press
/again and clear to remove filter
Case Sensitivity
Multiple Term Filtering
Regular Expression Filtering
Gonzo supports full regex patterns for powerful filtering:
Basic Regex Patterns
Advanced Regex Techniques
Performance-Oriented Regex
Structured Data Filtering
For JSON and logfmt logs, leverage structured field filtering:
JSON Log Filtering
Logfmt Filtering
Attribute-Based Filtering
Use the Attributes panel for point-and-click filtering:
Navigate to Attributes panel (bottom-left)
Click any attribute name or value
Gonzo automatically creates filter for that attribute
Refine with additional patterns if needed
Example Workflow:
Search and Highlighting
Use search mode to find text while preserving full context:
Basic Search Operations
Advanced Search Patterns
Search vs Filter Decision Guide
Want to see context around matches
Want to focus only on relevant logs
Investigating pattern frequency
Reducing data volume
Understanding log flow
Debugging specific issues
Learning about log structure
Performance analysis
Interactive Filtering Workflows
Word Frequency Panel Filtering
Leverage the Word Frequency panel for quick filtering:
Focus Word Frequency panel (Tab to top-right)
Navigate to interesting word (↑/↓ arrows)
Press Enter to filter by that word
Examine filtered results in Log Viewer
Clear filter (press
/and clear) to see all logs again
Power User Tip:
Multi-Step Filtering
Build complex filters progressively:
Filter Refinement Techniques
Severity-Based Filtering
Quickly focus on specific log levels using both regex patterns and the interactive severity filter modal:
Severity Filter Modal (Ctrl+F)
The fastest way to filter by log level is using the severity filter modal:
Quick Access: Press Ctrl+F from anywhere in Gonzo
Features:
Visual selection of severity levels
Real-time count of logs at each level
Color-coded severity display
Quick select all/none options
Combines with other active filters
Workflow:
Interactive Features:
Navigate to "Select All" + Enter
Show all severity levels (applies immediately)
Navigate to "Select None" + Enter
Hide all levels (applies immediately)
Space on individual level
Toggle that specific level
Enter (after changes)
Apply selections and close
ESC
Cancel changes and close
Combining with Other Filters:
Standard Severity Patterns
Custom Severity Systems
Performance Filtering
Find performance-related issues efficiently:
Response Time Analysis
Resource Usage Filtering
Security-Focused Filtering
Identify security-related events:
Authentication Filtering
Network Security Filtering
Filter Management
Clearing and Modifying Filters
Filter History and Patterns
Common Filter Patterns to Remember:
Advanced Filter Techniques
Lookahead and Lookbehind
Context-Aware Filtering
Filter Performance Optimization
Efficient Filter Design
Large Dataset Strategies
Troubleshooting Filters
Common Filter Problems
Filter not working:
Too many/few results:
Performance issues:
Filter Testing Strategies
Filter Best Practices
🎯 Effective Filter Strategies
Start broad, narrow down - Begin with simple terms, add specificity
Use structured fields - Leverage JSON/logfmt field names
Combine with search - Filter to reduce, search to highlight
Save common patterns - Remember frequently used regex patterns
🔍 Investigation Workflows
Problem identification - Use Word Frequency panel to spot issues
Initial filtering - Filter by problem type (error, timeout, etc.)
Context gathering - Search for related terms while preserving context
Deep dive - Progressive filtering to isolate specific issues
⚡ Performance Tips
Anchor patterns - Use ^ and $ when possible
Word boundaries - Use \b for exact word matches
Avoid excessive wildcards - Minimize .* usage
Pre-filter when possible - Filter at source before Gonzo
What's Next?
Now that you've mastered filtering and search, explore these advanced topics:
Detailed Usage Guide - Real-world patterns and power-user workflows
AI Integration - Let AI help identify patterns
Log Analysis - Advanced pattern detection techniques
Configuration - Save filter patterns and preferences
You now have complete mastery over finding relevant information in your logs! 🚀 From simple text filtering to complex regex patterns, you can quickly isolate the logs that matter for any investigation.
Last updated