首页 > 其他分享 >ELK 8.15 启用Fleet Server和安装Agent

ELK 8.15 启用Fleet Server和安装Agent

时间:2024-09-12 15:24:27浏览次数:3  
标签:ELK elastic -- agent Server 64 Agent 8.15 server

ELK 8.15 启用Fleet Server和安装Agent_elk

注意,这里的URL, 使用端口8220,不是443

ELK 8.15 启用Fleet Server和安装Agent_elk_02

ELK 8.15 启用Fleet Server和安装Agent_elk_03

ELK 8.15 启用Fleet Server和安装Agent_elk_04

ELK 8.15 启用Fleet Server和安装Agent_elk_05

curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.15.1-linux-x86_64.tar.gz

tar xzvf elastic-agent-8.15.1-linux-x86_64.tar.gz

cd elastic-agent-8.15.1-linux-x86_64

可以将如下这一段存为一个sh文件,方便操作

sudo ./elastic-agent install \

 --fleet-server-es=https://192.168.1.100:9200 \

 --fleet-server-service-token=xxxxxxxxxxxxxxxxx \

 --fleet-server-policy=fleet-server-policy \

 --fleet-server-es-ca-trusted-fingerprint=xxxxxxxxxxx \

 --fleet-server-port=8220

ELK 8.15 启用Fleet Server和安装Agent_elk_06

完成后即可看到Fleet Server

ELK 8.15 启用Fleet Server和安装Agent_elk_07


接着尝试安装Agent,注意Agent不要跟Fleet server同一部机器,不然会搞乱配置,这里我使用一部windows机器来安装Agent

ELK 8.15 启用Fleet Server和安装Agent_agent_08

ELK 8.15 启用Fleet Server和安装Agent_fleet server_09

在Windows中,使用powershell执行如下命令

$ProgressPreference = 'SilentlyContinue' (这个会报错,忽略即可)

Invoke-WebRequest -Uri https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.15.1-windows-x86_64.zip -OutFile elastic-agent-8.15.1-windows-x86_64.zip

Expand-Archive .\elastic-agent-8.15.1-windows-x86_64.zip -DestinationPath .

cd elastic-agent-8.15.1-windows-x86_64

.\elastic-agent.exe install --url=https://192.168.1.100:8220 --enrollment-token=xxxxxxxx

注意,上面这条命令,需要添加 --insecure 参数,不然会报错:certificate signed by unknown authority,如下图

ELK 8.15 启用Fleet Server和安装Agent_agent_10

正确命令:.\elastic-agent.exe install --url=https://192.168.1.100:8220 --insecure --enrollment-token=xxxxxxX

ELK 8.15 启用Fleet Server和安装Agent_elastic_11

回到Fleet页面,即可看到Agent

ELK 8.15 启用Fleet Server和安装Agent_agent_12

标签:ELK,elastic,--,agent,Server,64,Agent,8.15,server
From: https://blog.51cto.com/helpdesk/11991716

相关文章

  • mysql 连接失败:message from server: "Host '192.168.xx.xxx' is not allowed to conn
    前言mysql连接失败:messagefromserver:"Host'192.168.xx.xxx'isnotallowedtoconnecttothisMySQLserver"解决错误信息表明你尝试从IP地址192.168.xx.xxx连接到MySQL服务器,但是该IP地址没有被授权连接权限。为了解决这个问题,你需要确保你的MySQL用户权限......
  • usbserver工程师手记(四)ft2usbhub服务启动不了
     技术支持:可能他用360扫描或者驱动精灵的时候,把驱动给卸载了客户:老师确定下原因,用户那面着急用电脑了技术支持向日葵远程登录......技术支持:卸载客户端,重新安装一下就可以客户:我们要确定问题的原因那客户:用户那面允许我们继续排查客户领导:需要确定影响原因,不能是:可能、应该客......
  • 国产化:部署单机THS(东方通TongHttpServer替代Nginx)
    背景国产化要求,使用东方通TongHttpServer替代Nginx。1安装THS解压之后把授权文件license.dat放到主目录下即可。tarzxvfTongHttpServer_6.0.0.2_x86_64.tar.gz2启动主程序如果以root用户启动THS时,worker进程会切换到nobody用户nobody组运行。所以确定......
  • sql-server公用表表达式
    视图是作为数据库对象存储在数据库中的,如果这个结果集仅仅要使用一次,那么建立视图就太奢侈了。在SQLServer中,公共表表达式(CommonTableExpression,简称CTE)是一种临时的结果集,可以在一个查询块中多次引用。CTE可以用来简化复杂的查询,特别是那些需要多步操作或者递归查询的情况......
  • SQL Server 很慢很卡?
    1、可以试着查找影响数据库性能的SQL语句SELECTTOP30total_worker_time/1000AS[CPU总耗时(ms)],execution_count[运行次数],qs.total_worker_time/qs.execution_count/1000AS[CPU平均耗时(ms)],last_execution_timeAS[最后执行时间],max_worker_time/1000AS......
  • Active Directory Server Build
    ActiveDirectoryServerBuildDocument Preparedfor:LeanDevelopmentPtyLtd 5.ComputerSettings1.2.3.4.5.5.1.GeneralSettingsGeneralsettingsasrecordedin‘ControlPanel/System’arepresentedbelow:<Inserttherequiredserverscreenshotth......
  • Windows Server 2022 rdp
    继续水一篇:2022废弃了xddm转而使用wddm,rdp的渲染有比较大的变化。高版本的unreal又需要2022支持,被迫走上魔改windows以提升2022rdp环境下抓屏帧数的道路。测试代码来自https://github.com/robmikh/Win32CaptureSample,只手动添加了输出fps逻辑。patchwindows后能在[60,90]......
  • 终于有人说清楚了基于大模型的Agent进行任务规划的10种方式(附代码和论文)
    在OpenAIAI应用研究主管LilianWeng的博客**《大语言模型(LLM)支持的自主式代理》**[1]中,将规划能力视为关键的组件之一,用于将任务拆解为更小可管理的子任务,这对有效可控的处理好更复杂的任务效果显著。基于大语言模型(LLM)的自主代理组成人是如何做事的?在日常工作中,我......
  • WebSphere Application Server在centos7下的安装
    需要先下载ibm的官方安装器InstallationManager1.下载InstallationManager1.9.0下载地址:InstallationManagerandPackagingUtilitydownloaddocuments选择1.9.0版本点击下载点击之后往下滑,点击对应版本的FC。勾选第一个,点击继续直接在浏览器下载参考这篇博客,......
  • VMware ESXi 8.0U3 macOS Unlocker 集成驱动版更新 OEM BIOS 2.7 支持 Windows Server
    VMwareESXi8.0U3macOSUnlocker集成驱动版更新OEMBIOS2.7支持WindowsServer2025VMwareESXi8.0U3macOSUnlocker&OEMBIOS2.7集成网卡驱动和NVMe驱动(集成驱动版)发布ESXi8.0U3集成驱动版,在个人电脑上运行企业级工作负载请访问原文链接:https://sy......