-
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
[All OS's]: Agent goes unhealthy when some other output is set to Default output. #257
Comments
@manishgupta-qasource Please review. |
Secondary review for this ticket is Done |
@lykkin might be related to you changes? |
Hi Team
Integrations: Platforms Validated:
Build details: Logs: Please let us know if anything else is required from our end. |
@lykkin any progress here? |
In the logs we see {"log.level":"error","@timestamp":"2022-03-28T08:00:31.761Z","log.origin":{"file.name":"log/reporter.go","file.line":36},"message":"2022-03-28T04:00:31-04:00 - message: Application: endpoint-security--8.2.0-SNAPSHOT[3674c80e-9c57-47c2-9f2e-1e967c53b755]: State changed to FAILED: failed to start connection credentials listener: listen tcp 127.0.0.1:6788: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted. - type: 'ERROR' - sub_type: 'FAILED'","ecs.version":"1.6.0"} repeated many times. Out of curiosity, if you remove endpoint from the agent does the issue still occur? Also pinging @elastic/endpoint in case this is a known issue. |
Hi @lykkin Build details: Logs: Thanks |
Can you share elastic-endpoint.yaml? |
Hi @ferullo Please let us know if anything else is required from our end. |
The endpoint log looks fine. Endpoint connects successfully to Agent. The former log is an Agent log:
It looks like the Agent is trying to start duplicate TCP server on On a side note, I'm curious what is the purpose of the custom output, how should it work? Is it supposed to alter behavior of Endpoint in any way? The only documentation I was able to find it's rather shallow. Digging deeper from that page, I found the following snippet here
|
@intxgo the other output may have been logstash in this case but we need to keep the Elasticsearch one as it is the one used for Elastic Agent API key and so on.. |
Is it expected to have Endpoint output data (events and alerts) to both Elasticsearch and Logstash at the same time if configured? |
Nope, only one should be used then. |
@ph shouldn't we change something on Fleet-ui/Elastic Agent end to avoid having two default outputs? |
ping @ph |
|
@jlind23 This is interesting, I would have expected that is not a possible behavior, because the @amolnater-qasource Do you have the generated agent policy yml from fleet, please remove any credentials. |
Hi @ph We have revalidated this issue on latest 8.3 Snapshot and found it fixed now.
Build details: Hence we are closing this issue and marking this as QA:Validated. cc: @jlind23 |
Kibana version: 8.2 Snapshot Kibana cloud environment
Host OS: Windows
Build details:
VERSION: 8.2.0 Snapshot
BUILD: 51431
COMMIT: a743498436a863e142592cb535b43f44c448851a
Artifact link: https://artifacts-api.elastic.co/v1/search/8.2-SNAPSHOT
Preconditions:
Integrations:
System and Endpoint Security.
Steps to reproduce:
Unhealthy
.Expected Result:
Agent should not go unhealthy on changing Default output to some other user created output.
Logs:
logs.zip
Screen Recording:
Windows.Agent.Policy.-.Agent.policies.-.Fleet.-.Elastic.-.Google.Chrome.2022-03-28.12-48-34.mp4
Windows Output:
Note:
The text was updated successfully, but these errors were encountered: