Hi,
currently I deploy the *beats with salt, and in the beats config file, I use to set the
name:
That name: field then in Elasticsearch/kibana shows up as the agent.name in the indices.
This allows me easily to find logs of a given salt minion id in Kibana, searching for agent.name:
also what I use to configure the *beats is the fields:
so in the *beats yml file I've something alike:
fields:
servicename: foo
as multiple hosts may be part of a system/service, that way I can easily search for all logs of a given service from all hosts that are part of it.
I'm aware that I could set the "environment" for the agent, but that wouldn't really match what I want.
I don't seem to find anything, if it is possible to specify agent specific values or override the agent's name.
I.e. the *beats have the -E command line parameter to override configurations that might be in the config file.
Currently there doesn't seem to exist something like this but would be nice to have something similar for the agent when it enrolls into fleet, i.e:
elastic-agent install .... -E name: foo -E fields.servicename: bar ....
and then it would add these custom values to it's agents config and forward them to ES.
Or if using the agent in standalone mode, is it possible to set the the agent.name and add such custom metadata like for the fields.servicename ?
Sebastian