-
Notifications
You must be signed in to change notification settings - Fork 143
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
No System logs are generated for Linux agent, when agent is installed with --unprivileged
flag.
#4112
Comments
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
@manishgupta-qasource Please review. |
Secondary review for this ticket is Done |
@blakerouse could you please have a look here? |
This is not a bug, this is expected. We are likely also missing several metrics, that error looks like we can't read /proc/1 which would be the process information for the PID 1 or the init system. The system integration is probably going to have the most problems operating as non-root. Copying a previous comment on this: In the case of the system integration, on Linux we include reading the contents of /var/log/auth.log and /var/log/syslog by default but non-root users cannot read these on recent Ubuntu versions. The auth and system log datastreams are going to be empty.
In this case the work around would be to add the We need to decide if this needs to be an action taken by the agent or if it has to be a manual step from the user. |
This is what we mentioned in the past: testing will allow us to highlight what is not working as expected and we will have to decide what solution we will pick for those failing:
|
We need to go through the system integration datastream by datastream on each OS and compare what it produces with |
@cmacknz is correct, this is expected. I do wonder if metrics are collected for the PID's that it can read, I would hope that metricbeat just continues on and reads the metrics for the PID's it can. |
I don't think agent should do anything to change group ownership. This is an admin decision. I see it our job to educate them to do this - if this datastream is needed by them. In order to do that what we need is:
if you agree can we use this issue for the first point? |
@amolnater-qasource thanks for this. Is this the only issue you see with System Integration? could we get the full list of issues for tracking purposes. thanks |
The test plan is in progress and we haven't encountered issues for any other integrations as of now.
Further, Elastic Defend is not supported as of now so the related feature testcases are also BLOCKED. We are executing test plan at link Fleet Feature Regression Test plan Please let us know if we are missing anything here. |
@nimarezainia shall we just highlight that it is not going to fully work or shall we details what is the exact data that will not be collected? |
Closing this as covered by elastic/beats#39733 |
Kibana Build details:
Host OS: Linux- SLES15, Ubuntu 22
Preconditions:
sudo ./elastic-agent install --url=<url> --enrollment-token=<token> --unprivileged
Steps to reproduce:
--unprivileged
flag.What's working fine:
--unprivileged
flag.Screen Recording:
Data.streams.-.Fleet.-.Elastic.-.Google.Chrome.2024-01-22.13-59-51.mp4
Logs:
elastic-agent-diagnostics-2024-01-22T08-42-48Z-00.zip
elastic-agent-diagnostics-2024-01-22T08-42-55Z-00.zip
Expected Result:
System logs should be generated for Linux agent, when agent is installed with
--unprivileged
flag.Feature:
https://github.com/elastic/ingest-dev/issues/1766
The text was updated successfully, but these errors were encountered: