Hi @DM ,
Please check your properties of the SQL Server Agent, it has a "History" page where can be configured to limit the size of the job history log
Or you need to check if you have a maintenance plan or any other that includes a task to delete history tables to only one day
To get the history of the job, you can try to query sysjobhistory table and SQL Agent Job Activity Monitor
-------------
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.