19 Dec 2024 02:45 AM - last edited on 19 Dec 2024 07:38 AM by MaciejNeumann
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
19 Dec 2024 03:06 AM
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.
https://docs.dynatrace.com/docs/shortlink/api-log-monitoring-v2-get-export
03 Jan 2025 04:00 AM
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
03 Jan 2025 06:16 AM
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.
19 Dec 2024 05:47 AM
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
03 Jan 2025 03:56 AM
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
03 Jan 2025 07:49 AM
Hi,
I would say no, Grail is only available in SaaS tenants.
Best regards