-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add apphealth vmwatch log #269
Conversation
docs/manifest_content.md
Outdated
@@ -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/\*/\* |
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.
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
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.
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
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.
@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.
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.
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
?
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.
Sounds good, I updated it to use */*.log
manifests/windows/diagnostic
Outdated
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.
what about linux? seems like there is a linux version of this too, we should collect those logs also right?
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.
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.
can you add a PR description also? |
Sure, added. |
this is a PR to support collecting Apphealth and VMWatch logs with azure inspect disk service based on CSS team's requirement