capture_dmesg.sh | ||
LICENSE | ||
README.md |
dmesg-continuous-logger
Description
This repository contains a simple bash script, capture_dmesg.sh
, designed to continuously capture dmesg
logs to a file for as long as the script runs. This is particularly useful for troubleshooting and monitoring system-level messages, especially during periods of active testing or when trying to capture intermittent issues.
Features
- Starts logging
dmesg
messages as soon as the script is run. - Captures logs to a designated file
dmesg_continuous.log
. - Easy termination using
CTRL+C
or by sending aSIGTERM
signal to the script.
Usage
-
Clone the Repository:
git clone https://github.com/kevinveenbirkenbach/dmesg-continuous-logger.git
-
Navigate to the Directory:
cd dmesg-continuous-logger
-
Make the Script Executable:
chmod +x capture_dmesg.sh
-
Run the Script:
./capture_dmesg.sh
The
dmesg
logs will now be captured todmesg_continuous.log
for the duration the script runs. -
Stop Logging: To stop the logging process, simply press
CTRL+C
or send aSIGTERM
signal to the script.
Contributing
We welcome contributions to improve the script or extend its capabilities. Please submit a pull request or create an issue to discuss proposed changes.
Context
This tool was developed to help tracking the reasons behind this bug.
Author
Created by Kevin Veen-Birkenbach
- Email: kevin@veen.world
- Website: www.veen.world
Special thanks to ChatGPT for assistance in the development of this tool. You can view the conversatios that led to the creation of this tool here.
License
This code is licensed under the GNU Affero General Public License Version 3. Please see the LICENSE file for more details or visit the GNU website.