Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Pagina non alterabile
  • Informazioni
  • Allegati
  • Differenze per "AmministrazioneSistema/LogDiSistema"
Differenze tra le versioni 6 e 7
Versione 6 del 10/04/2007 12.15.11
Dimensione: 1895
Autore: BlackDesert
Commento:
Versione 7 del 10/04/2007 12.21.27
Dimensione: 3993
Autore: BlackDesert
Commento:
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 23: Linea 23:
--- == Destinatari della Guida ==

Questa Guida è destinata agli utenti che abbiano un'esperienza sufficiente nell'utilizzo di GNU/Linux ed in particolare una certa esperienza nell'utilizzo degli strumenti da riga di comando e nella modifica dei files di configurazione del sistema attraverso l'uso di un editor di testo da riga di comando.
Ulterio risorse sugli editor di testo da riga di comando e sui comandi base del sistema:

 * ComandiBase
 * EditorDiTesto

== System Logs ==
Linea 28: Linea 36:
-----
Linea 29: Linea 38:
This section of the guide addresses so-called system logs, or logs which deal primarily with the functioning of the Ubuntu system, and not necessarily with additional applications added by the System Administrator, or users of the system. Examples of such logs include the logging of authorization mechanisms, running system daemons, system messages, and the all-encompassing system log itself, or syslog as it is known. (not to be confused with the actual syslogd daemon which we'll cover later).
Authorization Log
Linea 30: Linea 41:
The Authorization Log tracks usage of authorization systems, that is, all of the Ubuntu mechanisms for authorizing users which prompt for user passwords, such as the Pluggable Authentication Module (PAM) system, the sudo command, remote logins to sshd, and so on. The Authorization Log file may be accessed at /var/log/auth.log. This log is useful for learning about user logins, and usage of the sudo command on your Ubuntu system, for example.
Linea 31: Linea 43:
You may examine the log, from its most recent rotation point, (if applicable) one page per screen, using a command such as the following from a terminal prompt:
Linea 32: Linea 45:
less /var/log/auth.log
Linea 33: Linea 47:
Press the SPACE BAR to advance to the next page, or the ENTER key to advance one line at-a-time. The b key will scroll backwards one full page, and the q quits the less utility.
Linea 34: Linea 49:
Specific information may be accessed from the Authorization Log by using such commands as grep, and less. For example, to see only information in the Authorization Log pertaining to sshd logins, you might use a command such as the following at a terminal prompt:
Linea 35: Linea 51:
grep sshd /var/log/auth.log | less
Linea 36: Linea 53:













---

Traduzione di https://help.ubuntu.com/community/LinuxLogFiles?highlight=%28log%29

  • Log = registrazione - log file
  • Logged = registrato

Introduzione

Uno degli aspetti che rendono GNU/Linux un grande sistema operativo è che, in teoria, tutto ciò che avviene al/o dentro il/ sistema viene in qualche modo registrato (logged). Queste informazioni hanno un valore inestimable per utilizzare il sistema in modo cosciente, e dovrebbero essere una delle prime risorse utilizzate per la risoluzione dei problemi e la ricerca delle soluzioni. I file di logs dicono tutto quello che bisogna sapere, naturalmente a patto che si abbia idea di dove guardare...

Il vostro sistema Ubuntu fornisce informazioni essenziali su eventi, operazioni ed altre funzionalità attraverso la registrazione di diversi files di log.

Questi "log files" tipicamente sono semplice file di testo in formato ASCII standard, e la maggior parte di essi si trova nella sottodirectory di sistema /var/log

La maggior parte dei log files è generata dal demone di sistema syslogd, altri log files sono generati direttamente dalle applicazioni che ne salvano una propria copia direttamente nei files di log situati nella sottodirectory /var/log.

Questa Guida descrive i principali files di log ed il loro contenuto con degli esempi. Inoltre, si descrivono alcuni esempi sul modo per estrarre delle informazioni utili da queste registrazioni, usando semplicemente gli strumenti disponibili da riga di comando, come grep e less.

Questa guida, inoltre, descrive demone di registrazione del sistema, syslogd, la sua configurazione ed il concetto di rotazione dei log. Ulteriori informazioni sono disponibili nella sezione Risorse di questa guida.

Destinatari della Guida

Questa Guida è destinata agli utenti che abbiano un'esperienza sufficiente nell'utilizzo di GNU/Linux ed in particolare una certa esperienza nell'utilizzo degli strumenti da riga di comando e nella modifica dei files di configurazione del sistema attraverso l'uso di un editor di testo da riga di comando. Ulterio risorse sugli editor di testo da riga di comando e sui comandi base del sistema:

System Logs


This section of the guide addresses so-called system logs, or logs which deal primarily with the functioning of the Ubuntu system, and not necessarily with additional applications added by the System Administrator, or users of the system. Examples of such logs include the logging of authorization mechanisms, running system daemons, system messages, and the all-encompassing system log itself, or syslog as it is known. (not to be confused with the actual syslogd daemon which we'll cover later). Authorization Log

The Authorization Log tracks usage of authorization systems, that is, all of the Ubuntu mechanisms for authorizing users which prompt for user passwords, such as the Pluggable Authentication Module (PAM) system, the sudo command, remote logins to sshd, and so on. The Authorization Log file may be accessed at /var/log/auth.log. This log is useful for learning about user logins, and usage of the sudo command on your Ubuntu system, for example.

You may examine the log, from its most recent rotation point, (if applicable) one page per screen, using a command such as the following from a terminal prompt:

less /var/log/auth.log

Press the SPACE BAR to advance to the next page, or the ENTER key to advance one line at-a-time. The b key will scroll backwards one full page, and the q quits the less utility.

Specific information may be accessed from the Authorization Log by using such commands as grep, and less. For example, to see only information in the Authorization Log pertaining to sshd logins, you might use a command such as the following at a terminal prompt:

grep sshd /var/log/auth.log | less

---