List fields
List fields
Every field discovered in a dataset, with its observed type.
The practical use is finding field-count creep before you hit the 4,096 cap — see fields.
GET
/v1/datasets/{name}/fieldsPath parameters
namestringrequiredDataset name or ds_….
curl -X GET https://api.logstreem.com/v1/datasets/{name}/fields \
-H "Authorization: Bearer $LOGSTREEM_TOKEN"Responses
200OK
{
"object": "list",
"data": [
{ "name": "_time", "type": "datetime", "indexed": true },
{ "name": "service", "type": "string", "indexed": true },
{ "name": "status", "type": "integer", "indexed": true },
{ "name": "latency", "type": "integer", "indexed": false }
],
"has_more": false,
"next_cursor": null
}401Unauthorized
{
"error": {
"type": "authentication_error",
"code": "missing_token",
"message": "No API token provided.",
"doc_url": "https://logstreem.com/docs/errors#missing_token",
"request_id": "req_9f3c2a7b41de08c5b2e6"
}
}Try itsandbox