I am
When I tried to thrust Metricbeat, I encountered a Reading problem, so I will leave a note.
[ec2-user@ip-172-31-28-80 ~]$ cat /etc/system-release
Amazon Linux release 2 (Karoo)
[ec2-user@ip-172-31-28-80 ~]$ rpm -qa|grep relea
system-release-2-13.amzn2.x86_64
rpm --import
nai
[root@ip-172-31-28-80 docker]# rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
[root@ip-172-31-28-80 docker]# cd /etc/yum.repos.d/
[root@ip-172-31-28-80 yum.repos.d]# ll
8 in total
-rw-r--r--1 root root 1003 December 8 00:40 amzn2-core.repo
-rw-r--r--1 root root 1105 December 21 20:04 amzn2-extras.repo
yum-config-manager
dekita
[root@ip-172-31-28-80 yum.repos.d]# yum-config-manager --add-repo https://artifacts.elastic.co/GPG-KEY-elasticsearch
Loaded plugin:extras_suggestions, langpacks, priorities, update-motd
adding repo from: https://artifacts.elastic.co/GPG-KEY-elasticsearch
[artifacts.elastic.co_GPG-KEY-elasticsearch]
name=added from: https://artifacts.elastic.co/GPG-KEY-elasticsearch
baseurl=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
[root@ip-172-31-28-80 yum.repos.d]# echo $?
0
[root@ip-172-31-28-80 yum.repos.d]# ll
12 in total
-rw-r--r--1 root root 1003 December 8 00:40 amzn2-core.repo
-rw-r--r--1 root root 1105 December 21 20:04 amzn2-extras.repo
-rw-r--r--1 root root 184 January 7 07:55 artifacts.elastic.co_GPG-KEY-elasticsearch.repo
[root@ip-172-31-28-80 yum.repos.d]# yum install metricbeat
Loaded plugin:extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 3.7 kB 00:00:00
amzn2extra-docker | 3.0 kB 00:00:00
artifacts.elastic.co_GPG-KEY-elasticsearch | 1.3 kB 00:00:00
artifacts.elastic.co_GPG-KEY-elasticsearch/primary | 164 kB 00:00:00
artifacts.elastic.co_GPG-KEY-elasticsearch 544/544
Resolving dependencies
-->Performing transaction confirmation.
--->Package metricbeat.x86_64 0:7.10.1-Install 1
-->Dependency resolution finished.
Resolved the dependency
==========================================================================================================================================================
Package architecture version repository capacity
==========================================================================================================================================================
During installation:
metricbeat x86_64 7.10.1-1 artifacts.elastic.co_GPG-KEY-elasticsearch 27 M
Transaction summary
==========================================================================================================================================================
Installation 1 package
Total download capacity: 27 M
Installation capacity: 93 M
Is this ok [y/d/N]: y
Downloading packages:
metricbeat-oss-7.10.1-x86_64.rpm | 27 MB 00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
During installation: metricbeat-7.10.1-1.x86_64 1/1
During verification: metricbeat-7.10.1-1.x86_64 1/1
Installation:
metricbeat.x86_64 0:7.10.1-1
Has completed!
[root@ip-172-31-28-80 yum.repos.d]# rpm -qa|grep metricbeat
metricbeat-7.10.1-1.x86_64
Recommended Posts