Build a docker environment for the Distributed log platform from the beginning and build a docker
In the previous article (spring mvc + ELK build a log platform from the beginning), we will share with you how to build a distributed log Platform Based on spring mvc + redis +
When we set up the Docker cluster, we will solve the problem of how to collect the log Elk provides a complete solution this article mainly introduces the use of Docker to build Elk collect Docker cluster log
Elk Introduction
Elk is made up of three open source tools , El
first, rotation rules and configuration files:vi/etc/logrotate.conf 1, if the configuration file has "Dateext" parameter, then the log will use the date as the suffix of the log file, such as "secure-20130605". In this case, the log file name does not overlap, so there is no need to rename the
Recently just to rearrange the log server, just need to reconfigure the system logrotate, so simply write some basic configuration parameters of Logrotate, for easy access.Logrotate The main configuration parameter file is/etc/logrotate.conf, and/etc/logrotate.d/directory in the write configuration is for the usual management convenience written inside, it will eventually be/etc/ Logrotate.conf, which is then executed by wtmp. So if it is some common
Log files are an extremely important tool for Linux system security. the Logrotate program is a log file management tool. Used to split the log file, delete the old log file, and create a new log file that acts as a "dump". You can save disk space. The following is a logrota
I recently added support for Docker container logs in the Log collection feature. This article simply talks about strategy selection and how to handle it.
About the container log for DockerI'm not going to say much about Docker, it's going to be hot for two years. Recently I was also deploying some components of the
Recently found in a server MySQL audit (http://jim123.blog.51cto.com/4763600/1955487) plug-in log no data, just started to think that is configured to the problem in the database check to see that there is no problem, Later found in the MySQL audit specified file path issued by the existing rotation log, the preliminary analysis is in the use of the system logrot
OverviewMongoDB can use the standard method to implement log rotation, that is, to get to the current log and open a new one. To implement it, the Mongod instance renames the current log file by adding a UTC (GMT) timestamp at the end of the file name, then opens the new log
development, testing, and operational dimensions. Good at using Docker to build the entire DevOps Automation platform. Love the research Dockerfile, and the technology around Docker, CoreOS in-depth study.Getting started with DockerDocker introduction to Docker's advantages and what can be solved by Docker component compositionDockerfileDockerfile Concept docker
log file is deleted. 0 indicates no backup, and 5 indicates five backups are retained.Tabootext [+] list to prevent logrotate from dumping files with the specified extension. The default extension is. rpm-orig,. rpmsave, V, and ~Size size: dump a log file only when it reaches the specified size. Size can specify bytes (default), KB (sizek), or MB (sizem ).
3) logrotate. conf parsing of redhad Linux
# See "
MongoDB log Rotation
MongoDB can use a standard method to rotate logs, that is, to obtain the current log and enable a new one. To achieve this, the mongod instance renames the current log file by adding a UTC (GMT) timestamp at the end of the file name, and then opens the new log
Linux log rotation analysis [plain] # Log rotation for/etc/Cron in the default sub-cron. daily/logrotate # the log file depends on the configuration file/etc/logrotate. conf # Description of the configuration file weekly # By default, logs are cleared once a week in rotate10
MongoDB can use a standard method to rotate logs, that is, to obtain the current log and enable a new one. To achieve this, the mongod instance adds UTC (GMT
MongoDB can use a standard method to rotate logs, that is, to obtain the current log and enable a new one. To achieve this, the mongod instance adds UTC (GMT
MongoDB can use a standard method to rotate logs, that is, to obtain the current
Case: Logrotate's log rotationFor admin.log files, set logrotateRotate once a dayKeep 3 BackupsFile larger than 100k Auto rotateOn the finished file compression Create permission 0600, owner Root belongs to group rootSteps:1. First check if the Logrotate package is installed[Email protected] log]# rpm-q logrotateLogrotate-3.7.8-17.el6.x86_64Create log Admin.log b
If the time can be reversed, the real world every step can be broken down to the smallest, recorded, is the log, all things the same day.In the face of history, examine the log, you can choose to forget, you can choose to remember, experienced, can choose to cherish, also can let it dust-laden.What about Docker containers? The
Tags: mongodbAdding parameters to the configuration fileLogpath=/data/app_data/mongodb/log/mongodb.log
Logappend=trueOnly this kind of log rotation in Windows> Use admin;
Switched to DB admin
> Db.runcommand ({logrotate:1})
{"OK": 1}Linux can also be set by setting a scheduled task every morning to rotate the log0 0 * * */bin/kill-sigusr1 ' cat/data/app_data/mong
Linux Log rotation analysis [plain] # log rotation for/etc/Cron in the default sub-cron. daily/logrotate # the log file depends on the configuration file/etc/logrotate. conf # description of the configuration file weekly # by default, logs are cleared once a week in rotate 1
Tags: Linux log rotationThe effect of log rotation is to change the original log record locally to a remote device.Implementation criteria: Two Linux hosts, one is (localhost) generate logs, another (remote host) is responsible for receiving logs in the distanceLocal Host:1. Modify the linked device into a custom name:
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.