$GPLogs = $env:LOCALAPPDATA+"\Palo alto networks\GlobalProtect\PANGPA.log" $logs = (Get-Content $GPLogs) | ConvertTo-Xml