Nginx splits logs by day, and nginx splits logs
#! /Bin/bash # Cut and compress nginx logs by day, add crontab to cut at every day # Author: fafu_li # Time: 2015.08.15source/etc/profile # load the system environment variable source ~ /. Bash_profile # load the user environment variable set-o nounset # reference the uninitialized variable and exit set-o errexit #
Use shell commands to analyze statistics logs and shell commands to collect statistics logs
When you need to collect user log information and analyze user behavior, you can use shell to conveniently retrieve a lot of data and place it in excel for statistics.
For example, for access with the address loadCustomProcess included in the statistics log, sort by access time consumption:Grep "loadCustomProcess"/ho
Self-made mini logs and self-made logs
When writing website programs, you must write exceptions to logs. Log4Net is commonly used, but I do not have high requirements, you only need to record the exceptions and information in the website directory of the website server, so I wrote one by myself.
public static class Logger { private static readonly o
In the mysql database, count the logs of the current day:
For example, the Date Field of the bean database is usedate.
Calculate the log SQL statement for the current day:
select * from bean where date(usedate) = curdate();
Curdate () indicates the date of the current day.
If it indicates the data of the previous day, you cannot use curdate ()-1, because when the date is the beginning of the month, curdate ()-1 is not the last date of the previous mo
Solve the Error 500-When Joomla logs on to the background, and joomla logs on to the background 500-
Joomla has been logged on normally. suddenly one day, my friend told me that the login failed and the following error 500 was displayed.
This makes me very confused. On the one hand, it is really uncomfortable to solve the problem of web applications on windows servers. Machines can not log on like Linux, b
Apache2.4.4 Automatically splits logs and generates logs by year, month, and day.
If the size of the log file is limited to 800 mb and the file size is exceeded, you can set it as follows:
CustomLog "|/www/lanmps/apache/bin/rotatelogs/www/wwwLogs/logs/www.lanmps.com/policy_0000m_0000d.access.log 86400 800 M" common
Apache common logs and log4j logs
1. Three purposes of the log
A. Monitoring the variables in your code the synchronization of the data is recorded in the file for other system analysis.
B. Tracking code run track, to do after the basis of audit
C. Acting as a debugger in the development environment, output to a file or console
2. Apache provides a common log interface that enables the implementation of the
Describes how to obtain PHP error logs and how to obtain php logs.
There are many methods to obtain error logs in PHP. I will give you a brief introduction to how to solve these problems. The following code will show you how to help you.
For php errors, we must be clear about the types, when to trigger, and what is the returned value.
If you do not distinguish b
Python-filter Mysql slow logs and python-filter mysql logs
##=================================================== ======================================== ##
First joke:
My new girlfriend asked me to go to his house to play. I thought it was not good to be empty-handed, so I told her that I had to buy something. Who knows? She suddenly said, "Don't buy, There is a box at home!
##=============================
Sass learning logs and sass logs
1. What is SASS?
SASS is a CSS development tool. It provides a lot of convenient writing methods, greatly saving designers time and making CSS development easy and maintainable. This article summarizes the main SASS methods. Our goal is that, with this article, you do not need to read official documents for routine use.
Ii. Installation and Use
2.1 installation
SASS is writt
DISCUZ official forum imitating development logs (2) and discuz logs
Connect the log: http://www.cnblogs.com/gcs1995/p/4091159.html
It has been almost two months since I briefly analyzed the project I wrote down. I have learned many new technologies over the past two months:
Database Technology:
Oracle and mysql
Framework technology:
Hibernate, mybatis, strus2 [learning]
Text Markup Language:
Html5
Read books
The law of Construction
3/26
15:20
19:50
30
240
Perfect program, write blog
Write a program to find the maximum number of sub-arrays and 2
3/27
9:30
11:00
90
Write a perfect program
Write the program to find the largest Subarray and 2, perfect the concurrent blog
19:00
21:00
20
100
Read books
The law of Construction
Bug log:
Disable the "via protocol" problem resolution.The VIA protocol deactivation method: Start with program->microsoft SQL Server 2005-> Config tool->sql Server Configuration Manager--opens after you find the SQL The protocol to the Server 2005 Network Configuration "->mssqlserver property" disables the "via Protocol" in the property box on the right!The request failed or the service did not respond in a timely manner. For more information, see event logs
[The log of the database 'tempdb' is full] The latest solution, tempdb logThe log of the database 'tempdb' is full.Execute SQL statements. Temporary tables are not used in the middle.Prompt server: Message 9002, Level 17, status 2, Row 1The log of the database 'tempdb' is full. Back up the transaction logs of the database to release some log space.I found a solution on the Internet, which roughly solved the problem by expanding the log file size of th
Implement log4cplus to write logs in a single process, single thread, or single process, and separate logs by size
Filter log information based on script configurationIn addition to program configuration of the log environment, log4cplus implements script-based configuration through the PropertyConfigurator class. PassThe script can complete the configuration of logger, appender, and layout, so it can solve
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.