Get custom log distinct values
GET/projects/{projectId}/customLogs/{logCollectionName}/valueList/{fieldName}
Base URL: https://api.tinkermode.com
Retrieves a list of distinct values for a specified field across Log Entries.
Authentication
Send an Authorization header of the form ModeCloud <AUTH_CODE>.
Must contain a project API key.
Path parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
projectId | integer | Yes | The unique ID for a specified project. | |
logCollectionName | string | Yes | The name of the Log Collection. | |
fieldName | string | Yes | The name of the field to find distinct values. |
Query parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
begin | string | Yes | The begin time of the search range. The format follows RFC3339. | |
end | string | Yes | The end time of the search range. The format follows RFC3339. | |
fieldsFilter | string | No | A filter expression wrapped in a conjunction — either AND() or OR() — containing
comma-separated conditions.
| |
searchKeys | string | Yes | One or more search keys used to filter the result. Multiple search keys can be delimited with a comma. |
Responses
200 Successfully retrieved distinct values.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
count | integer | Yes | The total number of unique values returned. | |
values | array<object> | Yes | An array containing the unique values found for the field. Values can be strings, numbers, or booleans. |
Response example
{
"count": 3,
"values": [
"error",
"warning",
"info"
]
}