Skip to content

Field Values Sidebar

The Field Values Sidebar is a Kibana-inspired field exploration panel for discovering and filtering log data quickly. It shows available fields and their top distinct values, so you can see what’s in your data and build queries from it.

The sidebar appears on the left side of the query interface and shows:

  • Queryable fields discovered from your current source
  • Top 10 unique values for each field with occurrence counts
  • Quick-filter buttons to add or exclude values from your query

Click on any field name to expand it and see its top values. Each value shows:

  • The actual value
  • How many times it appears in the current time range
  • Click a value to add it as a filter: field="value"
  • Alt/Option+click a value to exclude it: field!="value"

The filter is automatically added to your LogchefQL query, and results update immediately.

The sidebar uses a hybrid loading strategy to balance responsiveness with query performance:

For ClickHouse, LowCardinality and Enum columns load their values automatically when you open the sidebar. These column types are optimized for distinct value queries and return quickly.

For ClickHouse, String columns require a click to load their values. This prevents slow queries on high-cardinality fields (like request IDs or timestamps) that could have millions of unique values.

For VictoriaLogs, fields are discovered dynamically for the selected time range and values are fetched on demand.

Fields with 6 or fewer distinct values automatically expand to show all values. This gives you quick access to common filter targets like log levels (debug, info, warn, error) without extra clicks.

Collapsed fields display a badge showing the total number of distinct values, helping you identify high vs. low cardinality fields at a glance.

The sidebar is context-aware and integrates with your current view:

Values and counts reflect only the selected time range. If you’re looking at the last 15 minutes, you’ll see values that appeared in that window, not historical data.

When you have an active LogchefQL query, the sidebar shows only values that match your current filters. For example, if your query is level="error", the sidebar values for other fields show only what appears in error logs.

The sidebar automatically updates when you run a query, keeping values in sync with your current view.

The sidebar handles errors gracefully:

  • Per-field errors: If one field fails to load, other fields continue working normally
  • Retry button: Failed fields show a retry button to attempt loading again
  • Progressive loading: Values load in parallel (up to 4 concurrent requests) for faster initial display

The sidebar behavior depends on the datasource:

Column Type Loading Notes
LowCardinality Auto Optimized for distinct queries
Enum Auto Fast enumeration of possible values
String On-demand Click to load (avoids slow high-cardinality queries)

Complex types like Map, Array, Tuple, and JSON are excluded since they don’t have simple distinct values.

  • Fields are discovered dynamically rather than read from a fixed SQL schema
  • Value lookups are time-range-aware
  • Internal fields such as _stream and _stream_id may exist, but Logchef hides noisy defaults in the main table view
  1. Use for exploration: When investigating unfamiliar data, expand fields to discover what values exist
  2. Build queries visually: Click through values to construct LogchefQL filters without typing
  3. Identify patterns: High occurrence counts reveal common values; low counts may indicate anomalies
  4. Narrow first: Apply time range and basic filters before loading String field values to get faster, more relevant results