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"