continously dump dmesg log to a file without losing any of the output

I need to capture the entire dmesg log from the begiining of an event. The event causes so much dmesg that the buffer is full and the beginning of the log is gone. We can't recompile to make the dmesg buffer bigger.
Who is Participating?
pogosruAuthor Commented:
I did a bash script with dmesg -c in a while loop nad used the script command
pogosruAuthor Commented:
bash shell
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.