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

Update log4j configuration to current master #70

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented Oct 28, 2021

This is a stopgap until elastic/rally#1371 is implemented.

If merged, I'll backport this pull request to the following rally-teams branches:

  • 6.0
  • 6.1
  • 6.2
  • 6.3
  • 6 (use 6.4 as earlier versions are covered)
  • 7
  • 7.11

I don't intend to open pull request for backports (should I?), so please review the procedure below.

For each branch:

  • checkout the relevant branch in the Elasticsearch repo
  • copy the files:
    • cp x-pack/plugin/core/src/main/config/log4j2.properties ../rally-teams/cars/v1/x_pack/security/templates/config/
    • cp distribution/src/config/log4j2.properties ../rally-teams/cars/v1/vanilla/templates/config/log4j2.properties
  • and make sure we have raw Jinja blocks in each file.

However, the main Elasticsearch repo does not have a branch named 7. Based on my understanding of https://esrally.readthedocs.io/en/stable/track.html#track-repositories-branch-logic, the 7 branch could be picked up if we test 7.0, so I'll use the config file from the 7.0 Elasticsearch branch.

Specific revision is 0d3cebe812080ea153d124b313fb2c184c7df75b.
Comment on lines -64 to -72
{% if verbose_imc_logging_enabled is defined and verbose_imc_logging_enabled %}
logger.verbose_imc.name = org.elasticsearch.indices.IndexingMemoryController
logger.verbose_imc.level = debug
# don't spam console
# logger.verbose_imc.appenderRef.console.ref = console
logger.verbose_imc.appenderRef.rolling.ref = rolling
logger.verbose_imc.appenderRef.rolling_old.ref = rolling_old
logger.verbose_imc.additivity = false
{%- endif %}
Copy link
Member Author

Choose a reason for hiding this comment

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

This block is why we have this file in the first place. However, verbose_imc_logging_enabled is no longer a thing.

appender.deprecation_rolling.layout.type = ECSJsonLayout
# Intentionally follows a different pattern to above
appender.deprecation_rolling.layout.dataset = deprecation.elasticsearch
appender.deprecation_rolling.filter.rate_limit.type = RateLimitingFilter
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the line that should save us from any future deprecation spam

Copy link
Member

@danielmitterdorfer danielmitterdorfer left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

@danielmitterdorfer
Copy link
Member

danielmitterdorfer commented Oct 28, 2021

I don't intend to open pull request for backports (should I?), so please review the procedure below.

In general there is no need for dedicated PR for backports and you can push straight to the branch. Also, the procedure looks fine to me.

@pquentin pquentin merged commit 6035aff into elastic:master Oct 28, 2021
@pquentin pquentin deleted the update-log4j-main branch October 28, 2021 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants