packet:bpq_logging_reduction
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
packet:bpq_logging_reduction [2025/04/12 20:32] – m0mzf | packet:bpq_logging_reduction [2025/04/14 20:05] (current) – [Newer versions of Raspberry Pi OS (i.e. Debian 12)] m0mzf | ||
---|---|---|---|
Line 55: | Line 55: | ||
So let's get some control of this monster; edit the following file: | So let's get some control of this monster; edit the following file: | ||
- | < | + | < |
and uncomment / edit the following lines underneath '' | and uncomment / edit the following lines underneath '' | ||
Line 73: | Line 73: | ||
< | < | ||
- | There will still be some stuff ending up in /var/log - on a Debian system this will be logs from apt, dpkg etc, but all syslogging will now be in RAM and sizes kept under control. As the syslog is in RAM rebooting the Pi / if the Pi crashes all the logs will be lost. If you want persistent log storage (for example on a Pi 5 with an NVMe SSD) then you can get some control by vacuuming / configuring journald - that's beyond the scope of "save your SD card" so there' | + | There will still be some stuff ending up in /var/log - on a Debian system this will be logs from apt, dpkg etc, and other packages (ginx, mosquitto etc) by default are configured to write directly to it, but all syslogging will now be in RAM and sizes kept under control. As the syslog is in RAM rebooting the Pi / if the Pi crashes all the logs will be lost. If you want persistent log storage (for example on a Pi 5 with an NVMe SSD) then you can get some control by vacuuming / configuring journald - that's beyond the scope of "save your SD card" so there' |
To see what linbpq has been saying run | To see what linbpq has been saying run | ||
Line 83: | Line 83: | ||
====Writing all linbpq packets to syslog==== | ====Writing all linbpq packets to syslog==== | ||
- | If you really want to you can save out all the packets your station has heard to syslog. With some parsing this could be a useful diagnostic tool; here's one way to do it using [[https:// | + | If you really want to you can save out all the packets your station has heard to syslog. With some parsing this could be a useful diagnostic tool; here's one way to do it using [[https:// |
- | < To do; set up mosquitto, | + | To do this you'll need to have LinBPQ publishing it's packets to MQTT. To get that set up [[packet: |
Install Paho, download, install and compile the software: | Install Paho, download, install and compile the software: | ||
Line 92: | Line 92: | ||
mkdir ~/src; cd ~/src | mkdir ~/src; cd ~/src | ||
git clone https:// | git clone https:// | ||
- | cd remys_fast_mqtt_logger | + | cd remys_fast_mqtt_logger; mkdir build; cd build |
- | mkdir build | + | |
- | cd build | + | |
cmake -DCMAKE_BUILD_TYPE=Release | cmake -DCMAKE_BUILD_TYPE=Release | ||
</ | </ | ||
Line 109: | Line 107: | ||
-b " | -b " | ||
-t " | -t " | ||
- | -u "bpqusername" \ | + | -u "bpqmonweb" \ |
- | -p "bpqpassword" \ | + | -p "bpqmonweb" \ |
> /dev/null 2>&1 | > /dev/null 2>&1 | ||
</ | </ | ||
Line 143: | Line 141: | ||
< | < | ||
- | Expect this to use up maybe a dozen MB/day, depending on how busy your node is. | + | Expect this to use up maybe a few MB/day, depending on how busy your node is. |
packet/bpq_logging_reduction.1744489957.txt.gz · Last modified: 2025/04/12 20:32 by m0mzf