All Products
Search
Document Center

Simple Log Service:Interaction occurrences

Last Updated:Aug 29, 2023

You can configure interaction occurrences when you create a chart. This topic describes the interaction occurrences that you can configure.

Background information

Interaction occurrences are important for data analysis. You can use interaction occurrences to change the levels of data dimensions and the analysis granularities to obtain more detailed information. When you use a chart, you can configure an interaction occurrence for the data of a single column in the results of a query statement. Interaction occurrences include Open Logstore, Open Saved Search, Open Dashboard, and Create Custom HTTP URL.

For information about how to configure an interaction occurrence, see Add a chart to a dashboard.

Open Logstore

You can select Open Logstore from the Add Event drop-down list to configure an interaction occurrence. When the interaction occurrence is triggered, the page of the specified Logstore automatically appears.

  • Prerequisites

    A Logstore is created. For more information, see Create a Logstore.

  • Parameters

    Parameter

    Description

    Open in New Tab

    If you turn on Open in New Tab, the Logstore is opened on a new tab after the interaction occurrence is triggered.

    Select Logstore

    The Logstore that is created. When the interaction occurrence is triggered, the page of the Logstore automatically appears.

    Time Range

    The time range of the data to query in the Logstore. You can use one of the following time ranges:

    • Default time range: After you click a value in the chart that you created, the page of the Logstore automatically appears. On the page of the Logstore, the time range is the default time range, which is 15 Minutes(Relative).

    • Chart time range: After you click a value in the chart that you created, the page of the Logstore automatically appears. On the page of the Logstore, the time range is the time range of the chart when the interaction occurrence is triggered.

    • Relative time range: After you click a value in the chart that you created, the page of the Logstore automatically appears. On the page of the Logstore, the time range is the relative time range that you specify for the Time Range parameter.

    • Time frame: After you click a value in the chart that you created, the page of the Logstore automatically appears. On the page of the Logstore, the time range is the time frame that you specify for the Time Range parameter.

    Inherit Filtering Conditions

    If you turn on Inherit Filtering Conditions, the filter conditions that are added to your dashboard are synchronized to the Logstore. Then, you can enter a query statement after the filter conditions. The query statement and the filter conditions are connected by using the AND operator.

    Filter

    On the Filter tab, enter a filter statement in the Filter Statement field. When the interaction occurrence is triggered, the filter statement is synchronized to the Logstore. The filter statement is added to the start of the query statement by using the AND operator.

    The filter statement can contain fields that you specify in the Optional Parameter Fields field.

Open Saved Search

You can select Open Saved Search from the Add Event drop-down list to configure an interaction occurrence. When the interaction occurrence is triggered, the page of the specified saved search automatically appears.

  • Prerequisites

    A saved search is created. For more information, see Saved search.

    If you want to configure a variable for the interaction occurrence, make sure that the variable is configured in the query statement of the saved search. For more information, see Variables.

  • Parameters

    Parameter

    Description

    Open in New Tab

    If you turn on Open in New Tab, the specified saved search is opened on a new tab when the interaction occurrence is triggered.

    Select Saved Search

    The saved search that is created. When the interaction occurrence is triggered, the page of the saved search automatically appears.

    Time Range

    The time range of the data to query on the page of the saved search. You can use one of the following time ranges:

    • Default time range: After you click a value in the chart that you created, the page of the saved search automatically appears. On the page of the saved search, the time range is the default time range, which is 15 Minutes(Relative).

    • Chart time range: After you click a value in the chart that you created, the page of the saved search automatically appears. On the page of the saved search, the time range is the time range of the chart when the interaction occurrence is triggered.

    • Relative time range: After you click a value in the chart that you created, the page of the saved search automatically appears. On the page of the saved search, the time range is the relative time range that you specify for the Time Range parameter.

    • Time frame: After you click a value in the chart that you created, the page of the saved search automatically appears. On the page of the saved search, the time range is the time frame that you specify for the Time Range parameter.

    Inherit Filtering Conditions

    If you turn on Inherit Filtering Conditions, the filter conditions that are added to your dashboard are synchronized to the saved search. Then, you can enter a query statement after the filter conditions. The query statement and the filter conditions are connected by using the AND operator.

    Inherit Variables

    If you turn on Inherit Variables and the variable that you configured on the dashboard is the same as the variable in the saved search, the variable in the saved search is replaced by the variable value on the dashboard.

    Filter

    On the Filter tab, enter a filter statement in the Filter Statement field. When the interaction occurrence is triggered, the filter statement is synchronized to the saved search. The filter statement is added to the start of the query statement by using the AND operator.

    The filter statement can contain fields that you specify in the Optional Parameter Fields field.

    Variable

    Simple Log Service allows you to modify the query statement in the saved search by using variables. If the variable that you specify for Static Variables is the same as the variable in the query statement of the saved search, the variable in the query statement is replaced by the variable value that you specify for Static Variables. You can add variables on the Variable tab.

    Note

    You can add up to five dynamic variables and five static variables.

    • Dynamic variables

      • Variable: the name of the variable.

      • Variable Value Column: the column in which the variable values are located. The values are used to dynamically replace the variable in the saved search.

    • Static variables

      • Variable: the name of the variable.

      • Value: The value of the static variable. The value is used to replace the placeholder variable in the saved search.

Open Dashboard

You can select Open Dashboard from the Add Event drop-down list to configure an interaction occurrence. When the interaction occurrence is triggered, the page of the specified dashboard automatically appears.

  • Prerequisites

    A dashboard is created and a chart is added to the dashboard. For more information, see Add a chart to a dashboard.

    If you want to configure a variable for the interaction occurrence, make sure that the variable in the query statement is configured for the chart that you added to the dashboard. For more information, see Variables.

  • Parameters

    Parameter

    Description

    Open in New Tab

    If you turn on Open in New Tab, the specified dashboard is opened on a new tab when the interaction occurrence is triggered.

    Select Dashboard

    The dashboard that is created. When the interaction occurrence is triggered, the page of the dashboard automatically appears.

    Time Range

    The time range to query data on the dashboard. You can use one of the following time ranges:

    • Default time range: After you click a value in the chart that you created, the page of the dashboard automatically appears. On the page of the dashboard, the time range is the default time range, which is 15 Minutes(Relative).

    • Chart time range: After you click a value in the chart that you created, the page of the dashboard automatically appears. On the page of the dashboard, the time range is the time range of the chart when the interaction occurrence is triggered.

    • Relative time range: After you click a value in the chart that you created, the page of the dashboard automatically appears. On the page of the dashboard, the time range is the relative time range that you specify for the Time Range parameter.

    • Time frame: After you click a value in the chart that you created, the page of the dashboard automatically appears. On the page of the dashboard, the time range is the time frame that you specify for the Time Range parameter.

    Inherit Filtering Conditions

    If you turn on Inherit Filtering Conditions, the filter conditions that are added to your dashboard are synchronized to the created dashboard.

    Inherit Variables

    If you turn on Inherit Variables, the variables that are configured for your dashboard are synchronized to the created dashboard.

    Filter

    On the Filter tab, enter a filter statement in the Filter Statement field. When the interaction occurrence is triggered, the filter statement is synchronized to the dashboard.

    The filter statement can contain fields that you specify in the Optional Parameter Fields field.

    Variable

    Simple Log Service allows you to synchronize the specified variables to the dashboard. You can add variables on the Variable tab.

    Note

    You can add up to five dynamic variables and five static variables.

    • Dynamic variables

      • Variable: the name of the variable.

      • Variable Value Column: the column in which the variable values are located. The values are dynamically synchronized to the dashboard to which you are redirected.

    • Static variables

      • Variable: the name of the variable.

      • Value: The variable values in this column are fixed values and are synchronized to the dashboard.

Create Custom HTTP URL

You can select Create Custom HTTP URL from the Add Event drop-down list to configure an interaction occurrence. When the interaction occurrence is triggered, the specified page automatically appears.

The path in the custom HTTP URL is the path of the file that you want to access. You can add an optional parameter to the path. If you click a variable value on a chart to trigger the interaction occurrence, the parameter is replaced by the variable value and you are redirected to the custom HTTP URL.

  • Prerequisites

    An HTTP URL is available.

  • Parameters

    Parameter

    Description

    Protocol

    The protocol of the HTTP URL.

    URL

    The URL to which you want to be redirected.

    Use System Variables

    If you turn on Use System Variables, you can insert the following variables that are provided by Simple Log Service to the HTTP URL: ${sls_project}, ${sls_dashboard_title}, ${sls_chart_name}, ${sls_chart_title}, ${sls_region}, ${sls_start_time}, ${sls_end_time}, ${sls_realUid}, and ${sls_aliUid}.

    Transcoding

    If you turn on Transcoding, the custom HTTP URL is encoded.

    Optional Parameter Fields

    If you click a variable value on a chart to trigger the interaction occurrence, the specified optional parameter is replaced by the variable value.