Skip to content

Commit

Permalink
installation: update for AL2023 (#1067)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Stephens <[email protected]>
  • Loading branch information
patrick-stephens authored Apr 18, 2023
1 parent ab408e7 commit a8798e3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 22 deletions.
24 changes: 9 additions & 15 deletions installation/linux/amazon-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Install on Amazon Linux

Fluent Bit is distributed as **fluent-bit** package and is available for the latest Amazon Linux 2 and Amazon Linux 2022.
Fluent Bit is distributed as **fluent-bit** package and is available for the latest Amazon Linux 2 and Amazon Linux 2023.
The following architectures are supported

* x86\_64
Expand All @@ -22,12 +22,7 @@ The recommended secure deployment approach is to follow the instructions below.

### Amazon Linux 2022

For Amazon Linux 2022, until it is GA, we need to force it to use the 2022 `releasever` in Yum but only for the Fluent Bit repository.

```bash
export FLUENT_BIT_INSTALL_COMMAND_PREFIX="sed -i 's|\$releasever/|2022/|g' /etc/yum.repos.d/fluent-bit.repo"
curl https://raw.githubusercontent.com/fluent/fluent-bit/master/install.sh | sh
```
Amazon Linux 2022 was previously supported but is removed since it became GA Amazon Linux 2023

## Configure Yum

Expand All @@ -38,18 +33,18 @@ We provide **fluent-bit** through a Yum repository. In order to add the reposito
```config
[fluent-bit]
name = Fluent Bit
baseurl = https://packages.fluentbit.io/amazonlinux/2/$basearch/
baseurl = https://packages.fluentbit.io/amazonlinux/2/
gpgcheck=1
gpgkey=https://packages.fluentbit.io/fluentbit.key
enabled=1
```

### Amazon Linux 2022
### Amazon Linux 2023

```config
[fluent-bit]
name = Fluent Bit
baseurl = https://packages.fluentbit.io/amazonlinux/2022/$basearch/
baseurl = https://packages.fluentbit.io/amazonlinux/2023/
gpgcheck=1
gpgkey=https://packages.fluentbit.io/fluentbit.key
enabled=1
Expand Down Expand Up @@ -83,26 +78,25 @@ Refer to the [supported platform documentation](../supported-platforms.md) to se
Once your repository is configured, run the following command to install it:

```bash
yum install fluent-bit
sudo yum install fluent-bit
```

Now the following step is to instruct _systemd_ to enable the service:

```bash
sudo service fluent-bit start
sudo systemctl start fluent-bit
```

If you do a status check, you should see a similar output like this:

```bash
$ service fluent-bit status
Redirecting to /bin/systemctl status fluent-bit.service
$ systemctl status fluent-bit
● fluent-bit.service - Fluent Bit
Loaded: loaded (/usr/lib/systemd/system/fluent-bit.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2016-07-07 02:08:01 BST; 9s ago
Main PID: 3820 (fluent-bit)
CGroup: /system.slice/fluent-bit.service
└─3820 /opt/fluent-bit/bin/fluent-bit -c etc/fluent-bit/fluent-bit.conf
└─3820 /opt/fluent-bit/bin/fluent-bit -c /etc/fluent-bit/fluent-bit.conf
...
```

Expand Down
9 changes: 4 additions & 5 deletions installation/linux/redhat-centos.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ We provide **fluent-bit** through a Yum repository. In order to add the reposito
```shell
[fluent-bit]
name = Fluent Bit
baseurl = https://packages.fluentbit.io/centos/$releasever/$basearch/
baseurl = https://packages.fluentbit.io/centos/$releasever/
gpgcheck=1
gpgkey=https://packages.fluentbit.io/fluentbit.key
repo_gpgcheck=1
Expand Down Expand Up @@ -78,20 +78,19 @@ Refer to the [supported platform documentation](../supported-platforms.md) to se
Once your repository is configured, run the following command to install it:

```bash
yum install fluent-bit
sudo yum install fluent-bit
```

Now the following step is to instruct _Systemd_ to enable the service:

```bash
sudo service fluent-bit start
sudo systemctl start fluent-bit
```

If you do a status check, you should see a similar output like this:

```bash
$ service fluent-bit status
Redirecting to /bin/systemctl status fluent-bit.service
$ systemctl status fluent-bit
● fluent-bit.service - Fluent Bit
Loaded: loaded (/usr/lib/systemd/system/fluent-bit.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2016-07-07 02:08:01 BST; 9s ago
Expand Down
3 changes: 2 additions & 1 deletion installation/linux/ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ We recommend upgrading your system (`sudo apt-get upgrade`). This could avoid po
{% hint style="info" %}
If you have the following error "Certificate verification failed", you might want to check if the package `ca-certificates` is properly installed (`sudo apt-get install ca-certificates`).
{% endhint %}

## Install Fluent Bit

Using the following _apt-get_ command you are able now to install the latest _fluent-bit_:
Expand All @@ -84,7 +85,7 @@ sudo systemctl start fluent-bit
If you do a status check, you should see a similar output like this:

```bash
sudo service status fluent-bit
systemctl status fluent-bit
● fluent-bit.service - Fluent Bit
Loaded: loaded (/lib/systemd/system/fluent-bit.service; disabled; vendor preset: enabled)
Active: active (running) since mié 2016-07-06 16:58:25 CST; 2h 45min ago
Expand Down
2 changes: 1 addition & 1 deletion installation/supported-platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The following operating systems and architectures are supported in Fluent Bit.

| Operating System | Distribution | Architectures |
| :--- | :--- | :--- |
| Linux | [Amazon Linux 2022](linux/amazon-linux.md) | x86\_64, Arm64v8 |
| Linux | [Amazon Linux 2023](linux/amazon-linux.md) | x86\_64, Arm64v8 |
| | [Amazon Linux 2](linux/amazon-linux.md) | x86\_64, Arm64v8 |
| | [Centos 9 Stream](linux/redhat-centos.md) | x86\_64, Arm64v8 |
| | [Centos 8](linux/redhat-centos.md) | x86\_64, Arm64v8 |
Expand Down

0 comments on commit a8798e3

Please sign in to comment.