This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
remote_syslog [2011/12/17 21:50] ispyisail created |
remote_syslog [2016/02/09 18:14] (current) z3braman changed "conloglevel" to "cronloglevel" |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | I was able to successfully install | + | |
| + | ===== 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 | ||
| + | |||
| + | NOTE: Change the IP address | ||
| + | ==== Set IP server address ==== | ||
| < | < | ||
| - | opkg update | + | uci set system.@system[0].log_ip=192.168.254.1 |
| - | opkg install syslog-ng3 | + | uci commit |
| + | reboot | ||
| </ | </ | ||
| - | and missing dependency, | + | |
| + | If the setting are " | ||
| + | |||
| + | ==== Increase logging Level ==== | ||
| + | Increase the type of message which are sent to the syslog server | ||
| < | < | ||
| - | opkg install libdbi | + | uci set system.@system[0].cronloglevel=7 |
| + | uci commit | ||
| + | reboot | ||
| </ | </ | ||
| - | Configuration: | + | This will make it show everything except debugging messages. |
| - | < | + | ===== Server ===== |
| - | root@Gargoyle: | + | |
| - | @version: | + | |
| - | options { | + | ==== OS X ==== |
| - | 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 { | + | For Mavericks 10.9, and probably earlier: |
| - | internal(); | + | |
| - | unix-stream("/ | + | |
| - | }; | + | |
| - | source net { | + | You need to edit / |
| - | udp(ip(0.0.0.0) port(514)); | + | |
| - | }; | + | |
| - | source kernel { | + | Look for the Sockets key and add a new section for NetworkListener: |
| - | file("/ | + | |
| - | }; | + | |
| - | destination messages { | + | < |
| - | | + | < |
| - | }; | + | < |
| - | destination d_udp { udp(" | + | […] |
| - | log { | + | < |
| - | | + | < |
| - | | + | < |
| - | | + | < |
| - | | + | < |
| - | # | + | < |
| - | }; | + | </ |
| - | </shell> | + | </ |
| + | </code> | ||
| - | I am using my Debian home server and syslog server, here are the relevant lines from syslog server config | + | The easiest way to do this without running afoul of cached preferences is: |
| - | <shell> | + | <code> |
| - | destination routermsg { file("/var/log/router.log"); }; | + | cd / |
| - | filter f_router { host(192.168.0.1); }; | + | sudo / |
| - | </shell> | + | sudo /usr/libexec/PlistBuddy -c "add : |
| + | sudo / | ||
| + | sudo launchctl unload com.apple.syslogd.plist | ||
| + | sudo launchctl load com.apple.syslogd.plist | ||
| + | </code> | ||
| + | |||
| + | Thanks http:// | ||
| + | |||
| + | ==== Windows ==== | ||
| + | |||
| + | Windows logging server | ||
| + | http:// | ||
| + | |||
| + | Free Kiwi Syslog Server (download the free version with limited features) | ||
| + | |||
| + | Download and install | ||
| + | Under Setting>> | ||
| - | log { source(remoteudp); | + | {{:: |
| + | {{: | ||