cheeweng
Contributor
Contributor

Exporting User and System events

Hi,

In VCSA 6.5 using flash, it allow exporting users event sort by start date, End date, Error, Warning,Info which easy for us to audit and view logs with excel.

HTML no longer allow export of VCSA events. Please advise if anyone came across powerCLI to export events

Tags (1)
0 Kudos
4 Replies
LucD
Leadership
Leadership

You can use the Get-VIEvent cmdlet for retrieving events.

And then export them with Export-Csv.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
cheeweng
Contributor
Contributor

Thanks, used a basic command to export. unsure if these CLI will export all events from start date to end date.

get-vievent -Types Info,Error,Warning -Start “1/08/2020” -Finish “31/08/2020” | Export-Csv "D:\report.csv" -noTypeInformation

0 Kudos
cheeweng
Contributor
Contributor

Thanks, used a basic command to export. unsure if these CLI will export all events from start date to end date.

get-vievent -Types Info,Error,Warning -Start “1/08/2020” -Finish “31/08/2020” | Export-Csv "D:\report.csv" -noTypeInformation

0 Kudos
LucD
Leadership
Leadership

There is a built-in maximum of 100 events that are returned.

To bypass that limit use the MaxSamples parameter.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos