User Tools

Site Tools


remote_syslog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
remote_syslog [2012/01/10 21:16]
ispyisail
remote_syslog [2016/02/09 18:14] (current)
z3braman changed "conloglevel" to "cronloglevel"
Line 1: Line 1:
-====== remote syslog ======+====== Remote Syslog ====== 
 + 
 +   
 +===== Introduction ===== 
 +Setting up up syslog remote logging server is good for fault finding.  
 + 
 +When logging connect your gargoyle router to the logging server with an Ethernet cable for more reliable results 
 ===== Client ===== ===== Client =====
 +Setup your gargoyle router as a syslog client by making a SSH connection to the router and then run the following commands.
  
-I think it would be very useful if it would be possible to set log_ip from the webinterface. I have now set it with SSH:+NOTEChange the IP address to your **syslog server** 
 +==== Set IP server address ====
  
 <shell> <shell>
Line 10: Line 19:
 </shell> </shell>
  
-But I think that it could be useful for other people.+If the setting are "log_ip" then all syslog messages get sent to that IP address (where a syslog server should be running).
  
-If setting log_ip all syslog messages gets sent to that IP address (where a syslog server should be running). +==== 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/dmesg logged into remote syslog.+
  
 <shell> <shell>
-uci set system.@system[0].conloglevel=7+uci set system.@system[0].cronloglevel=7
 uci commit uci commit
 reboot reboot
Line 26: Line 34:
 ===== Server ===== ===== Server =====
  
 +==== OS X ====
 +
 +For Mavericks 10.9, and probably earlier:
 +
 +You need to edit /System/Library/LaunchDaemons/com.apple.syslogd.plist
 +
 +Look for the Sockets key and add a new section for NetworkListener:
 +
 +<code>
 +  <key>Sockets</key>
 +  <dict>
 +    […]
 +    <key>NetworkListener</key>
 +    <dict>
 +      <key>SockServiceName</key>
 +      <string>syslog</string>
 +      <key>SockType</key>
 +      <string>dgram</string>
 +    </dict>
 +  </dict>
 +</code>
 +
 +The easiest way to do this without running afoul of cached preferences is:
 +
 +<code>
 +cd /System/Library/LaunchDaemons
 +sudo /usr/libexec/PlistBuddy -c "add :Sockets:NetworkListener dict" com.apple.syslogd.plist
 +sudo /usr/libexec/PlistBuddy -c "add :Sockets:NetworkListener:SockServiceName string syslog" com.apple.syslogd.plist
 +sudo /usr/libexec/PlistBuddy -c "add :Sockets:NetworkListener:SockType string dgram" com.apple.syslogd.plist
 +sudo launchctl unload com.apple.syslogd.plist
 +sudo launchctl load com.apple.syslogd.plist
 +</code>
 +
 +Thanks http://stackoverflow.com/questions/5510563/how-to-start-syslogd-server-on-mac-to-accept-remote-logging-messages
 +
 +==== Windows ====
  
 Windows logging server Windows logging server
Line 32: Line 76:
 Free Kiwi Syslog Server (download the free version with limited features) Free Kiwi Syslog Server (download the free version with limited features)
  
-Download and install that's about it+Download and install 
  
-{{:kiwi_syslog_server_version_9.png|}}+Under Setting>>Input change to the IP address to your gargoyle router
  
 +{{::2013-09-22_10_17_33-veriton_-_remote_desktop.jpg?500|}} 
 +
 +{{:kiwi_syslog_server_version_9.png|}}
remote_syslog.1326230188.txt.gz · Last modified: 2012/01/10 21:16 by ispyisail