Open whyyouwannaknow opened 12 months ago
I am experiencing the same issue. Adding agent.logging
settings to the elastic-agent.yml
file as described in Configure logging for standalone Elastic Agents has absolutely no impact on the logging behavior of the standalone elastic agent.
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)
Thanks for reporting this, confirmed that changing the value of agent.logging.level
in the /Library/Elastic/Agent/elastic-agent.yml
for an installed agent on my Mac has no effect.
Clearly there is a missing test case for this, we have a test in place for changing it via Fleet but not for a standalone agent like this and the handling must have diverged.
Hello,
I have installed Elastic Agent version 8.10.4 using "apt" packet manager and I would like to set those settings to configure logging information.
I especially would like to have the settings
rotateonstartup: false
and thepermissions: 0605
to work.At the moment, the given above settings are not working at all. Everytime I restart the agent using
systemd
it generates a new log file, the permissions are not applied and all the other parameters are not taken into account.I do not really understand why, but it looks like it doesn't really work to set those settings into the
/etc/elastic-agent/elastic-agent.yml
file. Below is the full content of this file if needed :I will also add that those settings were configured after the enrollment of the Elastic Agent as a Fleet Server. Maybe those need to be applied before enrolling the Elastic Agent to a policy for it to work?
Thank you for the help!
EDIT : It looks like that restarting the whole Linux system (the VM), did solve the problem. Something's off with this!
Regards,