01-30-2012 08:55 AM
We don't keep server Application logs for long, so I need help writing a SQL query that reports the same type information for EventID 7085 (Total number of expired items deleted and how much in Mb) for all users since we deployed Evault. We are using version Evault 9.0.2 and SQL Server 2008 SP1 Cu 6. We do Storage Expiry based on Modified date and our Retention is 10 yrs. Sample log event below. I'm not a SQL admin, so any help is appreciated.
Log Name: Symantec Enterprise Vault
Source: Enterprise Vault
Event ID: 7085
Task Category: Storage Delete
Level: Information
Description:Storage Expiry Report
Vault Store Name: Evault Mailbox Store1
Number of vaults processed: 3134
Number of vaults enabled for expiry: 3134
Total number of expired items deleted: 0
Total number of items that could not be deleted: 0
Items marked with sent\received date based retention categories have been deleted:(none)
Items marked with archived date based retention categories have been deleted:(none)
Solved! Go to Solution.
02-08-2012 03:57 PM
01-30-2012 12:43 PM
once the datas gone, its gone, theres no way to report on it, because it doesn't exist in the database anymore unfortunately, i don't even think Auditing keeps a list of those things either
01-31-2012 02:27 AM
There is a storage expiry report generated when the task is run - look in the Program Files|\EV\Reports folder.
01-31-2012 10:05 AM
There's nothing in that folder that is obvious. What does the filename begin with?
02-08-2012 11:23 AM
Storage expiry does not have a report, at least not in the sense of a log file. There is only an event ID that you posted already.
Next time you can run this SQL query to see how many items will be expired and how much disk space you will save.
USE EnterpriseVaultDirectory
USE EVVAULTSTORE [change to your vault store]
SELECT ArchiveName, ArchivePointID, sum(ItemSize) as TotalBytes, count (*) as 'Num Items Eligible' FROM Saveset
INNER JOIN ArchivePoint
On saveset.ArchivePointIdentity = ArchivePoint.ArchivePointIdentity
INNER JOIN EnterpriseVaultDirectory.dbo.Root r on r.VaultEntryID = ArchivePointID
INNER JOIN EnterpriseVaultDirectory.dbo.Archive a on a.RootIdentity = r.RootIdentity
WHERE ArchivedDate <= (getdate() - 3) [change the 3 to whatever your retention cat. is, in days]
GROUP BY ArchiveName, ArchivePointID
02-08-2012 03:57 PM