DataDog / datadogpy

The Datadog Python library
https://datadoghq.com/
Other
609 stars 302 forks source link

The CLI log search doesnt return values, no matter the query I submit #726

Open tappoz opened 2 years ago

tappoz commented 2 years ago

Describe the bug

Even the simplest faceted queries via the command dog (dogshell) don't return any result, e.g. this one returns no output:

dog search query status:error

However, looking at the Datadog Web Dashboard, I can see some error logs.

So the data is there, but somehow it's not being retrieved by the dog command.

Expected behavior

I should see the same output I see on the Datadog Web Dashboard.

Environment and Versions (please complete the following information):

$ dog --version
dog 0.44.0
$ cat ~/.dogrc
[Connection]
apikey = XXX
appkey = XXX
api_host = https://api.datadoghq.eu/

Additional context

I know it's not an issue with the credentials, because when the file ~/.dogrc was misconfigured I was seeing this command output: ERROR: Invalid API key

Or exceptions around an invalid URL e.g. requests.exceptions.MissingSchema: Invalid URL 'eu/api/v1/search': No scheme supplied. Perhaps you meant http://eu/api/v1/search?

therve commented 2 years ago

Hi,

dogshell search looks for your infrastructure list and returns hosts and metrics, it doesn't search for logs. There is no dogshell command for logs. Thanks.

tappoz commented 2 years ago

Oooh maaan 🙂 OK thanks 👍 it would be good to have something like this though.

github-actions[bot] commented 2 years ago

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.