@@ -209,9 +209,9 @@ file format can be renamed to '.zip' to uncompress and review.
209
209
210
210
The Guest Configuration extension writes log files to the following locations:
211
211
212
- Windows: ` C:\Packages\Plugins\Microsoft.GuestConfiguration.ConfigurationforWindows\<version>\dsc\logs\dsc .log `
212
+ Windows: ` C:\ProgramData\GuestConfig\gc_agent_logs\gc_agent .log `
213
213
214
- Linux: ` /var/lib/waagent/Microsoft.GuestConfiguration.ConfigurationforLinux-<version>/GCAgent/logs/dsc .log `
214
+ Linux: ` /var/lib/GuestConfig/gc_agent_logs/gc_agent .log `
215
215
216
216
Where ` <version> ` refers to the current version number.
217
217
@@ -231,8 +231,8 @@ machines, the following example PowerShell script can be helpful. For more infor
231
231
``` powershell
232
232
$linesToIncludeBeforeMatch = 0
233
233
$linesToIncludeAfterMatch = 10
234
- $latestVersion = Get-ChildItem -Path 'C:\Packages\Plugins\Microsoft.GuestConfiguration.ConfigurationforWindows\' | ForEach-Object {$_.FullName} | Sort-Object -Descending | Select-Object -First 1
235
- Select-String -Path "$latestVersion\dsc\logs\dsc.log" -pattern 'DSCEngine','DSCManagedEngine' -CaseSensitive -Context $linesToIncludeBeforeMatch,$linesToIncludeAfterMatch | Select-Object -Last 10
234
+ $logPath = 'C:\ProgramData\GuestConfig\gc_agent_logs\gc_agent.log'
235
+ Select-String -Path $logPath -pattern 'DSCEngine','DSCManagedEngine' -CaseSensitive -Context $linesToIncludeBeforeMatch,$linesToIncludeAfterMatch | Select-Object -Last 10
236
236
```
237
237
238
238
#### Linux
@@ -244,8 +244,8 @@ the following example Bash script can be helpful. For more information, see
244
244
``` Bash
245
245
linesToIncludeBeforeMatch=0
246
246
linesToIncludeAfterMatch=10
247
- latestVersion= $( find /var/lib/waagent/ -type d -name " Microsoft.GuestConfiguration.ConfigurationforLinux-* " -maxdepth 1 -print | sort -z | sed -n 1p )
248
- egrep -B $linesToIncludeBeforeMatch -A $linesToIncludeAfterMatch ' DSCEngine|DSCManagedEngine' " $latestVersion /GCAgent/logs/dsc.log " | tail
247
+ logPath= /var/lib/GuestConfig/gc_agent_logs/gc_agent.log
248
+ egrep -B $linesToIncludeBeforeMatch -A $linesToIncludeAfterMatch ' DSCEngine|DSCManagedEngine' $logPath | tail
249
249
```
250
250
251
251
## Guest Configuration samples
0 commit comments