Is it possible to set or create a custom agent.id during or after the elastic-agent install, whether it be via a command line argument or an API call we can make?
For example, instead of agent.id being a uuid like e9cdb5af-1585-4646-abad-4895668bb5cb could we instead make it into a custom base64 encoded value?
@mukeshelastic it doesn't necessarily have to be agent.id.
It could be ANY custom field that would be in all Endpoint documents, for something like org.id or org, or anything like that which could be configured dynamically at install/runtime or via an API.
There's a bunch of additional fields I'd need to track which isn't a good fit for namespaces or policy names.
@gabriel.landau interesting, so you are thinking use host.name which then leaves host.hostname as a duplicative value that we could populate with custom info?
That would work, in theory, but how would we go about populating that dynamically at install? Or were you thinking API call after the fact?
@bm11100 Is this specific metadata that you want to add to some agents in a single agent policy? For example, you have a single agent policy that includes endpoint agents deployed on laptops of org1, org2 and then you want to add org as a metadata key and assign values org1 to laptops of org1 and similar for org2. Either at install time or after it has been installed through some api call.
Today, the only way you could do that is by create different agent policies per org and including them in policy name or provide org names in namespaces when you create agent policies.
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.