Skip to content
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

Logstash 5.0.0-alpha2 - Host & port settings for monitoring APIs not documented #5285

Closed
ceeeekay opened this issue May 12, 2016 · 7 comments

Comments

@ceeeekay
Copy link

While trying to start a second Logstash instance, with no network input, I encountered the following

<Errno::EADDRINUSE: Address already in use - bind - Address already in use>

This was caused by the monitoring API trying to bind to tcp:9600, which was already in use by another Logstash instance.

I was unable to find any reference to setting the API port or host in the 5.0.0-alpha2 docs. I've since found a reference to --http-host and --http-port elsewhere, however this was not easy to find.

Could the docs please be updated to include this info for other users?

It may also be a good idea to have Logstash bind the API service to the next available port. This would avoid having to configure the API for new instances, especially in the case where Logstash is only running temporarily, e.g., in the case of performing a test on a box already running Logstash.

@acchen97
Copy link
Contributor

@ceeeekay isn't the host and port settings documented here?

@ph thoughts on opening the default http bind port to a range?

@ceeeekay
Copy link
Author

@acchen97 my apologies, I was looking in the API section for this info.

However searching the docs for "API port" doesn't return this result, and I couldn't get a hit from Google either.

Is it worth including a link from the API docs to the command line flags?

@ph
Copy link
Contributor

ph commented May 12, 2016

Is it worth including a link from the API docs to the command line flags?

  • 1

thoughts on opening the default http bind port to a range?

This feel weird to me, software usually uses one port as their default and don't try multiple port, this would make stuff harder to debug.

I think its not a problem about binding to a specific port, I think we should do a better job at communicating what went wrong, maybe if we do something like this.

Logstash tried to bind to port XXXX, but the port is already in use. You can specify a new port by launching logtash with the --http-port XXXX option."

@acchen97 acchen97 mentioned this issue May 12, 2016
26 tasks
@acchen97
Copy link
Contributor

This feel weird to me, software usually uses one port as their default and don't try multiple port, this would make stuff harder to debug.

@ph doesn't ES do 9200-9300?

Logstash tried to bind to port XXXX, but the port is already in use. You can specify a new port by launching logtash with the --http-port XXXX option."

+1

Is it worth including a link from the API docs to the command line flags?

@ceeeekay added this to our doc task list.. thanks

@ph
Copy link
Contributor

ph commented May 12, 2016

@ph doesn't ES do 9200-9300?

ES Web is 9200, internal cluster communication is done on 9300, I think this is where both of your numbers are coming from?

@ph
Copy link
Contributor

ph commented May 12, 2016

I've created #5290 for added better user feedback

@acchen97
Copy link
Contributor

acchen97 commented Aug 4, 2016

Fixed with #5489 and #5316.

@acchen97 acchen97 closed this as completed Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants