-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alessandro Fiori
authored and
Alessandro Fiori
committed
Aug 1, 2022
1 parent
e775bf1
commit ef71e88
Showing
44 changed files
with
715 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
ELK_VERSION=7.16.2 | ||
ELASTIC_VERSION=8.3.3 | ||
|
||
## Passwords for stack users | ||
# | ||
|
||
# User 'elastic' (built-in) | ||
# | ||
# Superuser role, full access to cluster management and data indices. | ||
# https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html | ||
ELASTIC_PASSWORD='changeme' | ||
# User 'logstash_internal' (custom) | ||
# | ||
# The user Logstash uses to connect and send data to Elasticsearch. | ||
# https://www.elastic.co/guide/en/logstash/current/ls-security.html | ||
LOGSTASH_INTERNAL_PASSWORD='changeme' | ||
|
||
# User 'kibana_system' (built-in) | ||
# | ||
# The user Kibana uses to connect and communicate with Elasticsearch. | ||
# https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html | ||
KIBANA_SYSTEM_PASSWORD='changeme' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
ARG ELK_VERSION | ||
ARG ELASTIC_VERSION | ||
|
||
# https://www.docker.elastic.co/ | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELK_VERSION} | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION} | ||
|
||
# Add your elasticsearch plugins setup here | ||
# Example: RUN elasticsearch-plugin install analysis-icu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Ignore Docker build files | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Ignore OS artifacts | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
ARG ELK_VERSION | ||
ARG ELASTIC_VERSION | ||
|
||
FROM docker.elastic.co/apm/apm-server:${ELK_VERSION} | ||
FROM docker.elastic.co/apm/apm-server:${ELASTIC_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
version: '3.2' | ||
version: '3.7' | ||
|
||
services: | ||
apm-server: | ||
build: | ||
context: extensions/apm-server/ | ||
args: | ||
ELK_VERSION: $ELK_VERSION | ||
ELASTIC_VERSION: ${ELASTIC_VERSION} | ||
command: | ||
# Disable strict permission checking on 'apm-server.yml' configuration file | ||
# https://www.elastic.co/guide/en/beats/libbeat/current/config-file-permissions.html | ||
- --strict.perms=false | ||
volumes: | ||
- type: bind | ||
source: ./extensions/apm-server/config/apm-server.yml | ||
target: /usr/share/apm-server/apm-server.yml | ||
read_only: true | ||
- ./extensions/apm-server/config/apm-server.yml:/usr/share/apm-server/apm-server.yml:ro,Z | ||
ports: | ||
- '8200:8200' | ||
environment: | ||
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD:-} | ||
networks: | ||
- elk | ||
depends_on: | ||
- elasticsearch | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Ignore Docker build files | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Ignore OS artifacts | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Ignore Docker build files | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Ignore OS artifacts | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG ELK_VERSION | ||
ARG ELASTIC_VERSION | ||
|
||
# https://www.docker.elastic.co/ | ||
FROM docker.elastic.co/enterprise-search/enterprise-search:${ELK_VERSION} | ||
FROM docker.elastic.co/enterprise-search/enterprise-search:${ELASTIC_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Ignore Docker build files | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Ignore OS artifacts | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ARG ELASTIC_VERSION | ||
|
||
FROM docker.elastic.co/beats/filebeat:${ELASTIC_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Filebeat | ||
|
||
Filebeat is a lightweight shipper for forwarding and centralizing log data. Installed as an agent on your servers, | ||
Filebeat monitors the log files or locations that you specify, collects log events, and forwards them either to | ||
Elasticsearch or Logstash for indexing. | ||
|
||
## Usage | ||
|
||
To include Filebeat in the stack, run Docker Compose from the root of the repository with an additional command line | ||
argument referencing the `filebeat-compose.yml` file: | ||
|
||
```console | ||
$ docker-compose -f docker-compose.yml -f extensions/filebeat/filebeat-compose.yml up | ||
``` | ||
|
||
## Configuring Filebeat | ||
|
||
The Filebeat configuration is stored in [`config/filebeat.yml`](./config/filebeat.yml). You can modify this file with | ||
the help of the [Configuration reference][filebeat-config]. | ||
|
||
Any change to the Filebeat configuration requires a restart of the Filebeat container: | ||
|
||
```console | ||
$ docker-compose -f docker-compose.yml -f extensions/filebeat/filebeat-compose.yml restart filebeat | ||
``` | ||
|
||
Please refer to the following documentation page for more details about how to configure Filebeat inside a Docker | ||
container: [Run Filebeat on Docker][filebeat-docker]. | ||
|
||
## See also | ||
|
||
[Filebeat documentation][filebeat-doc] | ||
|
||
[filebeat-config]: https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-reference-yml.html | ||
[filebeat-docker]: https://www.elastic.co/guide/en/beats/filebeat/current/running-on-docker.html | ||
[filebeat-doc]: https://www.elastic.co/guide/en/beats/filebeat/current/index.html |
Oops, something went wrong.