There is no route to the host this problem is common, mostly by the machine's firewall not shutting down.Ubuntu
View firewall status
ufw status
Shutting down the firewall
disableCentos6
View firewall status
service iptables status
Shutting down the firewall
off Centos7
View firewall status
firewall-cmd --state
Shutting down the firewall
stop firewalld.serviceCurl: (7) Failed connect to 172.16.100.199:
Centos7 install ELK and centos7 install elk1. Overview
ELK Introduction ELK is short for Elasticsearch + Logstash + Kibana:Elasticsearch is a Lucene-based search server. It provides a distributed full-text search engine with multi-user capabilities, developed based on javaLogstash is a tool for receiving, processing, and forwarding logs.Kibana is a browser-base
1. Create Elk users
You must create a elk user, and if you do not create a dedicated user, the following steps will cause an error when the Elk component is turned on by the root user. 2. Switch Elk User, download the Elk component in the
Centos7 single-host ELK deployment and centos7 elk deploymentI,Introduction1. 1Introduction
ELK is composed of three open-source tools:
Elasticsearch is an open-source distributed search engine that features: distributed, zero-configuration, automatic discovery, automatic index sharding, index copy mechanism, restful APIs, and multiple data sources, automatically
: 9200discovery.zen.ping.unicast.hosts: ["10.0.0.101:9300"]discovery.zen.minimum_master_nodes: 1[[emailprotected] config]#
3.3 modify the configuration file/etc/security/limits. conf and/etc/sysctl. conf as follows:
# echo -e "* soft nofile 65536\n* hard nofile 131072\n* soft nproc 2048\n* hard nproc 4096\n" >>/etc/security/limits.conf# echo "vm.max_map_count=655360" >>/etc/sysctl.conf# sysctl -p
3.4 create data and log directories and grant them to Elk
Log System ELK usage (4) -- kibana installation and use, elk -- kibanaOverview
Log System ELK usage (1)-How to UseLog System ELK usage (2)-Logstash Installation and UseLog System ELK usage (III)-elasticsearch InstallationLog System ELK
template:
# Note: The command is executed in the same location as the JSON template
[root@linuxprobe src]# curl-xput ' Http://localhost:9200/_template/filebeat?pretty '- D@filebeat-index-template.json
{
"acknowledged": true
}
Now our Elk server is ready to receive filebeat data and move to set filebeat on each client server. Set Filebeat (add Client server)
Follow these steps for each CentOS or Rhel 7
unsuccessful.Check for error messages with two articles
[1]: Max file descriptors [4096] for elasticsearch process are too low, increase to at least [65536]
[2]: Max virtual m Emory areas Vm.max_map_count [65530] is too low, increase to at least [262144]
The first error check indicates that the default value of the maximum file descriptor for the Elk User boot Elasticsearch is 4096 too small and needs to be adjusted to 65536.We modify the/etc/secur
environment support, because the client is using the Filebeat software, it does not rely on the Java environment, so do not need to install
Second, Elk service-side Operation1. Installing JDK8 and Elasticsearch
RPM-IVH jdk-8u102-linux-x64.rpm
Yum Localinstall elasticsearch-2.3.3.rpm-y
Start the service
Service Elasticsearch Start
Chkconfig Elasticsearch on
Check Service
RPM-QC Elasticsearch
/etc/elasticsearch/elasticsearch.yml
/etc/elas
CentOS 7.x install ELK
The first time I heard about ELK, it was Sina's @ ARGV that introduced the internal use of ELK and the scenario. At that time, it was very touched. It was so convenient to collect logs and display them, with such a tool, you have no effect after doing bad things and deleting logs.
Many companies have shown that they are very concerned about
First install the JDK, I use OPEN-JDK hereYum List all | grep JDKYum-y install Java-1.8.0-openjdk-devel, java-1.8.0-openjdk.x86_64 and java-1.8.0-openjdk-headless.x86_64 as dependent packagesInstallationecho "Export Java_home=/usr/bin" >/etc/profile.d/java.shEXEC bashYum-y Install elasticsearch-1.7.2.noarch.rpm installation ElasticsearchVIM/ETC/ELASTICSEARCH/ELASTICSEARCH.YML Editing a configuration fileCluster.name:elasticsearch named cluster for ElasticsearchNode.name: "Node1" is named for thi
:+disableexplicitgc-dfile.encoding=utf-8-djna.nosys=true- des.path.home=/data/elk/elasticsearch-cp/data/elk/elasticsearch/lib/elasticsearch-2.4.2.jar:/data/ Elk/elasticsearch/lib/*org.elasticsearch.bootstrap.elasticsearchstart 6) test whether the normal access, if accessed by the browser, the interface appears similar to the display below, indicating that Elastic
/dashboard/index-plugins/discover/index-plugins/doc/index-plugins/kibana/index-plugins/markdow N_vis/index-plugins/metric_vis/index-plugins/settings/index-plugins/table_vis/index-plugins/vis_types/index-
Plugins/visualize/index
Okay, let's write a docker-compose.yml for easy construction.
Ports, and so on, you can modify the path of the configuration file according to your own requirements. The overall system configuration requirements are higher please select the machine with better conf
Open source real-time log analytics Elk Platform Deploymenttime 2015-07-21 17:13:10 51CTO recommended blog post Original http://baidu.blog.51cto.com/71938/1676798 ThemeLogstashElastic SearchOpen SourceOpen source real-time log analytics Elk Platform DeploymentLogs primarily include system logs, application logs, and security logs. System operations and developers can use the log to understand the server har
0, Preface
This article is mainly referred to dockerinfo this article Elk log system, which Docker configuration file is mainly provided by the blog, I do just on the basis of this article, deleted part of this article does not need, while noting the construction process of some problems.
About Elk, this article does not do too much introduction, detailed can view the official website, here first posted our
/data
path.logs:/data/elk/logs
network.host:0.0.0.0
http.port:9200
Discovery.zen.ping.unicast.hosts: ["Es1", "Es2"]
bootstrap.memory_lock:false
Bootstrap.system_call_ Filter:false
(because CENTOS6 does not support Seccomp, and ES default bootstrap.system_call_filter is true for detection, which causes the detection to fail, which directly causes ES to fail to start. )
# #直接用service命令启动就行了
# #如果你启动el
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.