Right click SQL Server Agent and navigate to Properties. Go to the Job System tab where you can set log sizes and clear the log by clicking the "Clear Log" button.
I know of no place where you can set the time limit on how long these logs are kept, though.
Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"
A better way to clear the log is to set a job that runs:
sp_cycle_errorlog
I run that every Friday morning. The default is (I believe) 6 error logs. One current and 5 'archive'. As a 7th is created, the oldest one is 'removed'.
Really? How odd because I have one on my Properties -> Job System tab right under the "Maximum job history rows per job" box.
What version of SQL are you using? I wonder if this is something affected by a service pack.
Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"
Not sure if this will help, but I just discovered it in SQL 2005 SSMS.
If you create a new Maintenance Plan, one of the tasks available is a History Cleanup Task which cleans up all sorts of histories, like backup & restore / SQL Server Agent / Maintenance Plan histories.
Another task available is the Maintenance Cleanup Task which only does the MP stuff.
Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"
What are these error logs? How do you set these logs?
I see around 3000 error logs for 15 days and there is message within 5 minutues(it is not consistent, some times 5mnts and sometime it is 2mnts etc.,) and message is like
"[Log] Unable to read local eventlog (reason:The parameter is incorrect)"
what is this?
In the archive, I have million records for logs? What are these? Do they take any space?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.