-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloudbeat args v2 alignment #1763
Conversation
This pull request does not have a backport label. Could you fix it @oren-zohar? 🙏
NOTE: |
🌐 Coverage report
|
This pull request is now in conflicts. Could you fix it? 🙏
|
Verified and it seems like root@kind-multi-control-plane:/usr/share/elastic-agent# ps aux | grep logging.level
root 2482 0.5 1.3 1491544 112412 ? Sl 21:47 0:01 /usr/share/elastic-agent/data/elastic-agent-496e7e/components/cloudbeat -E setup.ilm.enabled=false -E setup.template.enabled=false -E logging.to_stderr=true -E management.enabled=true -E logging.level=info -E gc_percent=${CLOUDBEAT_GOGC:100} -E http.enabled=true -E http.host=unix:///usr/share/elastic-agent/state/data/tmp/cloudbeat-cis_k8s-default.sock -E path.data=/usr/share/elastic-agent/state/data/run/cloudbeat/cis_k8s-default
root 2492 0.4 1.2 1508488 96556 ? Sl 21:47 0:01 /usr/share/elastic-agent/data/elastic-agent-496e7e/components/filebeat -E setup.ilm.enabled=false -E setup.template.enabled=false -E management.enabled=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:///usr/share/elastic-agent/state/data/tmp/log-default.sock -E path.data=/usr/share/elastic-agent/state/data/run/log-default
root 2504 0.8 1.5 1621756 122364 ? Sl 21:47 0:03 /usr/share/elastic-agent/data/elastic-agent-496e7e/components/metricbeat -E setup.ilm.enabled=false -E setup.template.enabled=false -E management.enabled=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:///usr/share/elastic-agent/state/data/tmp/system-metrics-default.sock -E path.data=/usr/share/elastic-agent/state/data/run/system/metrics-default
root 2515 0.5 1.2 1582220 99840 ? Sl 21:47 0:01 /usr/share/elastic-agent/data/elastic-agent-496e7e/components/filebeat -E setup.ilm.enabled=false -E setup.template.enabled=false -E management.enabled=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:///usr/share/elastic-agent/state/data/tmp/filestream-monitoring.sock -E path.data=/usr/share/elastic-agent/state/data/run/filestream-monitoring
root 2525 0.3 1.4 1547512 113956 ? Sl 21:47 0:01 /usr/share/elastic-agent/data/elastic-agent-496e7e/components/metricbeat -E setup.ilm.enabled=false -E setup.template.enabled=false -E management.enabled=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:///usr/share/elastic-agent/state/data/tmp/beat-metrics-monitoring.sock -E path.data=/usr/share/elastic-agent/state/data/run/beat/metrics-monitoring
root 2536 0.2 1.4 1547512 113032 ? Sl 21:47 0:01 /usr/share/elastic-agent/data/elastic-agent-496e7e/components/metricbeat -E setup.ilm.enabled=false -E setup.template.enabled=false -E management.enabled=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:///usr/share/elastic-agent/state/data/tmp/http-metrics-monitoring.sock -E path.data=/usr/share/elastic-agent/state/data/run/http/metrics-monitoring
root 2628 0.0 0.0 2844 616 pts/0 S+ 21:54 0:00 grep --color=auto logging.level Yet I still encounter a different issue, it seems like the log level is not propagating from the fleet UI (for all beats, not only cloudbeat) is this a known issue @cmacknz? this seems like a pretty big issue but maybe I'm missing something here. In any case, this PR is still needed in order to add the log-level argument to cloudbeat process arguments, I think we can merge @cmacknz @AndersonQ |
Merging, logs issue is tracked in #1896 |
(cherry picked from commit 6f2d687)
(cherry picked from commit 6f2d687) Co-authored-by: Oren Zohar <[email protected]>
What does this PR do?
Align cloudbeat spec argument to other beats, as v2 now don't send those arguments if they are missing.
Why is it important?
In v2 (8.6.0) we will not pass the log level as an argument since it's missing from the spec.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs