How to Push Data from OneAgent to a Third-Party Storage

Hello,

I use Dynatrace Managed, and the Log Monitoring feature only retains logs for 35 days.
Is there any way to store logs from OneAgent in third-party storage or any method to retain logs for long-term storage?

Any feedback or advice would be helpful.
Anlee

Hi there,
You can use Dynatrace API to export logs to external storage. While designing such solution, please be mindful of the API rate limits, amount of data being exported and effectiveness of log search query. 
It is case to case and can be best determined by the environment owner.
I am aware the log retention cannot be changed for managed however best is to raise a support case and get it confirmed. Thank you.

Hi @AnLee

In addition to the provided guidance by @RohitBisht, PFA helpful resources:

Regarding Logs:

Log Ingestion:

Kindly ensure the token has the required scope for successful execution.

Hoping it helps.

KR,

Peter

Hi @Peter_Youssef,

Thank you very much for your response, but I would like to ask if I use Dynatrace Managed, can I use DQL with the APIv2 get search log?

AnLee

Hi @RohitBisht,

Thank you very much for your response, but I would like to ask if I use Dynatrace Managed, can I use DQL with the apiv2 get search log?

Thank you,
AnLee

Sure you can use this one as well. you may have to test and verify the output as the format will be different for both API’s. 
For use of DQL, i am not sure if we have Grail available yet for managed. Since Grail is only for SAAS right now.

Hi,

I would say no, Grail is only available in SaaS tenants.

Best regards