Logfire Livetail Datetime Range
Livetail provides a convenient way to filter logs based on a specific datetime range using the datetime range selector.
Opening the Datetime Range Selector
To open the datetime range selector:
- Click on the calendar button located next to the search bar
- The datetime range selector will appear as a dropdown
Predefined Ranges
The datetime range selector offers a set of predefined relative ranges for quick selection:
- Last 30 minutes
- Last 60 minutes
- Last 3 hours
- Last 6 hours
- Last 12 hours
- Last 24 hours
- Last 2 days
- Last 7 days
- Last 14 days
- Last 30 days
- Everything
Clicking on one of these predefined ranges will automatically set the “From” and “To” fields to the corresponding relative datetime values.
Custom Range
In addition to the predefined ranges, you can also specify a custom datetime range using relative format:
- The “From” field accepts a relative datetime value in the format
now-<duration>
- Examples:
now-1m
(1 minute ago),now-1h
(1 hour ago),now-10d
(10 days ago)
- Examples:
- The “To” field accepts a relative datetime value or
now
to represent the current time- Examples:
now-30m
(30 minutes ago),now
- Examples:
To set a custom range:
- Enter the desired relative datetime value in the “From” field
- Enter the desired relative datetime value or
now
in the “To” field - Click the “Apply” button to apply the custom datetime range
The logs will be filtered to display only entries within the specified custom datetime range.
Loading Older Logs
If you need to access logs older than the currently loaded set, you can click the “Load older logs” link at the bottom of the log view. This will fetch and append older log entries to the existing view, allowing you to scroll further back in time.
Use the datetime range selector to quickly filter logs based on predefined relative ranges or specify a custom range using relative datetime values to focus on specific time periods of interest.