Complete reference for Gonzo's configuration file format. This guide documents all available configuration options and their valid values.
Configuration File Location
Default location : ~/.config/gonzo/config.yml
Custom location : Specify with --config flag
Copy gonzo --config /path/to/config.yml Gonzo uses YAML format for configuration files.
Basic structure :
Copy # Input configuration
files : []
follow : false
# Performance settings
update-interval : 1s
log-buffer : 1000
memory-size : 10000
# Display settings
skin : default
# AI configuration
ai-model : ""
# OTLP receiver
otlp :
enabled : false
grpc-port : 4317
http-port : 4318 Complete Schema
files
Type : array of strings
Default : [] (empty, uses stdin)
Description : List of log files or glob patterns to read
Notes :
Can specify multiple files
Paths can be relative or absolute
follow
Type : boolean
Default : false
Description : Follow log files in real-time (like tail -f)
Notes :
Only applies to file input
When true, watches files for new content
Useful for monitoring live logs
update-interval
Type : duration
Default : "1s"
Valid values : Any Go duration string
Description : How often the dashboard updates
Examples :
"1s" - One second (default)
Notes :
Lower values = more responsive but higher CPU
Higher values = lower CPU but less responsive
Can be changed at runtime with u/U keys
log-buffer
Type : integer
Default : 1000
Valid range : 1 to 100000
Description : Maximum number of log entries to keep in memory
Notes :
Circular buffer (old logs evicted when full)
Higher values use more memory
Lower values may lose old logs faster
Consider log volume when setting
memory-size
Type : integer
Default : 10000
Valid range : 100 to 1000000
Description : Maximum number of words to track for frequency analysis
Notes :
Affects Word Frequency panel
Higher values track more unique words
Lower values use less memory
LRU eviction when limit reached
Display Settings
skin
Type : string
Default : "default"
Valid values : Any installed skin name
Description : Color scheme/theme to use
Built-in skins :
Dark themes :
default - Gonzo default dark
controltheory-dark - ControlTheory branded
solarized-dark - Solarized dark
Light themes :
controltheory-light - ControlTheory branded
github-light - GitHub light
solarized-light - Solarized light
vs-code-light - VS Code light
Notes :
Custom skins go in ~/.config/gonzo/skins/
Can be changed via command line: --skin=NAME
AI Configuration
ai-model
Type : string
Default : "" (auto-select best available)
Description : AI model to use for log analysis
Common values :
"" - Auto-select (recommended)
"gpt-3.5-turbo" - OpenAI GPT-3.5
"llama3" - Ollama Llama 3
"mistral" - Ollama Mistral
Model names from your AI provider
Notes :
Requires OPENAI_API_KEY environment variable
Can be overridden with --ai-model flag
Can be changed at runtime with m key
OTLP Receiver Configuration
otlp.enabled
Type : boolean
Default : false
Description : Enable OTLP log receiver
Notes :
Starts gRPC and HTTP servers
Required for receiving OTLP logs
Can be enabled via --otlp-enabled flag
otlp.grpc-port
Type : integer
Default : 4317
Valid range : 1024 to 65535
Description : Port for OTLP gRPC receiver
Notes :
Standard OTLP port is 4317
Change if port conflict exists
Requires otlp.enabled: true
otlp.http-port
Type : integer
Default : 4318
Valid range : 1024 to 65535
Description : Port for OTLP HTTP receiver
Notes :
Standard OTLP HTTP port is 4318
Change if port conflict exists
Requires otlp.enabled: true
Advanced Configuration
test-mode
Type : boolean
Default : false
Description : Run without TTY for testing
Notes :
For automated testing only
formats-dir
Type : string
Default : "~/.config/gonzo/formats"
Description : Directory containing custom format definitions
Notes :
Override default formats directory
Must contain .yaml format files
Path can use ~ for home directory
Complete Example
Schema Validation
Gonzo validates configuration on startup:
Valid config : Gonzo starts normally
Invalid config : Error message explains issue
Common validation errors :
Unknown configuration keys
Testing Configuration
Test your configuration:
Environment Variable Overrides
Environment variables override config file:
Config Key
Environment Variable
See Environment Variables for details.
Command Line Flag Overrides
Command line flags override both config file and environment variables:
Priority (highest to lowest):
Configuration Best Practices
Development Use
Resource-Constrained
Troubleshooting
Config Not Loading
Symptom : Settings ignored
Checks :
Symptom : Parse error on startup
Solution :
Check indentation (use spaces, not tabs)
Verify colons have spaces after them
Ensure strings with special chars are quoted
Use YAML validator online
Values Not Applied
Check priority :
Is there a command line flag overriding?
Is there an environment variable set?
Is the config file being loaded?
Environment Variables - Environment variable reference
CLI Reference - Command line options
Configuration File Guide - Detailed configuration guide
circle-exclamation
Note : Changes to the config file require restarting Gonzo. Runtime changes can be made with keyboard shortcuts or flags.
Last updated 5 months ago