Sputnik – Teradek - Internal – increasing Sputnik log size
Customers who are streaming a lot and run into problems often ask us to troubleshoot things that happened a day or more ago. When this requires us to look at Sputnik logs, we often find there’s no record of the issue because logs have already been rotated out (overwritten).
If we are investigating a problem with a customer that is experiencing an issue we aren’t sure about, we can offer to increase the size of logs on their Sputnik server. By default there are 5 logs, around ~10MB each. This is configurable in the file /etc/sputnik.conf.
NOTE: You will need SSH access to the server to make these changes.
- Open up /etc/sputnik.conf for editing: sudo vi /etc/sputnik.conf
- To increase the log file size, find this section (line 23):
# Server Log file size
# Maximum size of server log file before rotation
# Default: 10485760
You can navigate directly to line 23 by typing 23, then shift+g
- Replace 10485760 with a larger number. Note that the Sputnik servers don’t have unlimited space, so don’t go too big. 50 MB could work, just replace the 1 with a 5.
- To increase the number of logs, find this section (line 28):
# Server Log file number
# Maximum number of server log files before deleting oldest
# Default: 5
- Replace 5 with a bigger number. Again, remember that there’s a finite amount of space on the servers, and it does get used for recording, so don’t specify 20x500MB logs. The amount you’ll need depends on how many devices you have.
Sputnik, logs, ssh, debug, Core