标签:nod ref logs https node import arch elastics pack
首先安装,这里采用rpm安装:
# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
创建repo文件:
[root@node1 logstash]# cat /etc/yum.repos.d/logstash.repo [logstash-6.x] name=Elastic repository for 6.x packages baseurl=https://artifacts.elastic.co/packages/6.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md
在yum install logstash之前确保已经安装了jdk,也就是确保有java环境:
[root@node1 logstash]# java -version java version "1.8.0_191" Java(TM) SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode) # yum install logstash
查看logstash的配置文件:
[root@node1 logstash]# pwd /etc/logstash [root@node1 logstash]# ll 总用量 36 drwxrwxr-x. 2 root root 6 12月 18 06:06 conf.d -rw-r--r--. 1 root root 1846 12月 18 06:06 jvm.options -rw-r--r--. 1 root root 4568 12月 18 06:06 log4j2.properties -rw-r--r--. 1 root root 342 12月 18 06:06 logstash-sample.conf -rw-r--r--. 1 root root 8194 12月 23 20:32 logstash.yml -rw-r--r--. 1 root root 285 12月 18 06:06 pipelines.yml -rw-------. 1 root root 1696 12月 18 06:06 startup.options
标签:nod ref logs https node import arch elastics pack
原文地址:https://www.cnblogs.com/jsonhc/p/10165552.html