System Log on USB

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
oliver44
DD-WRT Guru


Joined: 01 Jun 2016
Posts: 504

PostPosted: Sat Feb 12, 2022 18:48    Post subject: Reply with quote
it seems that after reboot it no longer displays all the logs, continue to display the information correctly and with the new script! Smile

thanks for all the help!Cool

_________________
Internet provider https://en.wikipedia.org/wiki/RCS_%26_RDS 1Gbps
WDR3600 rev.1.5 - DD-Wrt
Linksys WRT1900ACS v.2 DD-Wrt/-OpenWrt



https://ipv6.chappell-family.com/ipv6tcptest/
https://en.internet.nl/connection/e91f490fe1c54cb2b78145c0ab0d2b5a/results
http://www.dnssec-or-not.com/
https://dnscheck.tools/#results
Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3002
Location: Germany

PostPosted: Sat Feb 12, 2022 19:46    Post subject: Reply with quote
Well the bootlog is lost because you restart syslogd and redirect the output to another file.

Sometimes the bootlog is quite useful.
You can try the following code which should also save the bootlog.

Code:
if [ ! -L /tmp/var/log/messages ]; then cat /tmp/var/log/messages >> /jffs/messages; fi
killall syslogd
syslogd -Z -L -s 8192 -O /jffs/messages
ln -sf /jffs/messages /tmp/var/log/messages
oliver44
DD-WRT Guru


Joined: 01 Jun 2016
Posts: 504

PostPosted: Sat Feb 12, 2022 19:56    Post subject: Reply with quote
ho1Aetoo wrote:
Well the bootlog is lost because you restart syslogd and redirect the output to another file.

Sometimes the bootlog is quite useful.
You can try the following code which should also save the bootlog.

Code:
if [ ! -L /tmp/var/log/messages ]; then cat /tmp/var/log/messages >> /jffs/messages; fi
killall syslogd
syslogd -Z -L -s 8192 -O /jffs/messages
ln -sf /jffs/messages /tmp/var/log/messages


it may endanger the operation of my router,where to save this code ?

_________________
Internet provider https://en.wikipedia.org/wiki/RCS_%26_RDS 1Gbps
WDR3600 rev.1.5 - DD-Wrt
Linksys WRT1900ACS v.2 DD-Wrt/-OpenWrt



https://ipv6.chappell-family.com/ipv6tcptest/
https://en.internet.nl/connection/e91f490fe1c54cb2b78145c0ab0d2b5a/results
http://www.dnssec-or-not.com/
https://dnscheck.tools/#results
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3002
Location: Germany

PostPosted: Sat Feb 12, 2022 20:00    Post subject: Reply with quote
where it was stored before e.g. as USB script
oliver44
DD-WRT Guru


Joined: 01 Jun 2016
Posts: 504

PostPosted: Sat Feb 12, 2022 20:02    Post subject: Reply with quote
can I replace 8192 with 200?
_________________
Internet provider https://en.wikipedia.org/wiki/RCS_%26_RDS 1Gbps
WDR3600 rev.1.5 - DD-Wrt
Linksys WRT1900ACS v.2 DD-Wrt/-OpenWrt



https://ipv6.chappell-family.com/ipv6tcptest/
https://en.internet.nl/connection/e91f490fe1c54cb2b78145c0ab0d2b5a/results
http://www.dnssec-or-not.com/
https://dnscheck.tools/#results
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3002
Location: Germany

PostPosted: Sat Feb 12, 2022 20:05    Post subject: Reply with quote
sure
oliver44
DD-WRT Guru


Joined: 01 Jun 2016
Posts: 504

PostPosted: Sat Feb 12, 2022 20:05    Post subject: Reply with quote
done


test.PNG
 Description:
 Filesize:  34.73 KB
 Viewed:  2221 Time(s)

test.PNG



_________________
Internet provider https://en.wikipedia.org/wiki/RCS_%26_RDS 1Gbps
WDR3600 rev.1.5 - DD-Wrt
Linksys WRT1900ACS v.2 DD-Wrt/-OpenWrt



https://ipv6.chappell-family.com/ipv6tcptest/
https://en.internet.nl/connection/e91f490fe1c54cb2b78145c0ab0d2b5a/results
http://www.dnssec-or-not.com/
https://dnscheck.tools/#results
oliver44
DD-WRT Guru


Joined: 01 Jun 2016
Posts: 504

PostPosted: Sat Feb 12, 2022 20:12    Post subject: Reply with quote
I deleted the first file with the system logs manually via winscp, there is a problem that I deleted it?
_________________
Internet provider https://en.wikipedia.org/wiki/RCS_%26_RDS 1Gbps
WDR3600 rev.1.5 - DD-Wrt
Linksys WRT1900ACS v.2 DD-Wrt/-OpenWrt



https://ipv6.chappell-family.com/ipv6tcptest/
https://en.internet.nl/connection/e91f490fe1c54cb2b78145c0ab0d2b5a/results
http://www.dnssec-or-not.com/
https://dnscheck.tools/#results
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3002
Location: Germany

PostPosted: Sat Feb 12, 2022 20:15    Post subject: Reply with quote
no, just restart the router and then see if the bootup is also visible in the log.

now normally everything should be saved
oliver44
DD-WRT Guru


Joined: 01 Jun 2016
Posts: 504

PostPosted: Sat Feb 12, 2022 20:24    Post subject: Reply with quote
these are the details with which the logs began after reboot..


New Text Document.txt
 Description:

Download
 Filename:  New Text Document.txt
 Filesize:  18.17 KB
 Downloaded:  104 Time(s)


_________________
Internet provider https://en.wikipedia.org/wiki/RCS_%26_RDS 1Gbps
WDR3600 rev.1.5 - DD-Wrt
Linksys WRT1900ACS v.2 DD-Wrt/-OpenWrt



https://ipv6.chappell-family.com/ipv6tcptest/
https://en.internet.nl/connection/e91f490fe1c54cb2b78145c0ab0d2b5a/results
http://www.dnssec-or-not.com/
https://dnscheck.tools/#results
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3002
Location: Germany

PostPosted: Sat Feb 12, 2022 20:42    Post subject: Reply with quote
Yes now you only have to activate klogd in the tab "services" then you might see it ;-.)
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14246
Location: Texas, USA

PostPosted: Sat Feb 12, 2022 20:51    Post subject: Reply with quote
Going to link this thread to these tickets...

https://svn.dd-wrt.com/ticket/5878
https://svn.dd-wrt.com/ticket/6203

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
oliver44
DD-WRT Guru


Joined: 01 Jun 2016
Posts: 504

PostPosted: Sat Feb 12, 2022 21:03    Post subject: Reply with quote
the file is larger now 210kb, I should change something in the script?

Cod
if [ ! -L /tmp/var/log/messages ]; then cat /tmp/var/log/messages >> /jffs/messages; fi
killall syslogd
syslogd -Z -L -s 200 -O /jffs/messages
ln -sf /jffs/messages /tmp/var/log/messages

200 to 400?



system log.txt
 Description:

Download
 Filename:  system log.txt
 Filesize:  56.89 KB
 Downloaded:  78 Time(s)


_________________
Internet provider https://en.wikipedia.org/wiki/RCS_%26_RDS 1Gbps
WDR3600 rev.1.5 - DD-Wrt
Linksys WRT1900ACS v.2 DD-Wrt/-OpenWrt



https://ipv6.chappell-family.com/ipv6tcptest/
https://en.internet.nl/connection/e91f490fe1c54cb2b78145c0ab0d2b5a/results
http://www.dnssec-or-not.com/
https://dnscheck.tools/#results
AndyOxon
DD-WRT User


Joined: 16 Aug 2021
Posts: 81
Location: Oxford, UK.

PostPosted: Sun Feb 13, 2022 8:25    Post subject: Reply with quote
kernel-panic69 wrote:
Going to link this thread to these tickets...

https://svn.dd-wrt.com/ticket/5878
https://svn.dd-wrt.com/ticket/6203


https://svn.dd-wrt.com/ticket/6203 <--This would be very useful!

_________________
Hardware (Device/Firmware/Roles):
Netgear RAX50 | Stock | Gateway, DHCP, AP, NAS.
Netgear WNDR4500v2 | FreshTomato | Router, WAP (2G), WDS-AP (5G), Samba, Torrent Client.
Netgear WNDR4500v2 | FreshTomato | Router, WAP (2G), WDS-AP (5G).
plawer
DD-WRT User


Joined: 11 Aug 2019
Posts: 156

PostPosted: Sat Mar 12, 2022 12:32    Post subject: Reply with quote
I know I am late for the party here. I added a
mkdir -p /jffs/syslog/
to ensure the folder exists.

_________________
Linksys: Several WRTxx00AC variations | Netgear: 4x WNDR4500v2, 7x WNDR4300, R6400v1 | Asus: 2x RT-AC66U | Gl.inet: 3x GL-AR150
Goto page Previous  1, 2, 3, 4, 5, 6  Next Display posts from previous:    Page 5 of 6
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum