Difference between pages "User:Fearedbliss" and "Installing a Logger"

(Difference between pages)
 
 
Line 1: Line 1:
{{Person
+
== Introduction ==
|Full name=Jonathan Vasquez
+
In case you ever need to view important system messages, it is a wise idea to install a system logger. System loggers create a log in ‘’/var/log’’ Several different loggers exist. Listed below are some of the more commonly used loggers:
|Email=jvasquez1011@gmail.com
+
* '''Metalog''' - "Metalog is a modern replacement for syslogd and klogd. The logged messages can be dispatched according to their facility, urgency, program name and/or Perl-compatible regular expressions."
|Nick=fearedbliss
+
* '''Syslog-ng'''
|Geoloc=40.6212119, -74.0329499
+
* '''Rsyslog'''
|Location name=Brooklyn, NY, United States of America
+
 
|Roles={{Role
+
== Installation and adding to runlevel ==
|Role type=User
+
To install a logger, run the following command:
|Role desc=-
+
<console>
|Start date=2013/01/19
+
# ##i## emerge --ask metalog
}}
+
 
|Blogs=
+
These are the packages that would be merged, in order:
|Maintains={{Ebuild
+
 
|Ebuild=bliss-kernel
+
Calculating dependencies... done!
|Overlay=Funtoo
+
[ebuild  N    ] app-admin/metalog-3-r1  USE="unicode" 353 kB
}}{{Ebuild
+
 
|Ebuild=bliss-boot
+
Total: 1 package (1 new), Size of downloads: 353 kB
|Overlay=Funtoo
+
Would you like to merge these packages? [Yes/No] # ##i## yes
}}{{Ebuild
+
 
|Ebuild=bliss-initramfs
+
</console>
|Overlay=Funtoo
+
 
}}{{Ebuild
+
After installing the logger, we have to add its initialization script to RC’s default runlevel. The default runlevel, defined at /etc/runlevels/default, contains symbolic links to all system initialization scripts that are run by default. To add the logger to the runlevel and then start the logger, run the following:
|Ebuild=bittorrent-sync
+
<console>
|Overlay=Funtoo
+
# ##i## rc-update add metalog default
}}{{Ebuild
+
* service metalog added to runlevel default
|Ebuild=alt-sources
+
# ##i## rc
|Overlay=Funtoo
+
* Starting metalog ...
}}
+
</console>
}}
+
 
 +
== Stopping the service ==
 +
If, for whatever reason, you need to stop a service manually, you can run its initialization script directly from /etc/init.d:
 +
<console>
 +
# ##i##/etc/init.d/metalog stop
 +
* Stopping metalog ...
 +
</console>
 +
[[Category:System]]

Revision as of 01:21, October 19, 2013

Introduction

In case you ever need to view important system messages, it is a wise idea to install a system logger. System loggers create a log in ‘’/var/log’’ Several different loggers exist. Listed below are some of the more commonly used loggers:

  • Metalog - "Metalog is a modern replacement for syslogd and klogd. The logged messages can be dispatched according to their facility, urgency, program name and/or Perl-compatible regular expressions."
  • Syslog-ng
  • Rsyslog

Installation and adding to runlevel

To install a logger, run the following command:

#  emerge --ask metalog

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-admin/metalog-3-r1  USE="unicode" 353 kB

Total: 1 package (1 new), Size of downloads: 353 kB
Would you like to merge these packages? [Yes/No] #  yes

After installing the logger, we have to add its initialization script to RC’s default runlevel. The default runlevel, defined at /etc/runlevels/default, contains symbolic links to all system initialization scripts that are run by default. To add the logger to the runlevel and then start the logger, run the following:

#  rc-update add metalog default
 * service metalog added to runlevel default
#  rc
 * Starting metalog ...

Stopping the service

If, for whatever reason, you need to stop a service manually, you can run its initialization script directly from /etc/init.d:

# /etc/init.d/metalog stop
 * Stopping metalog ...