首页 > 系统相关 >windows 整合elk(elasticsearch、kibana、logstash)及 Java maven项目配置logback集成elk

windows 整合elk(elasticsearch、kibana、logstash)及 Java maven项目配置logback集成elk

时间:2024-09-23 16:51:45浏览次数:3  
标签:node elk Java elastic windows kibana elasticsearch 2.1

文章目录

windows版 elk部署文档

1、文件准备

官网下载地址: https://www.elastic.co/downloads/past-releases

下载文件:kibana、logstash、elasticsearch,版本号需要一致,示例如下:

https://www.elastic.co/cn/downloads/past-releases/kibana-8-15-1

https://www.elastic.co/cn/downloads/past-releases/logstash-8-15-1

https://www.elastic.co/cn/downloads/past-releases/elasticsearch-8-15-1

2、系统配置启动

以下以8.15.1版本讲解elasticsearch、kibana、logstash 系统的配置与启动

2.1、elasticsarch

2.1.1、生成证书

解压压缩包如下图

在这里插入图片描述

打开cmd切换到bin目录下,执行

elasticsearch-certutil.bat ca

第一个断点处按下回车键

第二个断点处输入密码,(记录密码,生成秘钥需要用到)

完成后会生成一个文件:elastic-stack-ca.p12
在这里插入图片描述

2.1.2、生成秘钥

同理在cmd bin 目录下执行语句

elasticsearch-certutil.bat cert --ca ./elastic-stack-ca.p12

第一个断点处输入密码

第二个断点处直接回车

第三个断点处再次确认密码后回车,后生成一个文件:elastic-certificates.p12

2.1.3、移动凭证

在config文件夹下新建certificates 文件夹,将生成的elastic-stack-ca.p12elastic-certificates.p12 文件都移动到certificates文件夹内如下图所示
在这里插入图片描述

2.1.4、改配置

修改config/elasticsearch.yml ,示例如下(主要修改文件路径)

# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: my-elatics
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: node-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: D:\elk\elasticsearch-8.15.1\data
#
# Path to log files:
#
path.logs: D:\elk\elasticsearch-8.15.1\logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# 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 -----------------------------------
#
# By default Elasticsearch is only accessible on localhost. Set a different
# address here to expose this node on the network:
#
network.host: 0.0.0.0
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["127.0.0.1"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["node-1"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# ---------------------------------- Various -----------------------------------
#
# Allow wildcard deletion of indices:
#
#action.destructive_requires_name: false

#----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------
#
# The following settings, TLS certificates, and keys have been automatically      
# generated to configure Elasticsearch security features on 18-09-2024 07:28:42

标签:node,elk,Java,elastic,windows,kibana,elasticsearch,2.1
From: https://blog.csdn.net/captorwz/article/details/142461530

相关文章

  • java集合知识整理1:Java集合概览
    目录Java集合概览List接口set接口Queue接口Map接口其他相关接口和类Java集合概览java集合也叫做容器,主要由两大接口派生而来:一个是Collection接口,主要用于存放单一元素,另一个是Map接口,主要存放键值对。对于Collection接口,下面又有三个主要的子接口:List、Set、Que......
  • JavaWeb -Servlet对表单数据的处理 例:登录系统
    一、创建html文件并添加框架内容<tr></tr>是表格标签<td></td>是单元格标签1.添加用户名和密码<inputtype="text"name="username">文本格式(text),函数名是username。<inputtype="password"name="password">密码格式(password),函数名......
  • JavaSE---Fail-Fast
    总结主要用于集合类中,以确保在遍历集合时如果集合本身被修改,则会立即抛出ConcurrentModificationException异常。原理内部计数器:每个集合对象都有一个内部计数器,称为modCount(modificationcount)。每当集合结构被修改(比如添加或删除元素),这个计数器就会增加。迭代器检查:当......
  • 数据结构与算法——Java实现 12.习题——合并有序链表
    目录21.合并两个有序链表方法1递归思路方法2迭代思路 完整代码结点类方法 人各有所感,角度不同又怎能感同身受                                                ——24.9.2321.合并两个有序链表将两个......
  • 静态轮播图java
    静态轮播图是一种常见的网页设计元素,它可以通过一系列的静态图片来展示内容。在Java中,你可以使用JavaFX或Swing来创建静态轮播图。下面,我将提供一个简单的JavaSwing示例,来演示如何创建一个基本的静态轮播图。准备工作首先,确保你已经安装了Java开发环境(例如,JDK)和JavaSwing库。如果......
  • Java 线程机制
    目录1进程和线程2串行、并行和并发3Java实现多线程的三种方法3.1继承 Thread 类3.2 实现 Runnable 接口3.3 实现 Callable 接口4线程常用API4.1设置优先级4.2线程休眠4.3线程让步4.4线程重点(加入)4.5线程中断4.6线程守护4.7获取线程ID4.8获......
  • java+vue计算机毕设儿童教育系统【源码+开题+论文+程序】
    本系统(程序+源码)带文档lw万字以上文末可获取一份本项目的java源码和数据库参考。系统程序文件列表开题报告内容研究背景在信息化高速发展的今天,教育领域正经历着前所未有的变革。随着社会对儿童教育质量要求的不断提升,传统教育模式已难以满足个性化、高效化、互动化的学......
  • java+vue计算机毕设短视频的推荐平台【源码+开题+论文+程序】
    本系统(程序+源码)带文档lw万字以上文末可获取一份本项目的java源码和数据库参考。系统程序文件列表开题报告内容研究背景随着互联网技术的飞速发展和智能设备的普及,短视频已成为人们日常生活中不可或缺的一部分,其碎片化、高传播性及强娱乐性的特点深受各年龄段用户的喜爱......
  • java+vue计算机毕设多吃点订餐系统【源码+开题+论文+程序】
    本系统(程序+源码)带文档lw万字以上文末可获取一份本项目的java源码和数据库参考。系统程序文件列表开题报告内容研究背景随着移动互联网技术的飞速发展,人们的日常生活方式正经历着前所未有的变革,特别是在餐饮消费领域。快节奏的生活使得“外卖经济”迅速崛起,成为现代人解......
  • 2024最新版Java面试题及答案汇总
    1.对字符串的都有哪些方法?详细说明下。具体有String、StringBuffer和StringBuilder这三个类。String是不可变类,每次操作都会生成新的String对象,并将结果指针指向新的对象,由此会产生内存碎片。如果要频繁对字符串修改,建议采用StringBuffer和StringBuilder。StringBuff......