Skip to main content

logX

logX is a log explorer Grafana app built into Scout. It provides deep visibility into your OpenTelemetry logs with advanced filtering, searching, and trace correlation.

logX queries logs stored in the Scout Telemetry Data Lake and integrates with other Scout apps like TraceX for complete observability.

logX Overview


Interface Overview​

The logX interface consists of:

SectionDescription
FiltersService/environment dropdowns, time picker, refresh
Filter SidebarCollapsible panel for attribute-based filtering
Search PanelText and regex search in log body
Active FiltersBadges showing currently applied filters
Timeseries ChartLog volume visualization over time
Logs PanelLog entries with expandable details

Getting Started​

Select Service and Environment​

  1. Use the Service Name dropdown to select one or more services
  2. Use the Environment dropdown to filter by environment
  3. Set the Time Range using the time picker

Time Range Settings​

SettingDefaultDescription
Max Time Range1hMaximum time range for queries
Max Unfiltered Range15mMaximum time range when no service/environment is selected
  • For time ranges up to 15 minutes: Select any time range and browse logs directly
  • For time ranges longer than 15 minutes: Select a Service Name and Environment first

Browse Logs​

Logs appear in the Logs Panel in reverse chronological order:

  • Each entry shows timestamp, severity, service, and log body
  • Severity is color-coded (INFO=green, WARN=yellow, ERROR=red)
  • Click any entry to expand and view full details

View Log Details​

When you expand a log entry, you'll see:

  • Full log body — Complete message without truncation
  • Trace Info tab — Trace ID, Span ID, and View Trace button
  • Resource Attributes tab — Service, host, and deployment info
  • Log Attributes tab — Exception details, HTTP info, custom attributes

Log Details


Filtering Logs​

Using the Filter Sidebar​

  1. Click the expand icon to open the sidebar
  2. Choose a category: Resource Attributes, Log Attributes, or Standard Columns
  3. Click an attribute to see available values
  4. Select values to add filters (use = to include, != to exclude)

Using Active Filters​

  • Active filters appear as badges above the timeseries chart
  • Click × on a badge to remove that filter
  • Click Clear all to remove all filters

Adding Filters from Logs​

  1. Expand a log entry
  2. Go to Resource Attributes or Log Attributes tab
  3. Hover over any value and click = or != to filter

Searching Logs​

Enter text in the search field to find logs containing that text:

  • Case insensitive matching
  • Use | (pipe) to search for multiple terms: error|timeout
  • Matching text is highlighted in results

Use the regex search field for pattern matching:

  • Supports RE2 regex syntax
  • Example: user_id=[0-9]+ matches "user_id=12345"
  • Example: (error|warn).*database matches error/warn logs about database

Timeseries Chart​

The bar chart shows log volume over time:

  • Spikes may indicate error storms or traffic increases
  • Drops may indicate service outages or collector issues
  • Click and drag to zoom into a specific time range

Pinning Logs​

Pin important logs to keep them visible:

  1. Expand a log entry
  2. Click the Pin button
  3. Pinned logs appear in a dedicated section at the top
  4. Pin state is saved in the URL for sharing

Trace Integration​

When logs have trace context, you can navigate to the full trace:

  1. Expand a log with a Trace ID
  2. Go to the Trace Info tab
  3. Click on Open trace details to open TraceX
  4. See the complete distributed trace

Trace Correlation


Generating Alerts​

Create alerts based on log patterns:

  1. Find a log that represents the pattern you want to alert on
  2. Expand the log and click Explore Alert Query
  3. Copy the ClickHouse query
  4. Create a new Grafana alert rule with this query

Configuration​

Access configuration at Administration → Plugins → logX → Configuration.

SettingDescriptionDefault
Database NameClickHouse databasedefault
EnvironmentsComma-separated liststaging,production
Environment Attribute KeyResource attribute for envenvironment
Max Time RangeMaximum query range1h
Max Unfiltered RangeMax range without filters15m
Max Variable OptionsDropdown option limit100
Show Search BarToggle search paneltrue
Enable RBAC FilteringTeam-based service filteringfalse

RBAC (Role-Based Access Control)​

When enabled, service visibility is restricted based on Grafana team membership:

  • Teams must follow naming pattern: {ServiceName}-{Role} (e.g., api-gateway-Viewer)
  • Users only see services from teams they belong to
  • All queries are automatically filtered to permitted services

URL Parameters​

logX state is persisted in the URL for bookmarking and sharing:

ParameterDescription
from / toTime range
var-service_nameSelected services
var-environmentSelected environment
var-searchLogBodyText search query
pinnedComma-separated pinned log IDs

Share the URL to give others the exact same view.


Was this page helpful?