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 setting of an environment variable to configure master logs encoding #9296

Merged
merged 1 commit into from
Apr 6, 2018

Conversation

garagatyi
Copy link

@garagatyi garagatyi commented Mar 30, 2018

What does this PR do?

Add setting of master logs encoding to che.env.

What issues does this PR fix or reference?

Related to #9275, eclipse-che/che-lib#83

Release Notes

Docs PR

eclipse-che/che-docs#384

@garagatyi garagatyi requested a review from riuvshin March 30, 2018 08:05
@garagatyi garagatyi requested a review from benoitf as a code owner March 30, 2018 08:05
@benoitf benoitf added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/enhancement A feature request - must adhere to the feature request template. labels Mar 30, 2018
@garagatyi garagatyi requested a review from a user March 30, 2018 10:33
@garagatyi garagatyi changed the title [WIP] Add setting of master logs encoding to che.env [WIP] Add setting of master logs encoding env var Mar 30, 2018
@garagatyi garagatyi changed the title [WIP] Add setting of master logs encoding env var [WIP] Add setting of an environment variable to configure master logs encoding Mar 30, 2018
Add setting of env var CHE_LOGS_APPENDERS_IMPL that sets Che master
logs producing configuration to deployments for:
- docker (che.env)
- kubernetes (kubectl)
- kubernetes (helm)
- openshift (scripts)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>

Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
@garagatyi
Copy link
Author

@perspectivus1 @guydaichs FYI

# Choose variant of Che master logs encoding and storing. Default is `plaintext`.
# Another supported value is `json` which makes Che master produce JSON encoded logs
# in system output of PID 1 process of container. Useful for storing logs in systems such as Logstash.
# CHE_LOGS_APPENDERS_IMPL=plaintext
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't default value be added into che.properties?

Copy link
Author

Choose a reason for hiding this comment

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

No, it is not read from properties

# Choose variant of Che master logs encoding and storing. Default is `plaintext`.
# Another supported value is `json` which makes Che master produce JSON encoded logs
# in system output of PID 1 process of container. Useful for storing logs in systems such as Logstash.
# CHE_LOGS_APPENDERS_IMPL=plaintext
Copy link
Contributor

@riuvshin riuvshin Mar 30, 2018

Choose a reason for hiding this comment

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

if that is commented, the default value will be used, do we have default value declared in a code? because I do not see it in the che.props

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the default value is declared here

Copy link
Author

Choose a reason for hiding this comment

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

@l0rd is right this value is not read by the code and default value is in xml file of logback

Copy link
Contributor

@l0rd l0rd left a comment

Choose a reason for hiding this comment

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

I think this PR deserves a Doc PR too

@garagatyi
Copy link
Author

@l0rd here is a PR for the docs eclipse-che/che-docs#384

@garagatyi garagatyi changed the title [WIP] Add setting of an environment variable to configure master logs encoding Add setting of an environment variable to configure master logs encoding Apr 5, 2018
@garagatyi
Copy link
Author

@l0rd @riuvshin @sleshchenko @eivantsov I've merged the PR in che-lib so we can proceed with this one. Can you review the PR?

Copy link
Member

@sleshchenko sleshchenko left a comment

Choose a reason for hiding this comment

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

LGTM

@garagatyi garagatyi merged commit 131ae27 into eclipse-che:master Apr 6, 2018
@garagatyi garagatyi deleted the logstash branch April 6, 2018 06:17
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Apr 6, 2018
@benoitf benoitf added this to the 6.4.0 milestone Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants