All Products
Search
Document Center

Simple Log Service:Add an interaction event for dashboard drill-down

Last Updated:Jun 20, 2026

To identify the root cause of an exception on a dashboard, use an interaction occurrence to perform a quick drill-down analysis, such as querying a Logstore, performing Trace Analysis, or opening another dashboard. This topic describes the supported types of interaction occurrences and how to configure them for a dashboard.

How it works

2024-09-12_15-24-27 (1)

To investigate an issue on a dashboard, use interaction occurrences for quick drill-down analysis. For example, you can Open Logstore, Open Dashboard, Open Saved Search, Create Custom HTTP URL, Open Trace Details, or Open Full-stack Observability Trace Details.

This example uses Nginx access logs. When you click the section of the pie chart that represents a status of 200, you are directed to the corresponding Logstore to query logs with that status. The query uses the same time range as the dashboard.

  1. Add a request status pie chart: Configure the query time range, Logstore, and query statement.

  2. Add an interaction occurrence to the request status pie chart: Set the interaction occurrence for the PV field on the dashboard to Open Logstore. Then, add the Use variables to dynamically modify the parameters of a query statement ${{status}} variable to query logs in the Logstore based on the status selected from the dashboard.

Simple Log Service supports the following interaction occurrences. For configuration instructions, see the end of this topic.

Open LogStore

If you set the interaction event to Open LogStore, triggering it redirects you to the target LogStore page.

  • Prerequisites

    A target LogStore must already exist. For more information, see Create a basic LogStore.

  • Configuration parameters

    Parameter

    Description

    Custom Name

    The name of the interaction event.

    Select Project

    Select the Project that contains the target LogStore.

    Select Logstore

    Specifies the target LogStore to open when the interaction event is triggered.

    Open New Window

    Enable Open New Window to open the LogStore page in a new browser tab.

    Time Range

    Specifies the time range for queries in the target LogStore.

    Inherit Filter Condition

    Enable Inherit Filter Condition to pass the existing filter conditions from the current dashboard to the target LogStore. The conditions are prepended to the query statement with an AND operator.

    Filter Statement

    Enter a filter statement, which is passed to the target LogStore and prepended to the query statement with an AND operator.

    Click Add Variable to insert variables into the filter statement. Important system variables include:

    • ${{__start_time__}}: The start time of the query.

    • ${{__end_time__}}: The end time of the query.

    • ${{__interval__}}: The time interval of the query, in seconds.

    • ${{__project__}}: The name of the Project to query.

    After inserting a variable, its value is used as a filter condition.

Open dashboard

When configured, triggering this interaction event opens the target dashboard.

  • Prerequisites

    The target dashboard must exist and contain charts. For more information, see Add a chart to a dashboard.

    To pass variables, you must first define them in the query statement of a chart on the target dashboard. For more information, see Use variables to dynamically adjust query statement parameters.

  • Parameters

    Parameter

    Description

    Custom Name

    The name of the interaction event.

    Select Project

    The Project that contains the target dashboard.

    Select Dashboard

    The dashboard that opens when the interaction event is triggered.

    Open New Window

    Enabling Open New Window opens the target dashboard in a new browser tab.

    Time Range

    The time range for the target dashboard.

    Inherit Filter Condition

    Enabling Inherit Filter Condition passes filter conditions from the current dashboard to the target dashboard.

    Inherit Variable

    Enabling Inherit Variable passes variables from the current dashboard to the target dashboard.

    Filter Statement

    A filter statement to apply to the target dashboard.

    You can insert variables into the filter statement.

    Click Add Variable to insert variables into the filter statement. Key system variables include:

    • ${{__start_time__}}: The start time of the query.

    • ${{__end_time__}}: The end time of the query.

    • ${{__interval__}}: The time interval of the query, in seconds.

    • ${{__project__}}: The name of the queried Project.

    After you insert a variable, its value is used as a filter condition.

    Dynamic Variables

    Specifies dynamic variables to pass to the target dashboard.

    • Dynamic Variable Name: The name of the dynamic variable.

    • Column for Dynamic Variable Value: The column that provides the value for the dynamic variable.

    Note

    You can add up to 5 dynamic variables.

    Static Variables

    Specifies static variables to pass to the target dashboard.

    • Static Variable Name: The name of the static variable.

    • Static Value: The fixed value to pass to the target dashboard.

    Note

    You can add up to 5 static variables.

Custom HTTP URL

When an interaction event is configured as a Custom HTTP URL, triggering it opens the target page.

  • Prerequisites

    You must have a target HTTP URL.

  • Parameters

    Parameter

    Description

    Custom Name

    The name of the interaction event.

    Protocol

    The protocol of the URL.

    URL

    The destination URL to open when the event is triggered.

    You can embed the following Simple Log Service system variables in the URL. Example: https://sls.console.alibabacloud.com/lognext/project/${{__project__}}/logsearch/test.

    • ${{__start_time__}}: The start time of the query.

    • ${{__end_time__}}: The end time of the query.

    • ${{__interval__}}: The query interval, in seconds.

    • ${{__project__}}: The name of the Project to be queried.

    Transcode

    Enabling Transcode encodes the URL content.

    Open New Window

    Enabling Open New Window opens the URL in a new browser window or tab.

Saved search

If you configure the interaction event to open a saved search, triggering it redirects you to the target saved search page.

  • Prerequisites

    The target saved search must exist. For more information, see saved search.

    To use variables, you must first define them in the query statement of the target saved search. For more information, see Use variables to dynamically modify the parameters of a query statement.

  • Parameters

    Parameter

    Description

    Custom Name

    Specify a name for the interaction event.

    Select Project

    Select the project that contains the target saved search.

    Select Saved Query

    Select the saved search that opens when the event is triggered.

    Open New Window

    If you enable Open New Window, the target saved search opens in a new browser tab.

    Time Range

    Set the time range for the target saved search.

    Inherit Filter Condition

    If you enable Inherit Filter Condition, existing filter conditions on the current dashboard are passed to the target saved search and prepended to the query statement with an AND operator.

    Filter Statement

    Enter a filter statement to pass to the target saved search. The system prepends this statement to the query statement with an AND operator.

    You can insert variables into the filter statement. When a variable is inserted, its value is used as a filter condition.

    Dynamic Variables

    You can use variables to dynamically modify the query statement in a target saved search. If a variable added here has the same name as a variable in the target query statement, the value from the field that triggered the event replaces the variable in the target query.

    • Dynamic Variable Name: Specify the name for the dynamic variable.

    • Column for Dynamic Variable Value: Select the column that provides the value for the dynamic variable.

    Note

    You can add up to five dynamic variables.

    Static Variables

    You can use variables to dynamically modify the query statement in a target saved search. If a variable added here has the same name as a variable in the target query statement, the static value that you specify replaces the variable in the target query.

    • Static Variable Name: Specify the name for the static variable.

    • Static Value: Specify the value to assign to the static variable.

    Note

    You can add up to five static variables.

Trace analysis

If you set the interaction event to Open Trace Analysis, triggering the event redirects you to the Trace Analysis page.

  • Prerequisites

    A trace instance must exist with ingested traces. For more information, see Overview of Ingesting Traces.

  • Parameters

    Parameter

    Description

    Custom Name

    The name of the interaction event.

    Open New Window

    Turn on the Open New Window switch to open the associated Trace Analysis page in a new tab.

    Time Range

    The time range for Trace Analysis.

    Trace Instance

    Select the target trace instance. When triggered, its Trace Analysis page opens.

    Filter Statement

    The filter statement to pass to the target Trace Analysis page.

    You can insert variables into the filter statement. When a variable is inserted, its value acts as a filter condition.

Trace details

If you set the interaction occurrence to open trace details, triggering it redirects you to the trace details page.

  • Prerequisites

    You must create a trace instance and collect trace data. For more information, see Overview of ingesting trace data.

  • Parameters

    Parameter

    Description

    Custom Name

    The custom name for the interaction occurrence.

    Open New Window

    If you enable the Open New Window switch, the trace details page opens in a new window when the interaction is triggered.

    Time Range

    The time range of data to query on the trace details page.

    Trace Instance

    The target trace instance whose details will open when the interaction is triggered.

    Trace ID

    The target Trace ID.

    Span ID

    The target Span ID.

Full-stack observability trace analysis

Configure the interaction event to open the Full-stack Observability trace analysis page. Triggering this event redirects you to the page.

  • Prerequisites

    You must have a Full-stack Observability instance. For more information, see Create a Full-stack Observability instance.

  • Parameters

    Parameter

    Description

    Custom Name

    The name of the interaction event.

    Open New Window

    After you enable the Open New Window switch, clicking the associated Full-stack Observability instance opens a new page.

    Time Range

    The time range for the Full-stack Observability instance.

    Full-stack Observability Instance

    Select the target Full-stack Observability Instance. When triggered, the event opens the trace analysis page for the selected Instance.

    Filter Statement

    Enter a filter statement to pass to the trace analysis page.

    You can insert variables into the filter statement. After a variable is inserted, its value is used as a filter condition.

    You can click Add Variable to insert variables into the filter statement. The key system variables are described as follows:

    • ${{__start_time__}}: The start time of the query.

    • ${{__end_time__}}: The end time of the query.

    • ${{__interval__}}: The time interval of the query, in seconds.

    • ${{__project__}}: The name of the Project to be queried.

Full-stack Observability trace

If you configure an interaction event to open Full-stack Observability trace details, triggering the event redirects you to the trace details page.

  • Prerequisites

    You must first create a Full-stack Observability instance and a trace instance, and then ingest trace data. For more information, see Create a Full-stack Observability instance and Ingest trace data.

  • Parameters

    Parameter

    Description

    Custom Name

    The name of the interaction event.

    Open New Window

    After you turn on the Open New Window switch, clicking the associated Full-stack Observability instance opens a new page.

    Time Range

    The time range for the trace data query.

    Full-stack Observability Instance

    Select the target Full-stack Observability instance. Triggering this event opens the trace details page for the selected instance.

    Trace ID

    Specifies the Trace ID of the trace to display.

    Span ID

    Specifies the Span ID of the span to focus on within the trace.

Procedure

Example 1: Open Logstore event

1. Add a request status distribution chart

1.1 Add a dashboard

  1. Log on to the Simple Log Service console, select the target project, and on the Dashboard > Dashboards page, create a dashboard named Request Status Distribution Chart.

    Click the + icon in the upper-right corner and select Add Dashboard from the dropdown menu.

1.2 Add a chart

  1. To add a chart, click Add Chart.

  2. Configure and save the chart:

    1. In the left pane, configure the query time range, Logstore, and query statement.

    2. In the right pane, configure the chart type, category, and value column. Click Apply at the top of the page to preview the chart, and then click OK to save it.

      * | 
      select 
        count(1) as pv ,status 
      group by 
        status

2. Add an interaction event

After configuration, clicking a status code such as 200 on the dashboard redirects you to the Logstore to query logs where the status is 200. The query time range in the Logstore matches the dashboard's time range.

2.1 Add an interaction event to a field

  1. In the right pane, on the Interaction Occurrences tab, click Add Field and select a field from the dropdown list.

    For example, select A > pv.

  2. Click Add Event, select Open Logstore from the dropdown list, and configure the Logstore and dynamic variables in the dialog box.

    The Logstore serves as the query destination. The time range defines the query period, and the filter statement is the query to be executed.

    In the dialog box, you must also specify a Custom Name, select a project such as nginx-dashboard, and optionally toggle the Open in New Window switch.

2.2 Save the chart and dashboard

  1. In the upper-right corner of the Edit Chart page, click OK.

  2. In the upper-right corner of the dashboard edit page, click Save.

2.3 Verify the interaction event

On the chart, click the data point for the 200 status, and then click Open Logstore. You are redirected to the Logstore where the query statement is status: 200 and the query time is Two Days Before, matching the time range selected in the dashboard.

Example 2: Open Dashboard event

This example uses NGINX access logs collected in a Logstore named website_log. You will create two dashboards, RequestMethod and destination_drilldown, and set up an interaction between them.

  • On the RequestMethod dashboard, add a table that categorizes request methods and configure an interaction occurrence to open the destination_drilldown dashboard.

  • On the destination_drilldown dashboard, add a line chart that shows the PV trend over time.

After you complete the configuration, you can click a request method on the RequestMethod dashboard to navigate to the destination_drilldown dashboard and view the corresponding PV trend.

  1. On the destination_drilldown dashboard, add a line chart to show the PV trend over time.

    The query statement is as follows, where ${{method|PUT}} is a variable. For more information, see Add a chart to a dashboard.

    request_method: ${{method|PUT}} | SELECT __time__ - __time__ %60 AS time, COUNT(1) AS PV GROUP BY time ORDER BY time
  2. On the RequestMethod dashboard, add a table that categorizes request methods and configure an interaction occurrence.

    The query statement is as follows. For more information, see Add a chart to a dashboard.

    Select website_log as the data source, enter the query statement *|SELECT request_method, COUNT(1) AS count GROUP BY request_method ORDER BY count DESC LIMIT 10, and then on the Interaction Occurrences tab, add the Open Dashboard action for the request_method field.

    Example configuration:

    • Set Select Dashboard to destination_drilldown.

    • Set Dynamic Variable Name to method and select the request_method column.

    Select Open Dashboard as the interaction occurrence type and enable the Inherit Variable switch.

  3. Verify the result.

    In the table on the RequestMethod dashboard, click GET and then click Open Dashboard. This action redirects you to the destination_drilldown dashboard.

    The destination_drilldown dashboard displays the PV trend over time for GET requests.

    跳转后仪表盘