09 Apr 2024 12:59 PM - last edited on 11 Apr 2024 07:12 AM by MaciejNeumann
Hello all,
currently we are trying to export data from Elasticsearch to Dynatrace. We want to export specific fields to Dynatrace every hour.
What would be the best approach to do so?
Greetings and thank you in advance,
Benedikt
Solved! Go to Solution.
09 Apr 2024 02:06 PM - edited 09 Apr 2024 02:06 PM
Hello,
It should be possible to utilize Logstash for ingesting log data from Elasticsearch into Dynatrace. You can use the Logstash input plugin to retrieve data from Elasticsearch.
https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html
Sia
09 Apr 2024 03:43 PM
Thank you!
Would it also be possible to ingest the fields from Elasticsearch as metrics, instead of a log in whole? Cause we don't want everything from the log, just some attributes.
09 Apr 2024 08:37 PM
You will need an extension to do it. I don't know of any for ElasticSearch, but it is not difficult to do it...
23 Apr 2024 11:26 PM
Hi @Benedikt
I think in the case where you want to ingest only metric, you can use API ingest data point.
https://docs.dynatrace.com/docs/shortlink/api-metrics-v2-post-datapoints
You can use a "generic output plugin in Logstash to do that.
I hope it's helpful 💪