Skip to content

Let's Document How to Use Read-DbaXEFile Without a UNC Share #9615

Open
@ReeceGoding

Description

@ReeceGoding

Summarize Functionality

Currently, the only documentation for Read-DbaXEFile that does not require knowing the path to the .xel file is Get-DbaXESession -SqlInstance sql2019 -Session deadlocks | Read-DbaXEFile. I've never seen this work, presumably because the documentation strongly suggests that it only works if you write your .xel file to a file share and I've never seen anyone do that.

I propose that we document how to use Read-DbaXEFile without knowing the file path and without needing a UNC share. The only trick that I know for this is by putting many extra steps in the pipeline. For example,

`Get-DbaXESession -SqlInstance sql2019 -Session deadlocks |
Get-DbaXESessionTarget |
Get-DbaXESessionTargetFile |
Read-DbaXEFile

works consistently for me, but requires some permissions that I have yet to fully understand.

Is there a command that is similiar or close to what you are looking for?

Yes

Technical Details

As above. The only thing to add is that it helps to stop the session to force a rollover.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featuretriage requiredNew issue that has not been reviewed by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions