23 Jun 2023 01:46 PM - last edited on 18 Oct 2024 10:20 AM by MaciejNeumann
Hi,
I have a clojure (JVM) application running on Heroku. We log to STDOUT using logback library. We are running the DynaTrace buildpack. The distributed traces are showing properly. However the logs don't show up. Is there an example of how to integrate logback and DynaTrace, while running on Heroku/logging to STDOUT?
I am told our DynaTrace setup is using Logs v2, not the Classic v1.
26 Jun 2023 08:41 AM
Hi,
I have not come across such an integration. You could try creating an extension to DT or a simple script that parses your log and sends the necessary information to DT via the API. You are interested in the API related to metrics (https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/post-ingest-metrics)
Radek
26 Jun 2023 09:57 AM
We did find a workaround using Heroku drains, fluentd and DT logs ingest http apis. This was a lot of work, and still requires us to maintain a fluentd installation. I am interested in the built-in integration mentioned here - https://www.dynatrace.com/support/help/observe-and-explore/logs/log-management-and-analytics/lma-log...
What is the logback integration mentioned above? How does that work?
26 Jun 2023 10:55 AM
First question..what type of Dynatrace are you using? Managed or SaaS?