-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Elastic Agent] Agent doesn't write logs to updated Elasticsearch host #23596
Comments
Pinging @elastic/agent (Team:Agent) |
Pinging @elastic/ingest-management (Team:Ingest Management) |
while this is a pain, I think it is ok to fix it in 7.13 cycle - @ph you agree? |
tested with master cloud kibana and local agent (darwin) and could not reproduce code wise it should get updated as well
|
The issue reported here sounds to be related to: #24538 It might be quite difficult to reproduce it. The next time this happens please check connection attempts with netstat/wireshark. The potential issue described in #24538 can lead to a deadlock in Filebeat, such that Filebeat eventually will stop sending any bulk requests. Restarting the agent should normally resolve the issue. If restarting does not work we might have a problem that the updated configuration is not properly propagated. @jh Did you manage to reproduce it? |
I will call out the larger scale deployment need here: will an admin of a 100k Agent system know this is going on with a particular Agent, do we have way to provide observability on it? And if/when identified, do we have documented remedy of restarting the Agent in our troubleshooting docs? The formal troubleshooting docs are currently this link: https://www.elastic.co/guide/en/fleet/master/fleet-troubleshooting.html |
I have tried to break it with various port changes to ES ports, everything worked as expected. |
Summary
I noticed that when the ES host is updated in the agent yaml output, the change does not appear to be picked up by the agent for where to send its agent logs. Other data streams (like system ones) do appear to pick up the change and sends the data to the new location correctly.
Steps
--elasticsearch.hosts=http://localhost:9201
flag to point to ESElasticsearch URL
in Fleet settings flyout to the correct URL,http://localhost:9201
If I uninstall that agent and enroll it again, the new agent does send its logs to the right ES, so it seems to only be a problem when the ES host is changed while the agent is already running.
The text was updated successfully, but these errors were encountered: