How to Search for Logs
Master the logs search and filtering capabilities
Learn how to effectively search, filter, and analyze your logs using the Fivemanage dashboard's powerful search features.
Quick Search
The main search bar provides instant filtering across all log properties.
Basic Search Steps
- Click "+ Add filter" in the search bar
- Select the property you want to search:
- message - Log message content
- resource - Resource/dataset name
- metadata fields - Any custom fields you've added
- Enter your search value
- Press Enter to apply the filter
Advanced Filtering
Filter by Log Level
Filter logs by severity to focus on what matters:
- debug - Detailed debugging information
- info - General informational messages
- warn - Warning messages that need attention
- error - Error messages requiring immediate action
Filter by Date Range
Narrow down logs to specific time periods:
- Click the date picker in the filter bar
- Select a preset range (Last hour, Last 24 hours, Last 7 days)
- Or choose custom start and end dates
- Click Apply to filter
Filter by Custom Metadata
Any metadata fields sent with your logs become searchable filters:
- Click "+ Add filter"
- Start typing your metadata field name
- Select from the autocomplete suggestions
- Enter the value to search for
- Press Enter
Metadata fields are automatically indexed, making them instantly searchable without any configuration.
Custom Columns
Customize your logs view by adding metadata fields as table columns:
Adding Columns
- Click the settings icon on the right side of the logs table
- Search for the metadata field you want to add
- Click or press Enter to add it as a column
Managing Columns
- Resize: Click and drag column borders to adjust width
- Remove: Click the column header menu and select "Remove"
- Reorder: Drag column headers left or right to reposition
Saved Searches
Save frequently used search queries for quick access:
Creating Saved Searches
- Set up your desired filters and search criteria
- Click the star icon inside the search bar
- Give your search a descriptive name
- Click Save
Using Saved Searches
- Click the star icon on the far right of the search bar
- Browse or search your saved queries
- Click any saved search to instantly apply its filters
Search Operators
Use these operators for more precise searches:
| Operator | Description | Example |
|---|---|---|
== | Exact match | level == "error" |
!= | Not equal | status != "success" |
contains | Contains text | message contains "timeout" |
starts-with | Starts with text | resource starts-with "auth" |
ends-with | Ends with text | file ends-with ".lua" |
exists | Field exists | userId exists |
not-exists | Field doesn't exist | error not-exists |
>, >= | Greater than | count > 100 |
<, <= | Less than | duration <= 1000 |
Log Details View
Click any log entry to view complete details:
- Full metadata object - All custom fields and values
- Timestamp information - Exact time with timezone
- Related logs - Logs from the same session or user
- Raw data - Complete JSON representation
Best Practices
For Development
- Use debug and info levels liberally
- Add descriptive metadata fields
- Create saved searches for common debugging scenarios
For Production
- Focus on warn and error levels
- Set up date ranges for incident investigation
- Save searches for critical error patterns
Performance Tips
- Use specific filters to reduce result sets
- Add frequently viewed fields as columns
- Leverage saved searches to avoid recreating complex queries