10 Dec 2024 09:15 AM - last edited on 11 Dec 2024 07:22 AM by MaciejNeumann
Hi,
I’m using the Dynatrace Log Monitoring API to fetch logs.
Still, I’m encountering an issue where the API returns only one record, even though I know multiple matching logs exist. Here’s the API request I’m using:
POST https://{environmentid}.apps.dynatrace.com/platform/storage/query/v1/query:execute
{
"query": "fetch logs | filter cid == \"13f3079f-1111-1111-1111-2f45fe2768da\" ",
"timezone": "Asia/Jerusalem",
"locale": "he_IL",
"maxResultRecords": 1000,
"maxResultBytes": 1000000,
"fetchTimeoutSeconds": 60,
"requestTimeoutMilliseconds": 1000,
"enablePreview": true,
"defaultSamplingRatio": 1000,
"defaultScanLimitGbytes": 100,
"queryOptions": null,
"filterSegments": null
}
The response consistently includes only one log record, but based on the filters (cid = "113f3079f-1111-1111-1111-2f45fe2768da"), I expect many more.
I confirmed via the Dynatrace UI that multiple logs meet these criteria within the expected timeframe.
Steps I’ve Tried
Questions:
02 Jan 2025 04:26 PM
Hi, @azacharov! Have you managed to find the answer to your question? It would be great if you share it with the Community 🙂