I am new to Elastic. I would like to access my APM server on AWS, remotely, to fetch some transaction data and I'm wondering what the cURL command should be. From the documentation it say's to use curl -XGET "http://XXX.containerhost:9244/apm-6.6.1-transaction-2019.03.04/_search" However, I'm thinking this is an internal URL that we use once inside the Elastic container.
Basically, what I'm trying to do is, I've got a Drupal site running and I'm sending a transaction to the APM server every time a page request is made. I am able to successfully do this and can see the transaction when I log onto the APM cloud server. I would now like to write some tests in PHP that confirm that the transaction has been made by fetching the details from the cloud.
So, is there an URL that we could use remotely to fetch the transactions from the APM cloud?
However, when I use that in my command line, I get a curl: (6) Could not resolve host: error. I tried sending a GET request from PHP, but it's giving me the same error. Am I missing something?
Ah! That's what I was doing wrong. So, we should be using the Elasticsearch endpoint URL provided in the cloud admin console. I was using the one provided by the Dev Tools all along.
That worked, thank you so much! Really appreciate your help.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.