Documentation/devtools/maemo5/syslog: Difference between revisions

From Maemo Wiki
Jump to navigationJump to search
imported>ymb
imported>sixwheeledbeast
No edit summary
 
(8 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Devtools}}
{{ambox
|type=warning
|text='''Security Warning.'''<br/> syslog outputs may include sensitive information, for example [http://talk.maemo.org/showthread.php?t=88347 IMEI and phone numbers]
}}
== Description ==
== Description ==


Line 15: Line 23:


'''binary''': sysklogd, klogd
'''binary''': sysklogd, klogd
To install these, run:
<pre>
sudo gainroot
apt-get install sysklogd
</pre>


== Usage ==
== Usage ==


To start the sysklogd daemon:
To start the klogd and syslog daemons:


<pre>
<pre>
# /etc/init.d/sysklogd start
# start sysklogd
</pre>
</pre>
Note that with time syslog can fill the root filesystem completely.  When that's done by a root process like syslog, it can become so full that the device fails to boot. Several days or even couple of weeks shouldn't be a problem, but it depends on the device usage. So, '''after you don't anymore need syslog, remove it and <tt>rm /var/log/syslog*</tt>.'''
If you want to share your syslog file with public (Bugzilla?), removing IMEI and BSSID numbers is very important for security purposes.


== Links ==
== Links ==


[sysklogd man page](/development/documentation/man_pages/sysklogd.html)
[http://maemo.org/development/documentation/man_pages/sysklogd/ sysklogd man page]


[/development/documentation/man_pages/klogd.html|klogd man page](/development/documentation/man_pages/klogd.html)
[http://maemo.org/development/documentation/man_pages/klogd/ klogd man page]


== See Also ==
== See Also ==


-
-
[[Category:Fremantle]]

Latest revision as of 22:00, 18 January 2013

This article documents a developer tool.
A list of available devtools is available, together with installation instructions.
Security Warning.
syslog outputs may include sensitive information, for example IMEI and phone numbers


Description

The syslogd daemon is responsible for providing logging of messages received from programs and facilities on the local host as well as from remote hosts.

The klogd daemon listens to kernel message sources and is responsible for prioritizing and processing operating system messages. The klogd daemon can run as a client of syslogd or optionally as a standalone program.

Packages

source: sysklogd

binary: sysklogd, klogd


To install these, run:

sudo gainroot
apt-get install sysklogd

Usage

To start the klogd and syslog daemons:

# start sysklogd

Note that with time syslog can fill the root filesystem completely. When that's done by a root process like syslog, it can become so full that the device fails to boot. Several days or even couple of weeks shouldn't be a problem, but it depends on the device usage. So, after you don't anymore need syslog, remove it and rm /var/log/syslog*.

If you want to share your syslog file with public (Bugzilla?), removing IMEI and BSSID numbers is very important for security purposes.

sysklogd man page

klogd man page

See Also

-