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

improve doc on settings file by describing options #5713

Closed
wants to merge 2 commits into from

Conversation

dedemorton
Copy link
Contributor

This PR addresses the request in issue #5148 to improve the settings file.

I Frankensteined the descriptions of the CLI options and the comments from the logstash.yml file to come up with descriptions for the doc. I also edited the CLI doc (lightly) to make it more consistent with the descriptions I added for the settings file. I don't like (essentially) duplicating content, but reuse isn't really feasible due to the differences in how the values are specified in the YAML vs from the command line as flags.

@dedemorton
Copy link
Contributor Author

dedemorton commented Jul 30, 2016

PS I need to do more work on the CLI topic (in a separate PR) because I think the order of options is based on the old -h output (which I'm not sure makes sense, but I will investigate).

See <<command-line-flags>> for a description of the available options.
The `logstash.yml` file includes the following settings:

*`node.name`*::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we convert this into a table with 3 columns: setting type, setting definition and default value

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will make it really easy to read

Copy link
Contributor Author

@dedemorton dedemorton Aug 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@suyograo I think you're saying that you would like to see these options presented in a 3 column table instead of a definition list, right? In that case, I would suggest that we have the column headings Setting, Description, and Default value. For this particular content, I'm OK with formatting the info as a table (though I think the descriptions are a tad long). My only caveat is that we shouldn't use a table format if we expect that we'll ever need to add multi-line code examples to a description. Multi-line code examples in tables of 3 or more columns don't display very well because of how line wrapping works. Definition lists are much more flexible, which is why we tend to use them for reference content. So...I'm open to reformatting. Let me know if you still want me to do this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think a table will be easy to read. Can we try that? +1 on Setting, Description, and Default value as column heading.s

@suyograo
Copy link
Contributor

suyograo commented Aug 8, 2016

LGTM

@elasticsearch-bot
Copy link

DeDe Morton merged this into the following branches!

Branch Commits
master c19314f, d9fa4f2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants