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 02:39] 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 | ||
- | ===== Method 2 ===== | + | < |
+ | uci set system.@system[0].cronloglevel=7 | ||
+ | uci commit | ||
+ | reboot | ||
+ | </ | ||
+ | This will make it show everything except debugging messages. | ||
+ | ===== Server ===== | ||
+ | ==== OS X ==== | ||
- | I was able to successfully install syslog-ng3 on Gargoyle TPlink WR1043ND and logging to remote syslog running on my Debian home server. | + | For Mavericks 10.9, and probably earlier: |
- | < | + | You need to edit /System/ |
- | opkg update | + | |
- | opkg install syslog-ng3 | + | |
- | </shell> | + | |
- | and missing dependency, syslog-ng won't start without it | + | |
- | < | + | Look for the Sockets key and add a new section for NetworkListener: |
- | opkg install libdbi | + | |
- | </ | + | |
- | Configuration: | + | < |
+ | < | ||
+ | < | ||
+ | […] | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
- | < | + | The easiest way to do this without running afoul of cached preferences is: |
- | root@Gargoyle:~# cat / | + | |
- | @version: | + | |
- | options { | + | < |
- | | + | cd / |
- | | + | sudo / |
- | | + | sudo / |
- | | + | sudo / |
- | | + | sudo launchctl unload com.apple.syslogd.plist |
- | | + | sudo launchctl load com.apple.syslogd.plist |
- | | + | </ |
- | flush_lines(0); | + | |
- | use_fqdn(no); | + | |
- | }; | + | |
- | source src { | + | Thanks http://stackoverflow.com/ |
- | internal(); | + | |
- | unix-stream(" | + | |
- | }; | + | |
- | source net { | + | ==== Windows ==== |
- | udp(ip(0.0.0.0) port(514)); | + | |
- | }; | + | |
- | source kernel { | + | Windows logging server |
- | | + | http://www.kiwisyslog.com/ |
- | }; | + | |
- | destination messages { | + | Free Kiwi Syslog Server |
- | file("/ | + | |
- | }; | + | |
- | destination d_udp { udp(" | + | |
- | log { | + | |
- | source(src); | + | |
- | source(net); | + | |
- | source(kernel); | + | |
- | destination(d_udp); | + | |
- | # | + | |
- | }; | + | |
- | </ | + | |
- | I am using my Debian home server | + | Download |
- | <shell> | + | Under Setting>>Input change to the IP address to your gargoyle |
- | destination routermsg { file("/ | + | |
- | filter f_router | + | {{:: |
- | log { source(remoteudp); | + | |
- | </ | + | |
+ | {{: |