log_ip

Suggest improvements and new features for Gargoyle.

Moderator: Moderators

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

log_ip

Post by hnl_dk »

Hello

I think it would be very useful if it would be possible to set log_ip from the webinterface. I have now set it with SSH:

Code: Select all

uci set system.@system[0].log_ip=192.168.254.1
uci commit
reboot

But I think that it could be useful for other people.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: log_ip

Post by hnl_dk »

Just to make sure that everyone knows...
If setting log_ip all syslog messages gets sent to that IP address (where a syslog server should be running).
Perhaps it should also be possible to change the port number, in case it has been changed. To change the port number you also need to set log_port.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

mrfta
Posts: 3
Joined: Thu Oct 27, 2011 8:48 pm

Re: log_ip

Post by mrfta »

as I enter the router without rebooting Hise as changes that will not want to lose ... greetings

jaykumar2001
Posts: 27
Joined: Thu Oct 13, 2011 1:16 pm

Re: log_ip

Post by jaykumar2001 »

Any idea how to increase the log level of syslog, I want everything from logread/dmesg logged into remote syslog.
TL-WR1043ND - Gargoyle 1.5.2
DIR-300 - DD-Wrt v24 preSP2 (Build14896)

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: log_ip

Post by hnl_dk »

jaykumar2001 wrote:Any idea how to increase the log level of syslog, I want everything from logread/dmesg logged into remote syslog.

Set a higher loglevel, with the following option: conloglevel
For example:

Code: Select all

uci set system.@system[0].conloglevel=7
uci commit
reboot

This will make it show everything except debugging messages.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

Culex
Posts: 28
Joined: Sat Dec 25, 2010 5:38 am

Re: log_ip

Post by Culex »

How do i show everything included debug messages?

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: log_ip

Post by hnl_dk »

Culex wrote:How do i show everything included debug messages?

debug messages should not be used during operation, it would simply make the router very slow. Normally it will only be the developers who would need the debug information.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

Culex
Posts: 28
Joined: Sat Dec 25, 2010 5:38 am

Re: log_ip

Post by Culex »

I'm asking cause of intermitted wireless lockups, but I'm not sure if B43 is compiled with B43_DEBUG. Also in the syslog it doesn't show the ip of the router which can be difficult to distinguish between routers and repeaters.

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: log_ip

Post by hnl_dk »

Culex wrote:I'm asking cause of intermitted wireless lockups, but I'm not sure if B43 is compiled with B43_DEBUG. Also in the syslog it doesn't show the ip of the router which can be difficult to distinguish between routers and repeaters.

I do not think that it is.
You get the MAC address (and the IP address of the router sending the log), that should be more "safe" than the IP address.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

nieroster
Posts: 27
Joined: Sun Apr 14, 2013 10:56 am

Re: log_ip

Post by nieroster »

hnl_dk wrote:Hello

I think it would be very useful if it would be possible to set log_ip from the webinterface. I have now set it with SSH:

Code: Select all

uci set system.@system[0].log_ip=192.168.254.1
uci commit
reboot

But I think that it could be useful for other people.


how do I turn it off again? Is it something like:

Code: Select all

uci set system.@system[0].log_ip=
uci commit
reboot


What is the default syslog level to return to?

regards,
nieroster

Post Reply