"AppServer"--->udp---> "logwriteserver"

Source: Internet
Author: User

W

Should the "write" of the log be separate to a local area network or a group of servers dedicated to "write log"? This allows the "app server" to handle the user's requests professionally, rather than reducing the user experience because of "write logs or even parse logs asynchronously"?

Spencer Teacher

In fact sort of search to redo statistics of these several functions awk itself can do
But I can't remember that much of AWK's syntax, and it's straightforward to use a simpler command-tube process.

Apache Log Analysis
A row of commands statistics "number of independent IP users who have accessed login.html this file"

146/242 = 60% of users who have logged in to ERP today have already cleared the browser cache

Log automatic segmentation with logrotate, generate a log file every day

This is the log file.
No date suffix is the latest log file

Some of the cumulative may produce a lot of log files, you can use Logrotate automatic sub-volume

You can define the volume by day, week, month

Some large-scale systems, log files are divided by hours or even minutes
And then use asynchronous programs to process these massive log files.

"AppServer"--->udp---> "logwriteserver"

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.