Skip to content

Conversation

@mhsreddy
Copy link
Collaborator

@mhsreddy mhsreddy commented Nov 24, 2025

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

@mhsreddy mhsreddy force-pushed the mhsreddy/add-environment-logging branch from f5bbbc1 to 8974ae3 Compare November 24, 2025 12:46
@mhsreddy mhsreddy changed the title Mhsreddy/add environment logging Add environment field in the logs to filter logs based on the environment in Dgrep and Kusto Nov 24, 2025
@mhsreddy mhsreddy marked this pull request as ready for review November 24, 2025 15:32
Copy link
Member

@mociarain mociarain left a 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

@mhsreddy mhsreddy force-pushed the mhsreddy/add-environment-logging branch 5 times, most recently from 13f4a64 to 194580f Compare December 15, 2025 13:07
@mhsreddy mhsreddy force-pushed the mhsreddy/add-environment-logging branch from 194580f to d32b772 Compare December 16, 2025 18:05
Copy link
Collaborator

@hlipsig hlipsig left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants