The collection size for Send logs now depends on how many hours (up to 4 hours) are being collected and the number of physical nodes in the Azure Stack Hub scale unit (4 to 16 nodes). The average size for Proactive log collection is around 2 GB. The average size of diagnostic log collection varies based on whether it runs proactively or manually. If the Administrator portal is unavailable, you can use Get-AzureStackLog to save logs locally. During a support case, Microsoft Support works to provide detailed steps on how to get these local logs transferred. In the Settings blade, enter the path and a username and password with permission to write to the share. If you're normally connected but are experiencing connectivity issues, you can save logs locally to help with troubleshooting. You may, for example, run a disconnected environment. You can save logs to a local Server Message Block (SMB) share when Azure Stack Hub is disconnected from Azure. Invoke-Command -Session $pepsession -ScriptBlock To send diagnostic logs from VirtualMachines and BareMetal roles, with date filtering for log files for the past 8 hours: $fromDate = (Get-Date).AddHours(-8) Use the FilterByRole parameter to send diagnostic logs from VirtualMachines and BareMetal roles: Send-AzureStackDiagnosticLog -FilterByRole VirtualMachines,BareMetal To send diagnostic logs for Azure Stack Edge: Send-AzureStackDiagnosticLog -FilterByResourceProvide databoxedge To send diagnostic logs for Event Hubs: Send-AzureStackDiagnosticLog -FilterByResourceProvider eventhub ![]() To send diagnostic logs for MySQL RP: Send-AzureStackDiagnosticLog -FilterByResourceProvider MySQLAdapter To send diagnostic logs for SQL RP: Send-AzureStackDiagnosticLog -FilterByResourceProvider SQLAdapter The general syntax is: Send-AzureStackDiagnosticLog -FilterByResourceProvider > Use the FilterByResourceProvider parameter to send diagnostic logs for value-add Resource Providers (RPs). For example: Send-AzureStackDiagnosticLog -FilterByLogType File You can choose to filter by File, Share, or WindowsEvent. Use the FilterByLogType parameter to filter logs by type. For example: Send-AzureStackDiagnosticLog -FilterByNode azs-xrp01 Use the FilterByNode parameter to filter logs by computer name. If these parameters aren't specified, logs are collected for the past four hours by default. The FromDate and ToDate parameters can be used to collect logs for a particular time period. If you're using the Send logs now method and want to use PowerShell instead of the administrator portal, you can use the Send-AzureStackDiagnosticLog cmdlet to collect and send specific logs. If you're disconnected from the internet or want to only save logs locally, use the Get-AzureStackLog method to send logs.
0 Comments
Leave a Reply. |