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

Add the defaults for slowlogs in logging.yml #398

Closed
gmoskovicz opened this issue Nov 24, 2015 · 7 comments
Closed

Add the defaults for slowlogs in logging.yml #398

gmoskovicz opened this issue Nov 24, 2015 · 7 comments

Comments

@gmoskovicz
Copy link

The default configuration in the main packages contains the default configuration for the slowlogs:

logger:
  # log action execution errors for easier debugging
  action: DEBUG
  # reduce the logging for aws, too much is logged under the default INFO
  com.amazonaws: WARN
  org.apache.http: INFO

  # gateway
  #gateway: DEBUG
  #index.gateway: DEBUG

  # peer shard recovery
  #indices.recovery: DEBUG

  # discovery
  #discovery: TRACE

  index.search.slowlog: TRACE, index_search_slow_log_file
  index.indexing.slowlog: TRACE, index_indexing_slow_log_file

While the slowlogs are configured, they are not enabled by default. The chef recipe should also configure this by default, and then the user should be able to (per index) configure the level and the threadhold.

https://github.com/elastic/cookbook-elasticsearch/blob/master/templates/default/logging.yml.erb

@gmoskovicz
Copy link
Author

Once you enable slowlogs without this, the logs will be shipped to the main log file instead to a particular log file, we should add the appender and the following configuration:


  index.search.slowlog: TRACE, index_search_slow_log_file
  index.indexing.slowlog: TRACE, index_indexing_slow_log_file

@gmoskovicz
Copy link
Author

@karmi This is the issue that i mentioned before.

Thanks for taking a look!

@martinb3 martinb3 added this to the 2.0.1 (bugfixing release) milestone Nov 24, 2015
@gmoskovicz
Copy link
Author

@martinb3 IMO we can keep the option to add defaults settings, but the same settings that we ship in the logging.yml should be included here.

Thanks! 😄

@martinb3
Copy link
Contributor

@gmoskovicz at one point @karmi and I even talked about removing it from things we control, so people using Chef can just drop in their own file anyway. Do you think that's more useful than trying to expose every possible option in chef?

@gmoskovicz
Copy link
Author

Thats an option too. However if we ship the logging.yml then we should include the exact same configurations that we ship with all our packages to make sure the documentation (in this case how to enable slowlogs) is valid for mostly every package/product.

@martinb3
Copy link
Contributor

However if we ship the logging.yml then we should include the exact same configurations that we ship with all our packages to make sure the documentation (in this case how to enable slowlogs) is valid for mostly every package/product.

👍 I totally agree. I did the same for init scripts, but I didn't think to check the logging.yml :/

@gmoskovicz
Copy link
Author

@martinb3 thanks for your prompt response! Looking forward for this change!

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

No branches or pull requests

2 participants