[comment]: # ({38b63d3a-e5d2e078})
# 1 Action log

[comment]: # ({/38b63d3a-e5d2e078})

[comment]: # ({6e11c2ba-bdb0b35b})
### Description

These parameters and the possible property values for the respective dashboard widget field objects allow to configure
the [*Action log*](/manual/web_interface/frontend_sections/monitoring/dashboard/widgets/action_log) widget in `dashboard.create` and `dashboard.update` methods.

[comment]: # ({/6e11c2ba-bdb0b35b})

[comment]: # ({1bbe0e64-d296d123})
### Parameters

The following parameters are supported for the *Action log* widget.

|Parameter|[type](/manual/api/reference/dashboard/object#dashboard-widget-field)|name|value|
|-----|-|-----|-------------------|
|*Refresh interval*|0|rf_rate|0 - No refresh;<br>10 - 10 seconds;<br>30 - 30 seconds;<br>60 - *(default)* 1 minute;<br>120 - 2 minutes;<br>600 - 10 minutes;<br>900 - 15 minutes.|
|*Sort entries by*|0|sort_triggers|3 - Time (ascending);<br>4 - *(default)* Time (descending);<br>5 - Type (ascending);<br>6 - Type (descending);<br>7 - Status (ascending);<br>8 - Status (descending);<br>11 - Recipient (ascending);<br>12 - Recipient (descending).|
|*Show lines*|0|show_lines|Valid values range from 1-100.<br><br>Default: 25.|

[comment]: # ({/1bbe0e64-d296d123})

[comment]: # ({211d52e5-3fc28bb5})
### Examples

The following examples aim to only describe the configuration of the dashboard widget field objects for the *Action log* widget.
For more information on configuring a dashboard, see [`dashboard.create`](/manual/api/reference/dashboard/create).

[comment]: # ({/211d52e5-3fc28bb5})

[comment]: # ({300d1130-3b82e4ae})
#### Configuring an *Action log* widget

Configure an *Action log* widget that displays 10 entries of action operation details, sorted by time (in ascending order).

Request:

```json
{
    "jsonrpc": "2.0",
    "method": "dashboard.create",
    "params": {
        "name": "My dashboard",
        "display_period": 30,
        "auto_start": 1,
        "pages": [
            {
                "widgets": [
                    {
                        "type": "actionlog",
                        "name": "Action log",
                        "x": 0,
                        "y": 0,
                        "width": 12,
                        "height": 5,
                        "view_mode": 0,
                        "fields": [
                            {
                                "type": 0,
                                "name": "show_lines",
                                "value": 10
                            },
                            {
                                "type": 0,
                                "name": "sort_triggers",
                                "value": 3
                            }
                        ]
                    }
                ]
            }
        ],
        "userGroups": [
            {
                "usrgrpid": 7,
                "permission": 2
            }
        ],
        "users": [
            {
                "userid": 1,
                "permission": 3
            }
        ]
    },
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
}
```

Response:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "dashboardids": [
            "3"
        ]
    },
    "id": 1
}
```

[comment]: # ({/300d1130-3b82e4ae})

[comment]: # ({e9d30322-c51a45f2})
### See also

-   [Dashboard widget field](/manual/api/reference/dashboard/object#dashboard-widget-field)
-   [`dashboard.create`](/manual/api/reference/dashboard/create)
-   [`dashboard.update`](/manual/api/reference/dashboard/update)

[comment]: # ({/e9d30322-c51a45f2})
