Gargoyle/Syslog-ng loglevel

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

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

Gargoyle/Syslog-ng loglevel

Post 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?
Last edited by jaykumar2001 on Sat Dec 17, 2011 5:34 pm, edited 3 times in total.
TL-WR1043ND - Gargoyle 1.5.2
DIR-300 - DD-Wrt v24 preSP2 (Build14896)

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Gargoyle/Syslog-ng loglevel

Post 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

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

Re: Gargoyle/Syslog-ng loglevel

Post 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.
TL-WR1043ND - Gargoyle 1.5.2
DIR-300 - DD-Wrt v24 preSP2 (Build14896)

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Gargoyle/Syslog-ng loglevel

Post by ispyisail »

Thanks

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Gargoyle/Syslog-ng loglevel

Post by ispyisail »


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

Re: Gargoyle/Syslog-ng loglevel

Post 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).
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

Post Reply