Skip to content

Commit

Permalink
Melhoria procedimento Instalação ELK
Browse files Browse the repository at this point in the history
  • Loading branch information
helviojunior committed Jan 31, 2025
1 parent 88e0073 commit c1d8853
Showing 1 changed file with 8 additions and 38 deletions.
46 changes: 8 additions & 38 deletions INSTALL_ELK.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,53 +32,23 @@ sudo apt install elasticsearch kibana

### Configurando o ELK

Edite o arquivo sudo nano /etc/elasticsearch/elasticsearch.yml alterando o bind para somente localhost
Caso deseje utilizar as configurações padrões e otimizadas que eu utilizo, basta realizar o procedimento abaixo:

```
network.host: 127.0.0.1
http.host: 127.0.0.1
http.port: 9200
```

Caso queira que o elasticsearch faça bind em todas as interfaces
Edite o arquivo /etc/elasticsearch/elasticsearch.yml

**Nota:** Esta configuração será necessária caso o crawler execute em uma maquina diferente do servidor ELK
Crie o diretório /u01/es_data/

```
network.host: 127.0.0.1
http.host: 0.0.0.0
http.port: 9200
mkdir -p /u01/es_data/
```

#### Edite o nome do cluster
Edite o arquivo /etc/elasticsearch/elasticsearch.yml
Posteriormente baixe e execute o script Python que realiza as configurações

```
cluster.name: my-application
node.name: node-1
```

#### Ajuste as configurações de segurança
Edite o arquivo /etc/elasticsearch/elasticsearch.yml

```
# Enable security features
xpack.security.enabled: false
xpack.security.enrollment.enabled: false
# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
enabled: false
keystore.path: certs/http.p12
# Enable encryption and mutual authentication between cluster nodes
xpack.security.transport.ssl:
enabled: false
cd /opt
wget https://raw.githubusercontent.com/helviojunior/filecrawler/refs/heads/main/scripts/config_elk.py
python3 config_elk.py
```

#### Ajuste os limites JVM
### Ajuste os limites JVM

Ajuste com em torno de 80% da memória da máquina. Edite o arquivo /etc/elasticsearch/jvm.options

Expand Down

0 comments on commit c1d8853

Please sign in to comment.