-
Notifications
You must be signed in to change notification settings - Fork 191
Add environment field in the logs to filter logs based on the environment in Dgrep and Kusto #4481
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
base: master
Are you sure you want to change the base?
Conversation
f5bbbc1 to
8974ae3
Compare
mociarain
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand it, the ultimate outcome of this will be a mix of prod and staging logs in where we only expect production. I'm not delighted with this but given this is the way HCP is going and the lift needed from MSFT to add Geneva accounts we've decided to mix them. My only request is that we have a way to make this EnvironmentType the first column returned from Kusto by default so people will see this.
If we can't do this I think we need to change our approach
13f4a64 to
194580f
Compare
… and fluentbit), and metrics to enable filtering and analysis by environment
194580f to
d32b772
Compare
hlipsig
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM @mociarain will need to confirm since he requested changes.
Which issue this PR addresses:
Fixes: https://issues.redhat.com/browse/ARO-14708
What this PR does / why we need it:
This PR is to add new environment field in the logs to filter the logs in Kusto or Dgrep. This change enables us to use the production Logging Account in Geneva and filter the logs easily between Production and Stage using the new ENVIRONMENT Field that are injecting.
Test plan for issue:
Tested this in INT, Staging and Canary Environments.
Is there any documentation that needs to be updated for this PR?
N/A
How do you know this will function as expected in production?
The Logs should contain the Environment field in DGREP and Kusto for ARORPLogs, AROClusterLogs