How do I collect statistics about the running status of cluster jobs in a year

I want to count the number and duration of tasks that the cluster runs in a year. Is there any way to get this data? The history homework on the Web interface is too troublesome to turn pages.