Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 2.67 KB

journalctl.md

File metadata and controls

43 lines (33 loc) · 2.67 KB

DVMhost logs

The logs are located in /opt/dvm/log with a file name format of DVM-yyyy-mm-dd.log and DVM-yyyy-mm-dd.activity.log.

Note: Since changing the service to run with type=forking and the config to daemon: true, logging must be changed to useSyslog: true for journalctl.

Journalctl is a very useful tool for viewing logs, more functional than viewing text log files. Here are some of the ways I use journalctl to view dvmhost logs.

  1. View all log entries: journalctl -u dvmhost
  2. View starting yesterday log: journalctl -S yesterday -u dvmhost
  3. View starting today log: journalctl -S today -u dvmhost
  4. View starting at 2 o'clock: journalctl -S 14:00 -u dvmhost
  5. Tail (live view) all entries: journalctl -u dvmhost -f

Combine journalctl with grep and magic happens:

  1. Tail (live view) errors and warnings: journalctl -u dvmhost -f | grep -E ' E: | W: '
  2. Tail errors and warnings excluding peerId 310778140: journalctl -S 09:00 -u dvmfne -f | grep -v 310778104 | grep -E ' E: | W: '
  3. Check V.24 board firmware date: journalctl -u dvmhost | grep "DVM-V24 FW". Wait for the prompt. This may take a while to run all way to the most recient update.
  4. Find my overflows in the FNE: journalctl -S yesterday -u dvmfne -f | grep "AWP.*overflow"

General info on journalctl.

Last Heard

Here's a hack to tail DVMHost log (given date) for a last heard list.

tail -f -n 90 /opt/dvm/log/DVM-yyyy-mm-dd.activity.log | grep ' transmission':

A: 2024-08-24 00:22:52.547 P25 Net network voice transmission from 5057057 to TG 10253
A: 2024-08-24 00:22:52.962 P25 Net network end of transmission, 0.7 seconds, 2% packet loss
A: 2024-08-24 00:52:32.750 P25 Net network voice transmission from 5057057 to TG 10253
A: 2024-08-24 00:52:32.989 P25 Net network end of transmission, 0.5 seconds, 0% packet loss
A: 2024-08-24 00:59:55.106 P25 Net network voice transmission from 5057057 to TG 10253
A: 2024-08-24 00:59:55.350 P25 Net network end of transmission, 0.5 seconds, 0% packet loss
A: 2024-08-24 00:59:57.398 P25 Net network voice transmission from 5057057 to TG 10253
A: 2024-08-24 00:59:59.260 P25 Net network end of transmission, 2.2 seconds, 0% packet loss
A: 2024-08-24 01:10:52.323 P25 Net network voice transmission from 5057057 to TG 10253
A: 2024-08-24 01:10:52.391 P25 Net network end of transmission, 0.4 seconds, 0% packet loss
A: 2024-08-24 05:22:45.731 P25 RF RF voice transmission from 3106588 to TG 10253
A: 2024-08-24 05:22:46.504 P25 RF RF end of transmission, 0.9 seconds, BER: 0.0%

This will have to do until there's a DVMhost/FNE monitor.