I now want to track custom events on my 4-step registration form. What I want to do is discover and aggregate user events by a) the browser my users are using and b) the mobile device they are using
Are these event sources available to me via the RUM setup? Or do I have to somehow send them to elastic search and apm?
Welcome to the forum and thanks for using Elastic APM.
Currently to capture form events you should instrument your application with Custom Transactions in other words you should create a custom transaction when each step is submitted. Please see the linked documentation page for more detail.
For the browser and device information we capture raw User-Agent header, however this field needs to be parsed further to show human readable values. At the moment you should add user agent processor to parse this field. But we also have an issue open to enable this processor on the APM server by default.
Thanks for that reply @Hamidreza. I think I understood the first part and can go ahead with instrumenting it in my app.
The second part is however, quite unclear. I don't have my own server (it's a frontend react app sitting in an s3 bucket) - only an elasticsearch cloud account. So how and where do I add a pipline with processors? Could you please guide me.?
You should add the user agent processor to your elasticsearch instance on the cloud. However you can do that through Kibana console. Here is an example that you can run in the Kibana console (I've updated the example to reflect APM server version 7.0 fields):
Update:
If you don't need to customise the user agent processor you can set register.ingest.pipeline.enabled to true in APM server configuration so that it would create a default processor and use it for the ingestion.
Hey @ariel_k, better to open a new discuss topic in the future. On cloud, you have access to the apm-server configuration via edit under your deployment - this guide provides step by step instructions. Once you've navigated there, add these user settings overrides:
Currently I am logged in to the Elastic Cloud account where APM, ElasticSearch and Kibana server setup is present. Where is this apm-server.yml file exaclty present.
Before helping out, please note we have added APM RUM in our frontend applications which is build upon ReactJS.
On cloud, you can't directly edit the apm-server.yml file, instead there's an APM configuration section in the edit view of your deployment, you can override some of the APM server config options by expanding "User setting overrides" (please see the above screenshot).
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.