dbatools is a free PowerShell module with over 300 SQL Server administration, best practice and migration commands included.

Please note that documentation and command names may be out of date while we work furiously towards 1.0


Read-DbaXEventFile

Read XEvents from a xel or xem file.

Screenshots

dbatools-Read-DbaXEventFile

Examples

Returns events.

Read-DbaXEventFile -Path C:\temp\deadocks.xel

Reads remote xevents by acccessing the file over the admin UNC share.

Get-DbaXEventSession -SqlInstance sql2014 -Session deadlocks | Read-DbaXEventFile

Author

This command was created by Chrissy LeMaire. You can find Chrissy on Twitter.

Get-Help

From PowerShell, execute Get-Help Read-DbaXEventFile -Detailed for more information on this function.

Source Code

Want to see the source code? View Read-DbaXEventFile.ps1 on GitHub
 

Related commands