Query Logs from Remote Clients Using DQL for Better Visibility

Hi,

I am trying to query the Dynatrace logs my company creates, from a command line utility written in either Python or C#.
It seems that the access method - platform vs API token - changed over time, the old examples are no longer working, since I can’t add log access to the platform tokens.

Does anyone have a recent code example that works?

Thank you in advance,

Simon

Hi Simon,

Since the migration to Grail (Log Management & Analytics), log access is done exclusively via API tokens—platform tokens can no longer be used for log queries.

Recommended now: use the Grail Query API endpoint.

Official Doc here : Grail service | Dynatrace Developer

Best regards,