that you need to devote a lot of effort to the configuration to achieve a good presentation.Contents [Hide]
1 Basic Introduction
2 installation process
2.1 Preparation
2.2 Installing Java
2.3 Elasticsearch
2.4 Kibana
Basic IntroductionElasticsearch is currently the latest version of 1.7.1,Logstash is currently the latest version of 1.5.3Kibana is currently the latest version: 4.1.1Logstash forward
Type settings:The Redis plugin in Logstash specifies three ways to read the information in the Redis queue.
List=>blpop ( equivalent to queue )
Channel=>subscribe ( equivalent to a specific channel for publishing subscriptions )
Pattern_channel=>psubscribe ( equivalent to publishing a subscription to a group of channels )
Where list is the equivalent of a queue; a channel is equivalent to a specific channel for a subscription; Pa
The front-end time wrote an essay log4net. NOSQL +elasticsearch implements logging , because of project reasons need to integrate log root Java platform colleague integration using Logstash+kibana+elasticsearch+redis structure to achieve log statistics analysis, Therefore, a component that outputs Log4net logs to Redis is required. Did not find the ready-made, do it yourself. Reference to the log4net. NOSQL Code.Redis's C # client uses Servicestack
Recently in the use of Elkstack to the System log analysis, on the internet also saw the use of logstash cases, but found that can not be resolved properly, and then re-take the time to do regular calculations, the main code is as follows:input{file{type=> "Mysql-slow" path=> "/var/lib/mysql/slow.log" start_ position=>beginning sincedb_write_interval=>0codec=> multiline{pattern=> "^#[emailprotected]:" negate=>truewhat= > "Previous" }}}filter{if[messa
Use Logstash to collect PHP-related logs. three types of logs are collected here.
PHP error log, PHP-FPM error log and slow query log
Set in php. ini
Error_log =/data/app_data/php/logs/php_errors.log
Set in php-fpm.conf
Error_log =/data/app_data/php/logs/php-fpm_error.log
Slowlogs =/data/app_data/php/logs/php-fpm_slow.log
The PHP error log is as follows:
[29-Jan-2015 07:37:44 UTC] PHP Warning: PHP Startup: Unable to load dynamic libra
Reference: http://kibana.logstash.es/content/elasticsearch/template.htmlThe fields defined in the template are parsed according to the template, and no definitions are resolved according to the default template of ESElasticsearch is a schema-less system, but schema-less does not represent no schema, but ES will try to guess the field type mappings you want based on the underlying type of the JSON source data. If you are not satisfied with this dynamically generated mapping, or want to use some o
1. Boot automatically start Redis1), copy the Redis_init_script file under Redis directory utils to/ETC/INIT.D and rename it to REDISD, then run chmod u+x REDISD2), modify the redis.conf under the Redis root directory, change the daemonize to Yes, and change the pidfile to/var/run/redis_6379.pid3), copy the redis.conf under the Redis root directory to the/etc/redis/directory and rename it to 6379.conf4), in the console input Chkconfig REDISD on, configured for boot start, if the error is in the
Logstash Grok patternusername[a-za-z0-9_-]+user%{username}int (?: [+]? (?: [0-9]+)] base10num (? This article is from the "Wandering Fish" blog, please make sure to keep this source http://faded.blog.51cto.com/6375932/1770752Logstash Grok pattern
Recently, when reading the Data Manual, I found that there are eight types of gpio configuration in the Cortex-M3:
(1) Input simulation by gpio_mode_ain(2) gpio_mode_in_floating floating empty Input(3) gpio_mode_ipd drop-down type(4) pulling input from gpio_mode_ipu(5) gpio_mode_out_od output Leakage(6) Push and pull output of gpio_mode_out_pp(7) gpio_mode_af_od reuse of Open-drain
Logstashtcpmultihostoutput (multi-target host output ensures the stability of the TCP output link)
When cleaning logs, there is an application scenario, that is, when the TCP output, you need to switch to the next available entry when a host fails, the original tcp output only supports setting a single target host. The
Reprint Address: http://blog.csdn.net/bailyzheng/article/details/8071864about pull-up input, down input, push-pull output, open-drain output, multiplexed open-drain output, multiplexed push-pull output, and floating-space input, analog input differencesRecently on the Internet to see some people on the STM32 of eight w
PHP output Buffer control output control series functions, detailed output function
Overview
Previously researched PHP input and output buffers, but after the blog moved, the original article can not find, today saw a good article, by the way reproduced over.
Brief introduction
When it comes to
PHP Output buffer Control output Control functions and Output Functions
Overview
I have studied PHP input and output buffering before. However, after the blog was migrated, I couldn't find the original article. I saw a good article today and I will repost it by the way.
Introduction
When talking about the
The format character in C specifies the data type and output format Summary of the output item, and the Data Type output format
Conversion specifier% A (% A) floating point number, hexadecimal number, and p-(P-) Notation (C99)% C characters% D signed decimal integer% F floating point number (including float and doulbe)% E (% E) floating point number index
C ++ formatted output, C ++ output format control, and output formatWhen outputting data, for the sake of simplicity, the system usually does not specify the output format. The system uses the default format based on the data type, but sometimes you want to output data in th
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.