imx6ul Log information

cancel
Showing results for 
Search instead for 
Did you mean: 

imx6ul Log information

107 Views
Contributor II

Hello there
I use imx6ul kernel version is linux4.14.78. I view the system log
# cat /var/log/syslog
He can only save the information of the last startup. The previous log information cannot be saved.
How can I modify it. He can save more information
I checked /etc/syslog.conf and I didn't see any changes

0 Kudos
1 Reply

53 Views
Senior Contributor II

Hi  jiehuai zhu,

You can use journaling as described in below link (you might need to preserve time else logs will be overwritten):

https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-system... 

Also, if you want to save syslog at reboot you can use:

crontab -e

@reboot sudo cat /var/log/syslog >> /home/root/syslog 

Regards,

Karan Gajjar

0 Kudos