<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de-AT">
	<id>http://oldwiki.streamboard.tv/index.php?action=history&amp;feed=atom&amp;title=OSCam%2Fen%2FCentralLogging</id>
	<title>OSCam/en/CentralLogging - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="http://oldwiki.streamboard.tv/index.php?action=history&amp;feed=atom&amp;title=OSCam%2Fen%2FCentralLogging"/>
	<link rel="alternate" type="text/html" href="http://oldwiki.streamboard.tv/index.php?title=OSCam/en/CentralLogging&amp;action=history"/>
	<updated>2026-05-08T19:22:36Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Streamboard Wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>http://oldwiki.streamboard.tv/index.php?title=OSCam/en/CentralLogging&amp;diff=6118&amp;oldid=prev</id>
		<title>ValD: First version of this page.</title>
		<link rel="alternate" type="text/html" href="http://oldwiki.streamboard.tv/index.php?title=OSCam/en/CentralLogging&amp;diff=6118&amp;oldid=prev"/>
		<updated>2011-03-17T13:00:37Z</updated>

		<summary type="html">&lt;p&gt;First version of this page.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Kategorie:OSCam]]&lt;br /&gt;
{{OSCamHomeLinks}}&lt;br /&gt;
&lt;br /&gt;
== Central Logging ==&lt;br /&gt;
One thing I found very useful when debugging issues with OSCam (and not only this) is to have all the logs at my disposal. To do that, I have setup all my boxes to send their logs to my server which is always on and has sufficient disk space. The preferred protocol, supported by all devices and programs, is &amp;#039;&amp;#039;&amp;#039;syslog&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Client Configuration ===&lt;br /&gt;
First, I make sure syslog is running on my boxes.&lt;br /&gt;
&lt;br /&gt;
For DM500 running Gemini, the configuration is in &amp;lt;tt&amp;gt;/var/script/syslogd_script.sh&amp;lt;/tt&amp;gt;:&lt;br /&gt;
 REMOTE=1&lt;br /&gt;
 REMOTE_HOST=&amp;lt;serverIP&amp;gt;&lt;br /&gt;
 REMOTE_PORT=514&lt;br /&gt;
&lt;br /&gt;
On my TM800HD, the configuration is in &amp;lt;tt&amp;gt;/etc/syslog.conf&amp;lt;/tt&amp;gt;&lt;br /&gt;
 DESTINATION=&amp;quot;remote&amp;quot;&lt;br /&gt;
 REMOTE=&amp;lt;serverIP&amp;gt;:514&lt;br /&gt;
&lt;br /&gt;
Then, &amp;#039;&amp;#039;&amp;#039;oscam&amp;#039;&amp;#039;&amp;#039; can be configured to write to syslog daemon instead of a file. Just change &amp;lt;tt&amp;gt;logfile&amp;lt;/tt&amp;gt; value in &amp;lt;tt&amp;gt;oscam.conf&amp;lt;/tt&amp;gt; like this:&lt;br /&gt;
 [global]&lt;br /&gt;
 logfile                       = syslog&lt;br /&gt;
&lt;br /&gt;
=== Server Configuration ===&lt;br /&gt;
The best part is on the server side. This is where I wasn&amp;#039;t happy with the default &amp;#039;&amp;#039;&amp;#039;syslogd&amp;#039;&amp;#039;&amp;#039; server that comes with Debian, and I installed the smarter &amp;#039;&amp;#039;&amp;#039;syslog-ng&amp;#039;&amp;#039;&amp;#039;. One thing I loved about syslog-ng is that I was able to configure it so that each box has its own directory on the server, making it very easy to find the log data I was looking for. This is the configuration I use in &amp;lt;tt&amp;gt;syslog-ng.conf&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
 # source: all logs sent from the network&lt;br /&gt;
 source s_net {&lt;br /&gt;
     udp();&lt;br /&gt;
     tcp();&lt;br /&gt;
     syslog();&lt;br /&gt;
 };&amp;lt;br/&amp;gt;&lt;br /&gt;
 # destination: each facility has its own log for each host&lt;br /&gt;
 destination d_hosts {&lt;br /&gt;
     file(&amp;quot;/var/log/hosts/$HOST/$FACILITY.log&amp;quot;&lt;br /&gt;
         owner(root)&lt;br /&gt;
         group(root)&lt;br /&gt;
         perm(0600)&lt;br /&gt;
         dir_perm(0755)&lt;br /&gt;
         create_dirs(yes)&lt;br /&gt;
     );&lt;br /&gt;
 };&amp;lt;br/&amp;gt;&lt;br /&gt;
 # everything from the network is sent to the disk, under /var/log/hosts&lt;br /&gt;
 log {&lt;br /&gt;
     source(s_net);&lt;br /&gt;
     destination(d_hosts);&lt;br /&gt;
 };&lt;br /&gt;
