gpt4 book ai didi

elasticsearch - ELK堆栈-未正确安装Logstash

转载 作者:行者123 更新时间:2023-12-03 00:34:35 25 4
gpt4 key购买 nike

我正在尝试安装ELK堆栈。 Elastic Search和Kibana已成功安装。效果很好。但是在安装Logstash时,无法正确安装它。当我启动logstash服务时,它表明没有logstash。我尝试搜索Google,但找不到合适的解决方案。我尝试重新安装该软件包。即使如此,它也无法解决。

这是错误:

paulsteven@smackcoders:~$ sudo apt-get install logstash
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
logstash
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/178 MB of archives.
After this operation, 307 MB of additional disk space will be used.
Selecting previously unselected package logstash.
(Reading database ... 293176 files and directories currently installed.)
Preparing to unpack .../logstash_1%3a6.7.0-1_all.deb ...
Unpacking logstash (1:6.7.0-1) ...
Setting up logstash (1:6.7.0-1) ...
Using provided startup.options file: /etc/logstash/startup.options
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000d4cc0000, 724828160, 0) failed; error='Not enough space' (errno=12)
/usr/share/logstash/bin/system-install: line 88: #: command not found
paulsteven@smackcoders:~$ sudo systemctl logstash status
Unknown operation logstash.

paulsteven@smackcoders:~$ sudo systemctl logstash status
Unknown operation logstash.

paulsteven@smackcoders:~$ sudo apt-get install logstash
Reading package lists... Done
Building dependency tree
Reading state information... Done
logstash is already the newest version (1:6.7.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
paulsteven@smackcoders:~$

最佳答案

@Smack Alpha

我使用ELK堆栈1个月,并使用debian软件包在Ubuntu平台中安装了这些东西。

请按照以下步骤安装logstash并将其作为服务启动。

首先去主目录
cd ~
使用 wget 下载logstash的debian软件包(请注意您的logstash版本)
sudo wget https://artifacts.elastic.co/downloads/logstash/logstash-6.5.4.deb
我用dpkg安装logstash
sudo dpkg -i logstash-6.5.4.deb
配置Logstash

更改logstash.yml的编辑权限

```sudo chmod 777 /etc/logstash/logstash.yml```

在文本编辑器中打开logstash.yml
sudo gedit /etc/logstash/logstash.yml
更改以下几行(删除#标签)

a) http.host:“0.0.0.0”(您的IP地址)

b) http.port:9600-9700

保存并退出。

注释任何安装方面的疑问和错误。

关于elasticsearch - ELK堆栈-未正确安装Logstash,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55372109/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com