404 Error installing Filebeat on Debian Linux via apt

Hello, I am trying to install filebeat on some Debian Linux devices, using the instructions from this link. Unfortunately, the URL provided on that page (https://artifacts.elastic.co/packages/8.x/apt) is not working.

Am I missing something? I tried poking around, to see if I could locate the correct URL, and I keep getting redirected to https://elastic.co/download.

$ curl -vL https://artifacts.elastic.co/packages/8.x/apt/                                                                                                                                                                                                                                                                                    
*   Trying 34.120.127.130:443...
* Connected to artifacts.elastic.co (34.120.127.130) port 443 (#0)
* ALPN: offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=appsearch.elastic.co
*  start date: Mar  9 13:21:45 2023 GMT
*  expire date: Jun  7 14:13:55 2023 GMT
*  subjectAltName: host "artifacts.elastic.co" matched cert's "artifacts.elastic.co"
*  issuer: C=US; O=Google Trust Services LLC; CN=GTS CA 1D4
*  SSL certificate verify ok.
* using HTTP/2
* h2h3 [:method: GET]
* h2h3 [:path: /packages/8.x/apt/]
* h2h3 [:scheme: https]
* h2h3 [:authority: artifacts.elastic.co]
* h2h3 [user-agent: curl/7.88.1]
* h2h3 [accept: */*]
* Using Stream ID: 1 (easy handle 0x7fc6a200e800)
> GET /packages/8.x/apt/ HTTP/2
> Host: artifacts.elastic.co
> user-agent: curl/7.88.1
> accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
< HTTP/2 404
< content-length: 0
< strict-transport-security: max-age=31536000; includeSubDomains
< via: 1.1 google
< date: Tue, 14 Mar 2023 20:59:53 GMT
< age: 9
< alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
<
* Connection #0 to host artifacts.elastic.co left intact

You can also just do it direct per the quick start

curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-8.6.2-amd64.deb
sudo dpkg -i filebeat-8.6.2-amd64.deb

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.