> For the complete documentation index, see [llms.txt](https://taufiksharepoint.gitbook.io/instalasielk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://taufiksharepoint.gitbook.io/instalasielk/filebeat/instalasi-linux-based.md).

# Instalasi \[Linux Based]

{% hint style="success" %}
Pada tutorial ini, kita akan menggunakan Filebeat untuk melakukan shipping log pada sistem berbasis Linux.
{% endhint %}

Setelah mengetahui versi dari elasticsearch, Langkah selanjutnya adalah menambahkan repository yang sama dengan repository saat instalasi Elasticsearch, Loggstash, dan Kibana. Lakukan langkah sebagai berikut :&#x20;

```bash
sudo apt-get install apt-transport-https -y && curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch |sudo gpg --dearmor -o /usr/share/keyrings/elastic.gpg && echo "deb [signed-by=/usr/share/keyrings/elastic.gpg] https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
```

{% hint style="danger" %}
Versi filebeat yang diunduh harus sesuai dengan versi elasticsearch yang digunakan, maka dari itu penambahan repository ini sangat penting
{% endhint %}

Lakukan update agar sistem terupdate dan terhubung dengan repository yang ditambahkan, untuk mengupdate sistem, dapat dilakukan dengan cara sebagai berikut :&#x20;

```bash
sudo apt update
```

{% hint style="info" %}
Pastikan proses update selesai dilakukan agar dapat ke proses install
{% endhint %}

Lakukan instalasi dengan menggunakan perintah berikut :&#x20;

```sh
 sudo apt install filebeat
```

tunggu dan pastikan proses instalasi selesai


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://taufiksharepoint.gitbook.io/instalasielk/filebeat/instalasi-linux-based.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
