Log Format Issues
Format Detection Issues
Logs Not Being Parsed
# Test each line individually head -1 logs.json | jq . # If error, JSON is malformed# JSON must start with opening brace head logs.json # ✅ Good: {"level":"info"... # ❌ Bad: 2024-01-15 {"level":"info"...# Should have key=value pairs head logs.txt # ✅ Good: level=info service=api msg="started" # ❌ Bad: [INFO] service api startedgonzo --format=my-custom-format -f logs.txt
Mixed Format Logs
Attributes Not Extracted
JSON Issues
Malformed JSON
Multi-line JSON
JSON with Metadata Prefix
Escaped JSON in Strings
Logfmt Issues
Logfmt Not Detected
Spaces in Logfmt Values
Logfmt with Nested Structures
Plain Text Issues
No Structure Extracted from Text Logs
Severity Not Detected in Text Logs
OTLP Format Issues
OTLP Logs Not Appearing
OTLP Attributes Missing
Custom Format Issues
Custom Format Not Working
Regex Not Matching
Encoding Issues
Special Characters Garbled
Binary or Non-Text Data
Performance with Complex Formats
Slow Parsing with Complex Regex
Format Detection Issues
Logs Not Being Parsed
Mixed Format Logs
Attributes Not Extracted
JSON Issues
Malformed JSON
Multi-line JSON
JSON with Metadata Prefix
Escaped JSON in Strings
Logfmt Issues
Logfmt Not Detected
Spaces in Logfmt Values
Logfmt with Nested Structures
Plain Text Issues
No Structure Extracted from Text Logs
Severity Not Detected in Text Logs
OTLP Format Issues
OTLP Logs Not Appearing
OTLP Attributes Missing
Custom Format Issues
Custom Format Not Working
Regex Not Matching
Encoding Issues
Special Characters Garbled
Timestamp Issues
Timestamps Not Recognized
Timezone Issues
Large Log Line Issues
Very Long Lines Truncated
Lines Exceed Buffer
Debugging Format Issues
Test Format Detection
Examine Raw Logs
Compare with Known-Good Format
Common Format Patterns
Application Logs
System Logs
Container Logs
Format Best Practices
When Choosing Log Format
When You Can't Change Format
Getting Help
Provide This Info for Format Issues
Resources
Last updated