Elastic agent doesn't seem to respect the parameters specified in the config file. As per below config, gRPC should bind to 6790. Rather it binds on 6789 (default).
agent.grpc:
address: localhost
port: 6790
Here's the open ports for ES agent after running it.
[elastic-agent.exe]
TCP 127.0.0.1:6789 127.0.0.1:53942 ESTABLISHED 27460
[elastic-agent.exe]
TCP 127.0.0.1:6789 127.0.0.1:53945 ESTABLISHED 27460
[elastic-agent.exe]
TCP 127.0.0.1:6789 127.0.0.1:53954 ESTABLISHED 27460
[elastic-agent.exe]
TCP 127.0.0.1:6789 127.0.0.1:63411 ESTABLISHED 27460
Getting below error while trying to run a second elastic agent process.
Error: could not start the HTTP server for the API: failed to listen on the named pipe \\.\pipe\elastic-agent: open \\.\pipe\elastic-agent: Access is denied.
P.S.: I'm not performing install, trying to run two processes using enroll and then run.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.