Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: "3"

services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.4
container_name: rtsoft_elasticsearch
ports:
- 9200:9200
volumes:
- ./custom_elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml

kibana:
image: docker.elastic.co/kibana/kibana-oss:6.2.4
container_name: rtsoft_kibana
ports:
- 5601:5601
volumes:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
depends_on:
- elasticsearch

filebeat:
image: docker.elastic.co/beats/filebeat:6.2.4
container_name: rtsoft_filebeat
volumes:
- ./filebeat.yml:/usr/share/filebeat/filebeat.yml
- ../log:/mnt/log
depends_on:
- elasticsearch
12 changes: 12 additions & 0 deletions .docker/install/custom_elasticsearch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Ukázkový konfigurační soubor z https://github.com/elastic/elasticsearch-docker/blob/master/build/elasticsearch/elasticsearch.yml

cluster.name: "docker-cluster"
network.host: 0.0.0.0

# minimum_master_nodes need to be explicitly set when bound on a public IP
# set to 1 to allow single node clusters
# Details: https://github.com/elastic/elasticsearch/pull/17288
discovery.zen.minimum_master_nodes: 1

# Doporučené nastavení pro vývoj (https://www.elastic.co/guide/en/elasticsearch/reference/6.2/docker.html#docker-cli-run-dev-mode)
discovery.type: single-node
17 changes: 17 additions & 0 deletions .docker/install/filebeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Ukázkový konfigurační soubor z https://github.com/elastic/beats-docker/blob/master/build/filebeat/config/filebeat.yml

filebeat.config:
prospectors:
path: ${path.config}/prospectors.d/*.yml
reload.enabled: false
modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false

processors:
- add_cloud_metadata:

output.elasticsearch:
hosts: ['elasticsearch:9200']
username: elastic
password: changeme
8 changes: 8 additions & 0 deletions .docker/install/kibana.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Ukázkový konfigurační soubor z https://github.com/elastic/kibana-docker/blob/master/build/kibana/config/kibana-oss.yml

---
# Default Kibana configuration from kibana-docker.

server.name: kibana
server.host: "0"
elasticsearch.url: http://elasticsearch:9200
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.docker/custom_elasticsearch.yml
.docker/kibana.yml
.docker/filebeat.yml
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ Pro spuštění Kibany musíte mít zároveň spuštěný Elasticsearch. Chcete-
Před spuštěním Filebeatu upravte konfigurační soubor filebeat.yml. Poté spusťte Filebeat příkazem filebeat.exe.
Zda vám vše běží můžete průběžně kontrolovat přes prohlížeč (localhost:9200 pro Elastisticsearch, localhost:5601 pro Kibanu).

### Spuštění pomocí Dockeru:
1. Zkopírovat všechny konfigurační soubory z ```.docker/install``` o úroveň výš.
2.
```
cd .docker
docker-compose up
```
3. V prohlížeči otevřít [Kibanu](http://localhost:5601).

### Úkol pro Elasticsearch fandy:
Nahrajte všechny soubory ze složky log do elasticsearche za použití filebeatu.
Jakmile začne Filebeat zpracovávat data, tak se v Kibaně objeví nově vytvořený index.
Expand Down