Difference between pages "Installing a Logger" and "Template:ArticleFooter"

(Difference between pages)
(Installation and adding to runlevel)
 
 
Line 1: Line 1:
== Introduction ==
+
{{Tip|[[Support Funtoo]] and help us grow! '''Donate $15 per month and get a free SSD-based [[Funtoo Hosting|Funtoo Virtual Container]].'''}}
In case you ever need to view important system messages, it is a wise idea to install a system logger. System loggers create log files that contain system messages, and stores these logs in <code>/var/log</code>. Several different loggers exist. Listed below are some of the more commonly used loggers:
+
</div><div class="col-xs-12 col-md-3">{{#vardefine:Summary|{{#show:{{FULLPAGENAME}}|?Summary}}}}
* '''{{Package|app-admin/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." This is a good, light-weight logger that is often used for desktop systems. ([http://metalog.sourceforge.net Metalog homepage])
+
{{#vardefine:Author|{{#show:{{FULLPAGENAME}}|?Author|link=none}}}}
* '''{{Package|app-admin/syslog-ng}}''' - "syslog-ng is the trusted log management infrastructure for hundreds of thousands of users worldwide. Organizations use syslog-ng to reliably and securely collect, process and store log messages from across their IT environments." syslog-ng is often used when more advanced logging functionality is required, and is highly customizable. ([http://balabit.com/network-security/syslog-ng Syslog-ng homepage])
+
{{#vardefine:Icon|{{#show:{{FULLPAGENAME}}|?Icon}}}}
* '''{{Package|app-admin/rsyslog}}''' - "rsyslog is an alternative logger to syslog-ng and offers many benefits over syslog-ng. rsyslog is also the default logger for the latest versions of Red Hat Enterprise Linux, as well as many other Linux distributions." ([http://wiki.archlinux.org/index.php/rsyslog Arch wiki page])
+
{{#widget:ArticleBio|body={{#show: {{#var:Author}} | ?Bio }}|user={{#var:Author|}}|icon_url={{#if:{{#var:Icon|}}|{{filepath:{{#sub:{{#var:Icon}}|5}}|80}}|http://www.gravatar.com/avatar/{{#show: {{FULLPAGENAME}} | ?Gravatar MD5}}/?s=80&d=retro&r=g}}}}
 
+
<div class="bs-head" style="text-decoration: underline; margin-bottom: 15px;">More Articles</div>
== Installation and adding to runlevel ==
+
{{#ask:[[Category:Articles]]
To install a logger, run the following command:
+
|format=category
<console>
+
|link=all
###i## emerge metalog
+
|headers=show
 
+
|searchlabel=... further results
These are the packages that would be merged, in order:
+
|columns=1
 
+
}}
Calculating dependencies... done!
+
</div></div></div>
[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] ##i## yes
+
</console>
+
 
+
After installing the logger, we have to add its initialization script to RC’s default runlevel. The default runlevel, defined at <code>/etc/runlevels/default</code>, 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:
+
<console>
+
###i## rc-update add metalog default
+
* service metalog added to runlevel default
+
###i## rc
+
* Starting metalog ...
+
</console>
+
 
+
== Stopping the service ==
+
If you need to stop the service manually, you can run its initialization script directly from <code>/etc/init.d</code>:
+
<console>
+
###i## /etc/init.d/metalog stop
+
* Stopping metalog ...
+
</console>
+
 
+
[[Category:System]]
+

Revision as of 09:09, December 28, 2014

Tip

Support Funtoo and help us grow! Donate $15 per month and get a free SSD-based Funtoo Virtual Container.

</div>


About the Author

<span class="smw-highlighter" data-type="4" data-state="inline" data-title="Error"><span class="smwtticon warning"></span><span class="smwttcontent"><ul><li>Some part &quot;&lt;nowiki&gt;[[...]]&lt;/nowiki&gt;&quot; of the query was not understood.</li> <!--br--><li>Some subquery has no valid condition.</li></ul></span></span>

More Articles

A

B

F

G

K

L

M

O

P

S

T

W

X

Z


</div></div>