Serial data logging

Hi to all,
I’m logging data from serial port on my mikrotik. Te RouterOS create on compact flash a file named data that contains all serial data. I would to have more logging serial file, one for each day… Is it possible ? I have to realize a script?

if i understood correctly, you are logging data that you receive on serial port. If so, should this be done on the router or stream could be forwarded elsewhere. If not, you could create script that changes destination file where you are logging (if you are doing that already) thus creating new file for each period.

Ok thanks … I change with a script destination file for serial data flow. If i would also implement a file rotate like logrotate daemon ?