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 apphealth vmwatch log #269

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

zmyzheng
Copy link
Member

@zmyzheng zmyzheng commented Sep 4, 2024

this is a PR to support collecting Apphealth and VMWatch logs with azure inspect disk service based on CSS team's requirement

@zmyzheng zmyzheng changed the title Zmyzheng/add apphealth vmwatch log Add apphealth vmwatch log Sep 4, 2024
@@ -988,6 +988,7 @@ diagnostic | copy | /Packages/Plugins/Microsoft.Powershell.DSC/\*/DSCVersion.xml
diagnostic | copy | /Packages/Plugins/Microsoft.Powershell.DSC/\*/DSCWork/HotfixInstallInProgress.dsc
diagnostic | copy | /Packages/Plugins/Microsoft.Powershell.DSC/\*/DSCWork/PreInstallDone.dsc
diagnostic | copy | /Packages/Plugins/Microsoft.SqlServer.Management.SqlIaaSAgent/\*/PackageDefinition.xm<br>l
diagnostic | copy | /WindowsAzure/Logs/Plugins/Microsoft.ManagedServices.ApplicationHealthWindows/\*/\*
Copy link

Choose a reason for hiding this comment

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

i'm not sure we want to grab ALL files, how about just *.log ? i'm worried it might try and grab the event json files as they are in the same place

Copy link
Member Author

Choose a reason for hiding this comment

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

Event json files are not in this folder. Instead, it is in a sub folder of this folder. My understanding is, the subfolder of /WindowsAzure/Logs/Plugins/Microsoft.ManagedServices.ApplicationHealthWindows/\*/\* will not be collected.

/WindowsAzure/Logs/Plugins/Microsoft.ManagedServices.ApplicationHealthWindows/\*/\* contains multiple different files:

  • log files from apphealth
  • current log file of vmwatch
  • old vmwatch log files that are zipped.
    We should collect all these files

Copy link
Contributor

@chintanrp chintanrp Sep 5, 2024

Choose a reason for hiding this comment

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

@zmyzheng - Adding something // will collect everything under the Main directory. /WindowsAzure/Logs/Plugins/Microsoft.ManagedServices.ApplicationHealthWindows
If we are not sure what it will have and how big the content it will be then it's batter not to add * instead of add something specific we need.
Also other concern is if this is too big in size then adding as part of "diagnostic" manifest will impact on performance of the operation.

Copy link

Choose a reason for hiding this comment

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

the files we want will be in a sub directory that changes with each version (eg 2.0.14) hence the *

basically there will be a directory with version and then flat under that with a bunch of log files.

could maybe do */*.log ?

Copy link
Member Author

@zmyzheng zmyzheng Sep 5, 2024

Choose a reason for hiding this comment

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

Sounds good, I updated it to use */*.log

Copy link

Choose a reason for hiding this comment

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

what about linux? seems like there is a linux version of this too, we should collect those logs also right?

Copy link
Member Author

Choose a reason for hiding this comment

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

My understanding is, AppHealth log collecting for linux VM is already supported before this PR: https://github.com/Azure/azure-diskinspect-service/blob/master/manifests/linux/diagnostic#L119, so my PR only added the Windows log collecting.

@dpoole73
Copy link

dpoole73 commented Sep 4, 2024

can you add a PR description also?

@zmyzheng
Copy link
Member Author

zmyzheng commented Sep 4, 2024

can you add a PR description also?

Sure, added.

@chintanrp chintanrp merged commit ccca6bb into Azure:master Sep 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants