AX86U AsusWRT Fw , log level settings via SSH?

jpthsd

Regular Contributor
Hello,
I am running AsusWRT fw latest, enabled SSH and got into ssh ,,but I do not have what logs level should be set for like drop/deny/wireless...(I just setup myself syslog server but the router sent ver very little limited logs)...thus I am looking for enabling more like debug or informational logging level...

Does anyone have what needs to be enabling here via ssh for logging more? I am just blind here LoL!!

Thank you,
jpthsd
 

ColinTaylor

Part of the Furniture
Sorry, I don't understand what you're asking.

Are you talking about what appears on a remote syslog server or in the router's System Log?
 

jpthsd

Regular Contributor
Sorry, I don't understand what you're asking.

Are you talking about what appears on a remote syslog server or in the router's System Log?
Thank you,

I want to know what command to enable for what log level to be increased, I found something like the below, but some said once the router reboot (AsusWrt FW) , it will be reset back to log_level=7

I checked my AX86U , it is currently set at log_level=6...

Do you have any info what logs and log_level can be set while using AsusWRT FW?

Regards,
jpthsd



[email protected]: # nvram set log_level=2
[email protected]: # nvram set log_enable=1
[email protected]: # nvram set log_rejected=1
[email protected]: # nvram set log_dropped=1
[email protected]: # nvram set log_accepted=0
 

jpthsd

Regular Contributor
It looks like you replied to the blog here https://www.snbforums.com/threads/where-can-i-get-more-detailed-system-logs-in-asus-routers.36822/

Yes , I would like to change the syslog logging level higher so it sends more to my syslog server rather than now,,,it sends only like service restart, system reboot and nothing about client connectivity...I enabled logging both drop/accepted fw package logs it did but it is not really helping with those as fw logs only.

is there anyway to increase syslog logging level just like shown in the Router UI's log like client disconnection/reconnection etc?
 

jpthsd

Regular Contributor
looks like I need to run these commands via SSH while having AsusWrt fw? (these were in your post)


# ps w | grep syslogd
28128 admin 1412 S syslogd -m 0 -O /tmp/syslog.log -S -s 256 -l 7

# killall syslogd

# syslogd -m 0 -O /tmp/syslog.log -s 256 -l
 

ColinTaylor

Part of the Furniture
nvram set log_level=8 will show all messages (assuming it works the same way as Merlin). nvram set log_level=7 is the Merlin default.

After changing the log level either reboot the router or service restart_logger.
 
Last edited:

jpthsd

Regular Contributor
nvram set log_level=8 will show all messages (assuming it works the same way as Merlin). nvram set log_level=7 is the Merlin default.

After changing the log level either reboot the router or service restart_logger.
Thank you!! I will try it tonight from CA

it actually shows the dnsmasg dhcp, kernel, hostapd, wlceventd, roamst

Kinda cool to see these on my BlueIris Windows 10 server multi purpose workstation server (kiwi Syslog free server)!
 

ColinTaylor

Part of the Furniture
Kinda cool to see these on my BlueIris Windows 10 server multi purpose workstation server (kiwi Syslog free server)!
Changing the log level on the router will have no effect on what is logged on the remote server. Everything is sent to a remote syslog server and it is that server's config that determines what it shows.
 
Last edited:

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top