17 Apr 2026 11:11 AM - edited 17 Apr 2026 11:13 AM
Hello,
Who can help me here? I want to send Beats/Logstash metrics to /api/v2/metrics/ingest
I can find a lot about logs and openpipeline but who knows how this is accomplished.
Maybe I am missing something or am I the first (-;
KR Henk
Solved! Go to Solution.
17 Apr 2026 11:20 AM
Hi,
The simplest approach is to use the Dynatrace Logstash output plugin.
It should work
17 Apr 2026 11:21 AM
https://www.elastic.co/docs/reference/logstash/plugins/plugins-outputs-dynatrace
It was built exactly for this use case — it sends Logstash events directly to the Dynatrace Log Ingest API v2 (/api/v2/logs/ingest), so you don’t need to manually build HTTP requests or mappings.
17 Apr 2026 11:23 AM
Just install plugin on logstash instance:
bin/logstash-plugin install logstash-output-dynatraceAnd add this in output in config:
output {
dynatrace {
url => "https://{environmentid}.live.dynatrace.com/api/v2/logs/ingest"
api_token => "YOUR_TOKEN"
}
}
17 Apr 2026 11:28 AM
Hi Pawlak,
Are you sure for metrics also?
KR Henk
17 Apr 2026 11:59 AM
Sorry,
I saw Logstash and immediately focused on logs, not metrics.
In this case, IMO you should use an OpenTelemetry Collector and send them via OTLP, which is probably the cleaner long-term approach.
I think a native Metricbeat --> OTLP/HTTP path here without an additional bridge is not possible
17 Apr 2026 03:18 PM
Hi @t_pawlak if that was not an option could you format the elastic JSON in to an http message and send to the Dynatrace API end point? Or is that a no go
Thanks
Caroline
17 Apr 2026 03:47 PM
Hi,
Technically, it’s possible, but is it worth it?
Dynatrace metrics ingest doesn’t accept raw JSON, so you first need to transform it into the Dynatrace metric ingestion format. It can be done with Logstash + HTTP output, but it requires custom mapping.
That’s also why I mentioned OpenTelemetry, it handles the transformation and protocol side for you, which makes it easier to maintain in the long run.
Featured Posts