I typed up a nice long response and then clicked cancel .... AWESOME.
Anyways I get log data but its all timestamped exactly with what ever the $date1 variable is.
Script Example.
Add-PSSnapin VeeamPSSnapin
$date1 = (get-date).AddHours(-1)
$date2 = Get-Date
$Epoch = (New-TimeSpan -Start $date1 -End $date2).TotalSeconds
Get-VBRViProxy -Name * | Select @{N="#Date";E={$date1}}, @{N="Name";E={$.Name}}, @{N="Host";E={$.Host}}, @{N="Type";E={$.Type}}, @{N="IsDisabled";E={$.IsDisabled}},@{N="Description";E={$_.Description}} | Export-csv -Path C:\Temp\splunk\"BKPPXY"$Epoch.csv -NoTypeInformation
EXAMPLE Variable:
PS C:\Windows\system32> $date1
Friday, October 5, 2018 1:00:12 PM
EXAMPLE Out PUT:
"#Date","Name","Host","Type","IsDisabled","Description"
"10/5/2018 1:00:12 PM","SERVERNAME","Veeam.Backup.Core.Common.CHost","Vi","False","Proxy and Repository Server on UCS Chassis located in LOCATION."
I get about 20 items back with the same exact timestamp which is in line with the VAR. I wanted to get the range of events rather than just the one timestamp. I assum its something wrong in the loggic.
... View more