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

Logging: Unify log rotation for index/search slow log #27298

Conversation

spinscale
Copy link
Contributor

The existing log rotation configuration allowed the index
and search slow log to grow unbounded. This commit removes the
date based rotation and adds the same size based rotation, that
the depreciation log already has.

Tested this locally with logstash using the generator and the elasticsearch inputs and worked fine.

The existing log rotation configuration allowed the index
and search slow log to grow unbounded. This commit removes the
date based rotation and adds the same size based rotation, that
the depreciation log already has.
@spinscale spinscale added :Core/Infra/Logging Log management and logging utilities review v7.0.0 labels Nov 7, 2017
Copy link
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

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

The slowlog.asciidoc documentation needs to be updated, as it still refers to the old time-based policy.

I think @jasontedor should give this a look as well.

Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

The change itself LGTM, but I agree with @ywelsch that the docs need to updated too.

@spinscale
Copy link
Contributor Author

good call. synced docs with the configuration file and saw that a few more lines needed fixing

Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

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

LGTM

@spinscale spinscale merged commit 66b5a43 into elastic:master Nov 15, 2017
martijnvg added a commit that referenced this pull request Nov 15, 2017
* es/master:
  Logging: Unify log rotation for index/search slow log (#27298)
  wildcard query on _index (#27334)
  REST spec: Validate that api name matches file name that contains it (#27366)
  Revert "Reduce synchronization on field data cache"
  Create new handlers for every new request in GoogleCloudStorageService (#27339)
  Rest test fixes (#27354)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Logging Log management and logging utilities >feature v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants