Generate apm secret token

Hi,
I am trying to set up an apm server and was wondering if anyone knows how to generate a secret token for authentication as I need it.
thanks and best regards

Hi irivas95, are you using Elastic Fleet?

Hi,
no, I am using an apm server installation on a host.
thanks

Hi @irivas95 ,

the token only needs to be configured in the APM server and agents, but it is not generated by the APM Server. Therefore you can generate the secret token in whichever way makes sense and is suitable for you.
Alternatively you can also look into using API Keys instead of the secret token. Kibana offers some UI around generating API Keys for APM.

perfect, thanks for your help!