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.

circle-info

Quick Start: Press / to filter logs with regex patterns, or s to highlight text without filtering. Most users start with simple text filters and progress to regex mastery.

Filtering vs Search Overview

Gonzo provides two complementary approaches to finding relevant logs:

Feature
Key
Behavior
Best For

🔍 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:

  1. Press / from any panel

  2. Type your search term

  3. Press Enter to apply filter

  4. Navigate filtered results with normal keys

  5. 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:

  1. Navigate to Attributes panel (bottom-left)

  2. Click any attribute name or value

  3. Gonzo automatically creates filter for that attribute

  4. 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

Use Search When
Use Filter When

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:

  1. Focus Word Frequency panel (Tab to top-right)

  2. Navigate to interesting word (↑/↓ arrows)

  3. Press Enter to filter by that word

  4. Examine filtered results in Log Viewer

  5. 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:

Action
Result

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

  1. Start broad, narrow down - Begin with simple terms, add specificity

  2. Use structured fields - Leverage JSON/logfmt field names

  3. Combine with search - Filter to reduce, search to highlight

  4. Save common patterns - Remember frequently used regex patterns

🔍 Investigation Workflows

  1. Problem identification - Use Word Frequency panel to spot issues

  2. Initial filtering - Filter by problem type (error, timeout, etc.)

  3. Context gathering - Search for related terms while preserving context

  4. Deep dive - Progressive filtering to isolate specific issues

Performance Tips

  1. Anchor patterns - Use ^ and $ when possible

  2. Word boundaries - Use \b for exact word matches

  3. Avoid excessive wildcards - Minimize .* usage

  4. 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