Processes, user programs, and kernels report noteworthy events to files/var/log/messages through Syslog (3. In addition, many UNIX programs create logs. Servers that provide network services such as HTTP and FTP also maintain detailed logs.Common log files are as follows:Access-log: records the transmission of HTTP/WEB data.Acct/pacct: record user commands.Aculog: records MODEM activities.Btmp: the record of failure.Lastlog: records the last successful logon events and the last unsuccessful log
log information from syslog (some linked to syslog file) after system startup and error log, which is one of the most commonly used logs in red Hat LinuxSudolog record commands with sudoUse of the Sulog record using the SU commandSyslog logs information from a syslog (usually linked to a messages file)Utmp record each user who is currently logged onWtmp a user's permanent record of each login entry and exit timeXferlog Record FTP session/var/log/secure Security-related log information/var/log/m
Import reactor class Tailprotocol (Processprotocol ): Def __init__ (self, write_callback): Self.write = Write_callback def outreceived (self, data): Self.write ("B Egin lastlog\n ") data = [line for line in Data.split (' \ n ') if not line.startswith (' = = ')] for D in Data:self
. write (d + ' \ n ') self.write ("End lastlog\n") def processended (self, Reason): if Reason.value.exitCode!= 0: Log.msg
Linereceived method for each line break. Later we can enhance the linereceived to parse the command.Twisted implements its own log system, where we configure the log output to stdoutWhen the reactor.listentcp is executed we bind the factory to port 9999 to start listening.[Email protected]:~/tmp$ python code1.py 2011-08-29 13:32:32+0200 [-] Log opened. 2011-08-29 13:32:32+0200 [-] __main__. MyFactory starting on 99992011-08-29 13:32:32+0200 [-] Starting factory Use twisted to invoke external pr
. A service program used to control, acquire, and manage ACPI state.
9)/var/run/utmp records the user who is now logged in;
/var/log/lastlog records the last login information of each user;
One)/var/log/btmp log the wrong login attempt;
/VAR/LOG/DMESG kernel log;
/var/log/cpus CPU processing information;
/var/log/syslog Event record monitoring program log;
/var/log/auth.log user authentication log;
/var/log/daemon.log system process log;
/var/log/ma
Btmp record of failed records
Lastlog Record of recent successful logon events and last unsuccessful login
Messages records information from Syslog (some linked to the syslog file)
Sudolog records using Sudo's command
Sulog record use of the SU command
Syslog Records information from syslog (usually linked to messages files)
Utmp record each user currently logged in
Wtmp a permanent record of entry and exit time for each user login
Xferlog L
, the following log files are all driven by syslog:
/Var/log/boot. log: records the system events during the boot process, that is, information displayed during the Linux system boot self-check process.
/Var/log/lastlog: records information such as the time when the last user successfully logs in and the logon IP address.
/Var/log/messages: records common system and service error messages of Linux operating systems.
/Var/log/secure: Linux system secur
Generic messages are generally used to provide useful information.
Debug
The information that is generated by the debug program.
None
No priority, no log messages are logged.
Common Log filesThe system log is managed by a service called syslog, such as the following log files are driven by the Syslog log service:/var/log/boot.log: Recorded the system in the boot process events, is the Linux system post process display information/var/log/
can enhance the linereceived to parse the command.
Twisted implements its own log system, where we configure the log output to stdout
When the reactor.listentcp is executed we bind the factory to port 9999 to start listening.
user@lab:~/tmp$ python code1.py2011-08-29 13:32:32+0200 [-] Log opened.2011-08-29 13:32:32+0200 [-] __main__. MyFactory starting on 99992011-08-29 13:32:32+0200 [-] Starting factory
Use twisted to invoke external processes
Next we add a command to the previous server th
, you should pay more attention to this file. To have the system generate the log file, go to/etc/syslog. add the following to the conf file :*. warning/var/log/syslog this log file records information such as the wrong password, Sendmail issue, and su command execution failure recorded by login during user logon. This log file records the recent successful logon events and the last unsuccessful logon events, which are generated by login. This file is a binary file and needs to be viewed using t
, but you can configure/etc/syslog. conf to allow the system to generate this log file. It is different from the/etc/log/messages log file. it only records warning information, which is often the information of system problems. Therefore, you should pay more attention to this file. To have the system generate the log file, go to/etc/syslog. add the following to the conf file :*. warning/var/log/syslog this log file records information such as the wrong password, Sendmail issue, and su command ex
attention to this file. To have the system generate the log file, go to/etc/syslog. add the following to the conf file :*. warning/var/log/syslog this log file records information such as the wrong password, Sendmail issue, and su command execution failure recorded by login during user logon. This log file records the recent successful logon events and the last unsuccessful logon events, which are generated by login. This file is a binary file and needs to be viewed using the
break, and the lineReceived method is triggered every line break. Later, we can enhance LineReceived to parse the command.
Twisted implements its own log system. Here we configure to output logs to stdout.
When reactor. listenTCP is executed, we bind the factory to port 9999 to start listening.
user@lab:~/TMP$ python code1.py2011-08-29 13:32:32+0200 [-] Log opened.2011-08-29 13:32:32+0200 [-] __main__.MyFactory starting on 99992011-08-29 13:32:32+0200 [-] Starting factory
Use Twisted to call e
most recent successful logon event and the last unsuccessful logon event that was generated by login. Each time a user logs on, the file is a binary file and needs to be viewed using the Lastlog command, which displays the login name, port number, and last logon time based on the UID. If a user has never logged in, it is displayed as "**never logged in**". This command can only be performed with root privileges. Simply enter the
terminates, each process writes a record to the process Statistics file (Pacct or Acct. Process statistics are used to provide command usage statistics for basic services in the system.
Error Log -- executed by Syslogd (8. Various system Daemon Processes, user programs, and kernels report noteworthy events to files/var/log/messages through Syslog (3. In addition, many UNIX programs create logs. Servers that provide network services such as HTTP and FTP also maintain detailed logs.
Common log fi
Statistics file (pacct or acct. The policy of process Statistics is to order application statistics for the fundamental work in the system. Fault diary-implemented by syslogd (8. Various System Guard processes, user measures and the kernel through syslog (3) to the file/var/log/messages claims worth noting the accident. There are many other UNIX methods to create a diary. Such as HTTP and FTP provide network work tools also maintain a specific diary. The commonly used log files are as follows:
update the wtmp and utmp files, the system administrator can track who is logged on to the system at a time. Process Statistics-implemented by the system kernel. When a process stops, write a record for each process to the process Statistics file (pacct or acct. The policy of process statistics is to order application statistics for the fundamental work in the system. Fault diary-implemented by syslogd (8. Various system Guard processes, user measures and the kernel through syslog (3) to the fi
administrator to track who is logged on to the system at any time.
Process statistics-executed by the system kernel. When a process terminates, each process writes a record to the process Statistics file (pacct or acct. Process statistics are designed to provide basic services in the system.CommandUsage Statistics.
Error Log -- executed by syslogd. Various system Daemon Processes, user programs, and kernels report noteworthy events to files/var/log/messages through syslog. In addition, many UNI
(pacct or ACCT. Process statistics are used to provide command usage statistics for basic services in the system.
Error Log -- executed by syslogd (8. Various system Daemon Processes, user programs, and kernels report noteworthy events to files/var/log/messages through Syslog (3. In addition, many UNIX programs create logs. Servers that provide network services such as HTTP and FTP also maintain detailed logs. Common log files are as follows:
Access-log records HTTP/web transmission
Acct/
-- executed by syslogd8. Various system Daemon Processes, user programs, and kernels report noteworthy events to files/var/log/messages through syslog3. In addition, many UNIX programs create logs. Servers that provide network services such as HTTP and FTP also maintain detailed logs.
Common log files are as follows:
Access-log records HTTP/web transmission
Acct/pacct record user commands
Aculog records MODEM activities
Btmp record failure record
Lastlog
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.