...
The journalctl command is a powerful tool used to query and view logs collected by systemd. To increase the size of log files size we , you can update the below settings.following settings in the /etc/systemd/journald.conf file.
Filter Logs by Service: journalctl -u service
| vi /etc/systemd/journald.conf [Journal] Storage=volatile #Compress=yes #Seal=yes #SplitMode=uid #SyncIntervalSec=5m RateLimitIntervalSec=0 RateLimitBurst=0 SystemMaxUse= |
|---|
| 500M #SystemKeepFree= SystemMaxFileSize= |
|---|
| 100M #SystemMaxFiles=100 RuntimeMaxUse= |
|---|
| 1G #RuntimeKeepFree= RuntimeMaxFileSize= |
|---|
| 100M #RuntimeMaxFiles=100 #MaxRetentionSec= #MaxFileSec=1month ForwardToSyslog=yes #ForwardToKMsg=no #ForwardToConsole=no #ForwardToWall=yes #TTYPath=/dev/console #MaxLevelStore=debug #MaxLevelSyslog=debug #MaxLevelKMsg=notice #MaxLevelConsole=info #MaxLevelWall=emerg #LineMax=48K #ReadKMsg=yes #Audit=yes |
|---|
NOTE:To get more debug info, compile the component with debug symbols enabled.
...