operationLog files are added to the appropriate configuration fileExit the database first and then enter the configuration fileVim/etc/my.cnfLast inserted in [mysqld]Log-error=/usr/local/mysql/data/mysql_error.log #错误日志General_log=no #开启通用日志General_log_file=/usr/local/mysql/data/mysql_general.log #通用日志Log_bin=mysql-bin #二进制日志Slow_query_log=on #开启慢日志Slow_query_log_file=mysql_slow_query.log #生成慢日志long_query_time=1 #超出时间, 1sthen restart the database, en
Start
;;
Stop
Stop
;;
Status
Status-p $pidfile $syslog _ng
Retval=$?
;;
Restart
Stop
Start
;;
*)
echo $ "Usage: $prog {start|stop|restart|status}"
retval=2
Esac
Exit $RETVAL
5. Boot from bootClick (here) to collapse or open
chmod a+x/etc/init.d/syslog-ng
Killall syslogd
Chkconfig--add Syslog-ng
Chkconfig Syslog-ng on
Service Syslog-ng Start
At this point, the GRAYLOG2 configuration is complete. Everyone put the syslog to Graylog
In the development, we usually want to do a unified management of the output of the log, the following is recommended for everyone a log output class, in the development phase only need to set the debug constant to True, the production environment will debug to false to control the output of the log. Do not say anythin
= Express (); App.configure ("Worker"); App.use (Log4js.uselog ()); So it was done.We can do this when we need to record a log somewhere.logger parameters in a random...Log.info ("..."); Log.error ("...")5, written in the backLOG4JS also has a lot of fun content, such as SMTP. This is a useful feature, such as when an item has an error and you want the program to send you an email informing you that the feature will come in handy.In addition, I
Second, the OMF management of the log file
Log file management parameters: Db_create_online_log_dest_n
Db_create_online_log_dest_n:oracle the default path when you create an online log file and a control file without explicitly specifying a path
--View the parameters of t
Objective
In this series of the fourth: Log management, because the work of the log is the default configuration, nor in-depth understanding, because the deployment process directly used linux in the 输出重定向 functions, such as java -jar xx.jar > app.log 2>1 direct output to a log file. So there is no serious co
In the debugging program, through the log staging to troubleshoot the bug is an important means, it can be described as a tool for debugging the program.About Log ManagementAs the application components become more, then each coder to the output log a variety of, there are write stdout, write stderr, have written to the syslog, also write to Xxx.log. Then this wi
list WitAbsolute path Letter capitalization, alias type all= () default root (All) for all users% User group! Command Forbidden CommandLog Audit ProjectThe suo command log records the operation of the sudo command# Rpm-aq | Egrep "Sudo|rsyslog"Sudo-1.8.6p3-12.el6.x86_64Rsyslog-5.8.10-8.el6.x86_64# echo "Defaults Logfile=/var/log/sudo.log" >>/etc/sudoers[Email protected] ~]# visudo-c/etc/sudoers: Parse corr
protected] php-fpm.d]# vim/data/wwwroot/test.com/1.phpecho "This is a test php of Open_basedir";Test:[Email protected] php-fpm.d]# curl-x127.0.0.1:80 test.com/1.phpThis is a test php of Open_basedir12.24 PHP-FPM Process ManagementPHP-FPM in the pool configuration parameter resolution:[Email protected] php-fpm.d]# vim www.conf[WWW]Listen =/tmp/php-fcgi.sockListen.mode = 666user = PHP-FPMGroup = PHP-FPMPM = dynamic; Defines how the process is started (dynamic, static); The following configuration
("Exiting gas station search");
Here "is available" means the ability to output logger information.
When naming a logger instance, there is no limit to which you can take any name you are interested in. In general, it is recommended to name the logger instance where the class is located, which is a more effective logger naming method at the moment. This allows each class to establish its own log information for easy
First, log cuttingPrinciple:1, CP a slow log backup2, clear the principle of slow log3, write a script, every day, so OKSecond, find the slow log in the log1, do a log cutting (slow log file is small)2. Find a slow log at a timeLo
Binding for Java.util.logging, also referred to as JDK 1.4 logging
Slf4j-nop-1.7.9.jar
Binding for NOP, silently discarding all logging.
Slf4j-simple-1.7.9.jar
Binding for simple implementation, which outputs all events to System.err. Only messages of level INFO and higher is printed. This binding is useful in the context of small applications.
Slf4j-jcl-1.7.9.jar
messageSpecify the level:* indicates all levelsNone No LevelPriority directly specifies a level that contains all above this level=priorty This level onlyDefine the level and category of a log to be specified by: category. Level log storage path.Facitlity.priority TargetThe mechanism of the pass distribution:* AllList! Take counterSuch as:Mail.info/var/log/maill
When you log in to the router management interface, you are prompted have no authority to access this device, and the possible causes and resolutions are as follows:
1 , the router being accessed as a level two router, and Remote Web Management open, the first level router opens the Web port of the virtual server mapping level two router. The extranet comput
Linux server log management-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Logs are very important for security. They record all kinds of events that occur in the system every day. You can use them to check the cause of the error or the traces left by the attacker when the system is attacked. The main functions of logs are audit and monitoring
the target database with the SYS user as SYSDBA, and then execute the archivelog List command to view the database archive mode:Close the database and start the database to Mount stateUse the ALTER DATABASE Archivelog command to set the database to archive mode and verify that the archive mode of the database has changedGet archived log informationThe data dictionary view helps you get database configuration information. Users get archived
. Query logAll SQL statements contain select.How to Save: File or table (General_log)To be permanently active, you need to set the switch parameter in the profile to enable, default off (off)The file location parameter is General_log, the parameter has been displayed set to 1 or not set to be enabled, and the setting to 0 indicates disabled.Related parametersGeneral_log_file, if no value is specified, or the value of the setting Log_output is not displayed, it is placed by default in the DataDir
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.