As stated in the oneagentctl guide there is a possibility to have multiple host properties with the same key:
"It is allowed to define properties with the same key but different values"
But when I do it, I see only ONE environment custom host metadata property (the last one). See the following screens:
Is it a bug?
If not, then why does such possibility exist in the OneAgent cli?
Solved! Go to Solution.
I don't use and don't have any
hostcustomproperties.conf files at all, because I set custom properties via command line. As you may know it is the recommended way for doing this since OneAgent version 1.189.
If I set different property keys everything works properly - I see all the properties in the UI. But it is not the case I described at first and tring to debug.
This is a bug in oneagentctl input validation and help pages alike. Setting multiple properties with the same key is not allowed and would result in just a single one being displayed, as you have observed.
We'll be fixing this in one of upcoming releases.Thanks for making us aware of it.