首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >ELK搭建教程

ELK搭建教程

作者头像
用户1499526
发布2019-07-15 18:00:02
8940
发布2019-07-15 18:00:02
举报
文章被收录于专栏:简单的日记简单的日记

1.elasticsearch的 搭建

  1. [root@localhost local]# vim /etc/security/limits.conf
  2. 添加以下内容 调整linux下的限制

3.

* soft nproc 65536
* hard nproc 65536
* soft nofile 65536
* hard nofile 65536

创建运行ELK的用户,elasticsearch 不能在root 用户下直接启动所以创建 elk 用户 作为启动 elasticsearch的用户

4.

[root@localhost local]# groupadd elk
[root@localhost local]# useradd -g elk elk

  vi   /etc/sysctl.conf

#增加以下参数

vm.max_map_count=655360
 
创建ELK运行目录

[root@localhost local]# mkdir /elk
[root@localhost local]# chown -R elk:elk /elk

修改elasticserach 中conf 下的文件 elasticserach.yml 文件 注意格式

5.

cluster.name: Tepusoft  #节点名称
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: elk-1 ##节点名称
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /elk/es-data
#
# Path to log files:
#
path.logs: /elk/es-logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 192.168.5.132
#
# Set a custom port for HTTP:
#
http.port: 9200
http.cors.enabled: true  #此处必须开启
http.cors.allow-origin: "*" #此处必须开启  否则elasticsearch-head 插件无法调用 运行
#

设置开机启动的脚本

1.安装logstash

1.安装Kinaba

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
Elasticsearch Service
腾讯云 Elasticsearch Service(ES)是云端全托管海量数据检索分析服务,拥有高性能自研内核,集成X-Pack。ES 支持通过自治索引、存算分离、集群巡检等特性轻松管理集群,也支持免运维、自动弹性、按需使用的 Serverless 模式。使用 ES 您可以高效构建信息检索、日志分析、运维监控等服务,它独特的向量检索还可助您构建基于语义、图像的AI深度应用。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档