I've set up Elasticsearch and Kibana on a couple of test VM's.
These will be running on Raspberry Pi's once I have it all figured out.
Hence, it's pretty important that I limit logging.
I am trying really hard to find all the different places where the various components are set to info level logging and reduce that to warning level.
The problem comes with Fleet deployed agents.
I notice that all of the beats that the agent is running are at info level logging.
Eg when I look at the output of
systemctl status elastic-agent
(which is really huge and I'm going to post the whole thing at the end)
has every one of the beats that it runs showing:
-E logging.level=info
Now, I've tried really really hard to find where this is configured in the Fleet settings, the Agent settings etc.
I did manage to find the place in each individual agents log settings, hidden right at the bottom of the page and really easy to miss, where you can set its log level, and these are all set to warning.
But this doesn't seem to affect the beats which the Fleet deployed agent starts.
I also tried adding both
agent.logging.level: warning
logging.level: warning
to the elastic-agent.yml but this also doesn't affect this particular logging.
Could some kind soul please end my torment by pointing me to the appropriate place to configure this logging down to warning level?
Thanks
Heres the output of systemctl that I mentioned where you will see that despite my best efforts for two days, I've been unable to change these:
● elastic-agent.service - Elastic Agent is a unified agent to observe, monitor and protect your system.
Loaded: loaded (/etc/systemd/system/elastic-agent.service; enabled; preset: enabled)
Active: active (running) since Sun 2023-07-16 16:37:42 NZST; 22min ago
Main PID: 490 (elastic-agent)
Tasks: 65 (limit: 4608)
Memory: 665.7M
CPU: 15.972s
CGroup: /system.slice/elastic-agent.service
├─490 /opt/Elastic/Agent/elastic-agent
├─927 /opt/Elastic/Agent/data/elastic-agent-cdc5ba/components/metricbeat -E setup.ilm.enabled=false -E setup.template.enabled=false -E management.enabled=true -E management.restart_on_output_change=true -E logging.level=info -E logging.to_stderr=true -E "gc_percent=\${METRICBEAT_GOGC:100}" -E metricbeat.config.modules.enabled=false -E http.enabled=true -E http.host=unix:///opt/Elastic/Agent/data/tmp/system-metrics-default.sock -E path.data=/opt/Elastic/Agent/data/elastic-agent-cdc5ba/run/system/metrics-default
├─928 /opt/Elastic/Agent/data/elastic-agent-cdc5ba/components/fleet-server --agent-mode -E logging.level=warning -E logging.to_stderr=true -E http.enabled=true -E http.host=unix:///opt/Elastic/Agent/data/tmp/fleet-server-default.sock -E path.data=/opt/Elastic/Agent/data/elastic-agent-cdc5ba/run/fleet-server-default
├─938 /opt/Elastic/Agent/data/elastic-agent-cdc5ba/components/metricbeat -E setup.ilm.enabled=false -E setup.template.enabled=false -E management.enabled=true -E management.restart_on_output_change=true -E logging.level=info -E logging.to_stderr=true -E "gc_percent=\${METRICBEAT_GOGC:100}" -E metricbeat.config.modules.enabled=false -E http.enabled=true -E http.host=unix:///opt/Elastic/Agent/data/tmp/kibana-metrics-default.sock -E path.data=/opt/Elastic/Agent/data/elastic-agent-cdc5ba/run/kibana/metrics-default
├─947 /opt/Elastic/Agent/data/elastic-agent-cdc5ba/components/filebeat -E setup.ilm.enabled=false -E setup.template.enabled=false -E management.enabled=true -E management.restart_on_output_change=true -E logging.level=info -E logging.to_stderr=true -E "gc_percent=\${FILEBEAT_GOGC:100}" -E filebeat.config.modules.enabled=false -E http.enabled=true -E http.host=unix:///opt/Elastic/Agent/data/tmp/log-default.sock -E path.data=/opt/Elastic/Agent/data/elastic-agent-cdc5ba/run/log-default
├─950 /opt/Elastic/Agent/data/elastic-agent-cdc5ba/components/filebeat -E setup.ilm.enabled=false -E setup.template.enabled=false -E management.enabled=true -E management.restart_on_output_change=true -E logging.level=info -E logging.to_stderr=true -E "gc_percent=\${FILEBEAT_GOGC:100}" -E filebeat.config.modules.enabled=false -E http.enabled=true -E http.host=unix:///opt/Elastic/Agent/data/tmp/filestream-monitoring.sock -E path.data=/opt/Elastic/Agent/data/elastic-agent-cdc5ba/run/filestream-monitoring
├─960 /opt/Elastic/Agent/data/elastic-agent-cdc5ba/components/metricbeat -E setup.ilm.enabled=false -E setup.template.enabled=false -E management.enabled=true -E management.restart_on_output_change=true -E logging.level=info -E logging.to_stderr=true -E "gc_percent=\${METRICBEAT_GOGC:100}" -E metricbeat.config.modules.enabled=false -E http.enabled=true -E http.host=unix:///opt/Elastic/Agent/data/tmp/beat-metrics-monitoring.sock -E path.data=/opt/Elastic/Agent/data/elastic-agent-cdc5ba/run/beat/metrics-monitoring
└─966 /opt/Elastic/Agent/data/elastic-agent-cdc5ba/components/metricbeat -E setup.ilm.enabled=false -E setup.template.enabled=false -E management.enabled=true -E management.restart_on_output_change=true -E logging.level=info -E logging.to_stderr=true -E "gc_percent=\${METRICBEAT_GOGC:100}" -E metricbeat.config.modules.enabled=false -E http.enabled=true -E http.host=unix:///opt/Elastic/Agent/data/tmp/http-metrics-monitoring.sock -E path.data=/opt/Elastic/Agent/data/elastic-agent-cdc5ba/run/http/metrics-monitoring
Jul 16 16:37:42 kb-01 systemd[1]: Started elastic-agent.service - Elastic Agent is a unified agent to observe, monitor and protect your system..