This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
remote_syslog [2011/12/18 07:55] ispyisail |
remote_syslog [2016/02/09 18:14] (current) z3braman changed "conloglevel" to "cronloglevel" |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ===== Method 1 ===== | + | |
- | I think it would be very useful if it would be possible | + | |
+ | ===== Introduction | ||
+ | Setting up up syslog remote logging server is good for fault finding. | ||
+ | |||
+ | When logging connect your gargoyle router | ||
+ | |||
+ | ===== Client ===== | ||
+ | Setup your gargoyle router as a syslog client by making a SSH connection to the router and then run the following commands. | ||
+ | |||
+ | NOTE: Change the IP address to your **syslog server** | ||
+ | ==== Set IP server address ==== | ||
< | < | ||
Line 9: | Line 19: | ||
</ | </ | ||
- | But I think that it could be useful for other people. | + | If the setting are " |
- | If setting log_ip all syslog messages gets sent to that IP address (where a syslog server | + | ==== Increase logging Level ==== |
- | + | Increase the type of message which are sent to the syslog server | |
- | Any idea how to increase the log level of syslog, I want everything from logread/ | + | |
< | < | ||
- | uci set system.@system[0].conloglevel=7 | + | uci set system.@system[0].cronloglevel=7 |
uci commit | uci commit | ||
reboot | reboot | ||
Line 23: | Line 32: | ||
This will make it show everything except debugging messages. | This will make it show everything except debugging messages. | ||
+ | ===== Server ===== | ||
- | ===== Method 2 ===== | + | ==== OS X ==== |
+ | For Mavericks 10.9, and probably earlier: | ||
+ | You need to edit / | ||
+ | Look for the Sockets key and add a new section for NetworkListener: | ||
- | I was able to successfully install | + | < |
+ | < | ||
+ | < | ||
+ | […] | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
- | < | + | The easiest way to do this without |
- | opkg update | + | |
- | opkg install syslog-ng3 | + | |
- | </ | + | |
- | and missing dependency, syslog-ng won't start without | + | |
- | <shell> | + | <code> |
- | opkg install libdbi | + | cd / |
- | </shell> | + | sudo / |
+ | sudo / | ||
+ | sudo / | ||
+ | sudo launchctl unload com.apple.syslogd.plist | ||
+ | sudo launchctl load com.apple.syslogd.plist | ||
+ | </code> | ||
- | Configuration: Edit syslog-ng.conf | + | Thanks http:// |
- | < | + | ==== Windows ==== |
- | root@Gargoyle: | + | |
- | @version: | + | |
- | options { | + | Windows logging server |
- | | + | http:// |
- | 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 { | + | Free Kiwi Syslog Server |
- | internal(); | + | |
- | unix-stream("/ | + | |
- | }; | + | |
- | source net { | + | Download and install |
- | udp(ip(0.0.0.0) port(514)); | + | |
- | }; | + | |
- | source kernel { | + | Under Setting>> |
- | file("/ | + | |
- | }; | + | |
- | destination messages | + | {{:: |
- | file("/ | + | |
- | }; | + | |
- | destination d_udp { udp(" | + | |
- | log { | + | |
- | source(src); | + | |
- | source(net); | + | |
- | source(kernel); | + | |
- | destination(d_udp); | + | |
- | # | + | |
- | }; | + | |
- | </ | + | |
- | + | ||
- | I am using my Debian home server and syslog server, here are the relevant lines from syslog server config | + | |
- | + | ||
- | < | + | |
- | destination routermsg { file("/ | + | |
- | filter f_router { host(192.168.0.1); | + | |
- | log { source(remoteudp); | + | |
- | </ | + | |
+ | {{: |