&lt;br /&gt;
=== Results ===&lt;br /&gt;
The result is that I have log files on the server for all my stuff:&lt;br /&gt;
 server:/var/log/hosts# find&lt;br /&gt;
 ./phone&lt;br /&gt;
 ./phone/user.log&lt;br /&gt;
 ./dm500fe&lt;br /&gt;
 ./dm500fe/daemon.log&lt;br /&gt;
 ./dm500fe/syslog.log&lt;br /&gt;
 ./dm500fe/user.log&lt;br /&gt;
 ./server&lt;br /&gt;
 ./server/daemon.log&lt;br /&gt;
 ./server/syslog.log&lt;br /&gt;
 ./server/user.log&lt;br /&gt;
 ./tm800&lt;br /&gt;
 ./tm800/daemon.log&lt;br /&gt;
 ./tm800/authpriv.log&lt;br /&gt;
 ./tm800/cron.log&lt;br /&gt;
 ./tm800/user.log&lt;br /&gt;
 ./dm7000&lt;br /&gt;
 ./dm7000/daemon.log&lt;br /&gt;
 ./dm7000/syslog.log&lt;br /&gt;
 ./dm7000/user.log&lt;br /&gt;
 ./dm500be&lt;br /&gt;
 ./dm500be/daemon.log&lt;br /&gt;
 ./dm500be/syslog.log&lt;br /&gt;
 ./dm500be/user.log &lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s my son watching Cartoons:&lt;br /&gt;
 server:/var/log/hosts/dm500fe# tail -2 daemon.log &lt;br /&gt;
 Mar 17 12:53:15 dm500fe oscam: 32025B50 c anonymous (0500&amp;amp;022F00/003D/34:EF9E): found (143 ms) by server (of 1 avail 1)&lt;br /&gt;
 Mar 17 12:53:25 dm500fe oscam: 32025B50 c anonymous (0500&amp;amp;022F00/003D/34:E49B): found (147 ms) by server (of 1 avail 1)&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;m watching cricket on Sky Sports HD1:&lt;br /&gt;
 server:/var/log/hosts/tm800# tail -2 daemon.log &lt;br /&gt;
 Mar 17 12:54:23 tm800 oscam: 2CDE74D0 c anonymous (0963&amp;amp;000000/0EDA/76:11B0): found (135 ms) by server (of 1 avail 1)&lt;br /&gt;
 Mar 17 12:54:30 tm800 oscam: 2CDE74D0 c anonymous (0963&amp;amp;000000/0EDA/76:FB59): found (117 ms) by server (of 1 avail 1)&lt;br /&gt;
&lt;br /&gt;
Even the server logs are in this directory structure:&lt;br /&gt;
 server:/var/log/hosts/server# tail -2 daemon.log &lt;br /&gt;
 Mar 17 12:55:44 server oscam: B6419280 c tm800 (0963&amp;amp;000000/0EDA/76:85F5): found (111 ms) by smargo (of 1 avail 1)&lt;br /&gt;
 Mar 17 12:55:45 server oscam: B6421280 c dm500fe (0500&amp;amp;022F00/003D/34:8660): found (142 ms) by omnikey (of 1 avail 1)&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; In case you are wondering, phone is a VOIP adapter. Yes, it supports the &amp;#039;&amp;#039;&amp;#039;syslog&amp;#039;&amp;#039;&amp;#039; protocol, so I collect its logs on my server!&lt;br /&gt;
&lt;br /&gt;
{{OSCamTranslatedLinks}}&lt;/div&gt;</summary>
		<author><name>ValD</name></author>
	</entry>
</feed>