Page 1 of 1

Gargoyle/Syslog-ng loglevel

Posted: Sat Dec 17, 2011 2:01 pm
by jaykumar2001
I was able to successfully install syslog-ng3 on Gargoyle TPlink WR1043ND and logging to remote syslog running on my Debian home server.

Installation:

Code: Select all

opkg install syslog-ng3

and missing dependency, syslog-ng won't start without it

opkg install libdbi
Configuration: Edit syslog-ng.conf

Code: Select all

root@Gargoyle:~# cat /etc/syslog-ng.conf
@version:3.0

options {
        chain_hostnames(no);
        create_dirs(yes);
        flush_lines(0);
        keep_hostname(yes);
        log_fifo_size(256);
        log_msg_size(1024);
        stats_freq(0);
        flush_lines(0);
        use_fqdn(no);
};

source src {
        internal();
        unix-stream("/dev/log");
};

source net {
        udp(ip(0.0.0.0) port(514));
};

source kernel {
        file("/proc/kmsg" program_override("kernel"));
};

destination messages {
        file("/var/log/messages");
};
destination d_udp { udp("192.168.0.113" port(514)); };
log {
        source(src);
        source(net);
        source(kernel);
        destination(d_udp);
#       destination(messages);
};
I am using my Debian home server and syslog server, here are the relevant lines from syslog server config

Code: Select all

destination routermsg { file("/var/log/router.log"); };
filter f_router { host(192.168.0.1); };
log { source(remoteudp); filter(f_router); destination(routermsg); };
Now I want to increase the loglevel to the point where it would log everything I see in "logread" and "dmesg"

I have already set the conloglevel to 5

Code: Select all

system.@system[0].conloglevel=5
uci commit
reboot
Is this correct? Or do it need to edit syslog-ng.conf?

Re: Gargoyle/Syslog-ng loglevel

Posted: Sat Dec 17, 2011 3:35 pm
by ispyisail
hi jaykumar2001

I would like to add this to the wiki

have you got some more details and or link on how-tos on this topic

Thanks

Re: Gargoyle/Syslog-ng loglevel

Posted: Sat Dec 17, 2011 4:13 pm
by jaykumar2001
ispyisail wrote:hi jaykumar2001

I would like to add this to the wiki

have you got some more details and or link on how-tos on this topic

Thanks
I added few more details to my last update. Let me know what other info you need.

Re: Gargoyle/Syslog-ng loglevel

Posted: Sat Dec 17, 2011 4:16 pm
by ispyisail
Thanks

Re: Gargoyle/Syslog-ng loglevel

Posted: Sat Dec 17, 2011 5:52 pm
by ispyisail

Re: Gargoyle/Syslog-ng loglevel

Posted: Sat Dec 17, 2011 10:25 pm
by hnl_dk
You do not need all this...
All you need to do, to stock gargoyle is this:
http://www.gargoyle-router.com/phpbb/vi ... f=7&t=1736
Plain an simple (of course change the IP address to the address of your server).