can-utils
can-utils copied to clipboard
candump: splitting log files by size
We are using candump to log CAN traffic on standalone devices. The log file grows fast. We suggest log file splitting. It could be helpful in some cases like in our one.
Generally a good idea - but it bloats candump once more. E.g. I'm currently thinking of removing options (like -b and -B) to meet Unix tool simplicity philosophy ("Write programs that do one thing and do it well.")
Have you ever thought about candump -L can0 | split -C 500MB
?
Are you familiar with split
?