Editing
RSyslog
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===== Configurarea log-ului custom ===== In cazul in care modulul imfile nu este activat, acesta se poate activa prin adaugarea/de-comentarea liniei: * nano /etc/rsyslog.conf <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- -->module(load="imfile" mode="inotify") </code> Pentru fiecare fisier de log in parte se va configura receptionarea de catre local rsyslog in vederea trimiterii catre serverul central <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- -->input(type="imfile" File="/path/catre/fisier.log" Tag="apache" Severity="info" Facility="local1") </code> '''Tag:''' poate fi numele aplicatiei sau importanta log-ului<br> '''Facility:''' se folosesc etichetele "local0" pana la "local7"<br> '''Severity:''' se folosesc etichetele de mai jos <blockquote> Emergency: '''panic''' System is unusable<br> Alert: '''alert''' Action must be taken immediately<br> Critical: '''crit''' Critical conditions<br> Error: '''error''' Error conditions<br> Warning: '''warn''' Warning conditions<br> Notice: '''notice''' Normal but significant condition<br> Informational: '''info''' Informational messages<br> Debug: '''debug''' Debug-level messages </blockquote>
Summary:
Please note that all contributions to Linux Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linux Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Navigation
Main page
Aplicatii Linux
UrBackup
rSyslog
KeepAlived
DHCP
BIND DNS
USB over IP
Hardware Linux
Adaugare Disk
Extindere Disk
Docker
Instalare Docker CE
Portainer
Container UrBackup
Container PiHole
Snippets
History Command
Access Control List
Tools
What links here
Related changes
Special pages
Page information