A little Cisco IOS Embedded Event Manager (EEM) script example
Here is a little script to retrieve and store the output of command periodically on your cisco router. It can be usefull when logs don't want to speak.
conf t
!
event manager session cli username <myusername>
event manager applet ...