Apche Log Series (1): Access log
Want to know when and what people are browsing the content of the site. See Apache's access log to know. The access log is the standard log for Apache, which explains in detail the contents of the Access log and the
1. Define the log formatA long time ago, there was only one log file format, which was a "public format" and many people were used to this format. The custom log format appeared later, and it seems that the custom log format is more popular, even
Apache Log Configuration
Sometimes we need to customize the format and content of the Apache default log, such as increasing or decreasing the information logged by the log, changing the format of the default log file, and so on. This article
This article directory:1.1 Error log Errorlog1.2 Access Log Customlog1.3 Log Rotation: Rotatelogs tool1.4 Log Rotation: Cronolog toolComparison of 1.5 rotatelogs and CronologThe log types that need to be logged are: Error log errorlog, access log
Transferred from: http://blog.chinaunix.net/uid-24250828-id-3198922.html1)/var/log/secure: Record log in system to access data files;For example: POP3,SSH,TELNET,FTP, etc. will be recorded here.2)/ar/log/btmp: Record login This information record,
I. Log Analysis
If Apache is installed by default, two log files are generated when the server runs. The two files are access_log and error_log.
When the default installation method is used, these files can be found
1)/var/log/secure: Record the log in system Access data file;
For example: Pop3,ssh,telnet,ftp and so on will be recorded here.
2)/ar/log/btmp: Record logged in this information record, has been encoded, so must be resolved by the last;
For
Recommend a good article about the design of the Java Log System framework article: http://soft.chinabyte.com/database/438/11321938.shtmlSummary of article Content:
The log system plays an important role in tracking debugging, program
Linux system log and log analysis The Linux system has a very flexible and powerful logging function, which can save almost all the operation records and retrieve the information we need.The default log daemon for most Linux distributions is syslog,
The Linux system has a very flexible and powerful logging function, which can save almost all the operation records and retrieve the information we need.The default log daemon for most Linux distributions is syslog, located in/etc/syslog
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.