messages discarded

How do I stop the log from discarding messages?

I can’t give you specifics but you can find a lot of information at https://wiki.mikrotik.com/wiki/Manual:System/Log.

Googling “routerOS System logging” will get you 3rd party tutorials and video.