datadog-api-client-python icon indicating copy to clipboard operation
datadog-api-client-python copied to clipboard

Aggregate events with groupby returning no data

Open mschoenb97IL opened this issue 1 year ago • 2 comments

Describe the bug

The Python code example from https://docs.datadoghq.com/api/latest/logs/#aggregate-events is not returning any data. I know that this is not due to my project not containing any data for this query. If you remove the "groupby" field in the LogsQueryFilter, it does return data.

I tried with many different groupby facets, and had no success.

To Reproduce Steps to reproduce the behavior:

Run the Python example from https://docs.datadoghq.com/api/latest/logs/#aggregate-events. This used to return data but no longer does.

Expected behavior

Something like the following will be printed:

{'data': {'buckets': []},
 'meta': {'elapsed': XXX,
          'request_id': '...",
          'status': 'done'}}

Environment and Versions (please complete the following information):

Running on version 2.28.0

mschoenb97IL avatar Sep 09 '24 17:09 mschoenb97IL

Ah, I got data by removing the total="recall" from the groupby example. The docs should probably be updated

mschoenb97IL avatar Sep 09 '24 18:09 mschoenb97IL

Just confirming that I also hit this issue with version 2.28.0 and that removing total=recall resolved it.

christi3k avatar Sep 17 '24 20:09 christi3k

Thanks for your contribution!

This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.

If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of this project.

  2. Comment that the issue is still reproducible and include updated details requested in the issue template.

github-actions[bot] avatar Dec 11 '24 00:12 github-actions[bot]