API

Welcome to the Nutanix NEXT community. To get started please read our short welcome post. Thanks!

cancel
Showing results for 
Search instead for 
Did you mean: 

Get-NTNXEvent limit of 1,000

SOLVED Go to solution
Trailblazer

Get-NTNXEvent limit of 1,000

It appears that there's a limit to the number of events that the Get-NTNXEvent (and Get-NTNXProtectionDomainEvent) cmdlet return. Is there any way to bypass this limit of 1,000? 

 

This limit also seems to exist from the Prism console when selecting the export to csv option. 

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Nutanix Employee

Re: Get-NTNXEvent limit of 1,000

@mandg

 

Currently, this is a hard limit which we set. 

You can use the below method to grab the data and export to CSV.

 

 

$result = @()
$i = 1;
do{
$result += Get-NTNXEvent -Page $i -count 1000
$i++
}until((Get-NTNXEvent -Page $i -count 1000).count -eq 0 )

 

$result | export-csv "Path & filname to save the csv file"

 

Regards,

Sandeep MP

2 REPLIES
Community Manager

Re: Get-NTNXEvent limit of 1,000

Hi @mandg

 

Thanks for sharing, I'll work on getting an answer for you

 

Thanks 

Tags (1)
Highlighted
Nutanix Employee

Re: Get-NTNXEvent limit of 1,000

@mandg

 

Currently, this is a hard limit which we set. 

You can use the below method to grab the data and export to CSV.

 

 

$result = @()
$i = 1;
do{
$result += Get-NTNXEvent -Page $i -count 1000
$i++
}until((Get-NTNXEvent -Page $i -count 1000).count -eq 0 )

 

$result | export-csv "Path & filname to save the csv file"

 

Regards,

Sandeep MP