-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add system tests to logstash package (#4443)
* Add system tests for logstash package (cherry picked from commit 4df6b991a6db0cb851598c34063363d90f1c0749) * Update README * Test .env file * Set default env var value * Fix alias mapping * Fix mapping and use Hostname var on test config * Add missing filed to node_stats mapping * Fix docker-compose file * Fix test config and replaces .env with variantes.yml
- Loading branch information
1 parent
c663da0
commit 094a533
Showing
16 changed files
with
868 additions
and
504 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,10 +1,11 @@ | ||
version: '2.3' | ||
version: "2.3" | ||
services: | ||
logstash: | ||
image: "docker.elastic.co/logstash/logstash:${ELASTIC_VERSION}" | ||
user: root | ||
image: "docker.elastic.co/logstash/logstash:${ELASTIC_VERSION:-8.5.0-SNAPSHOT}" | ||
volumes: | ||
- "./pipeline:/usr/share/logstash/pipeline" | ||
- "./config:/usr/share/logstash/config" | ||
- ${SERVICE_LOGS_DIR}/logstash:/usr/share/logstash/logs | ||
- ${SERVICE_LOGS_DIR}:/usr/share/logstash/logs | ||
ports: | ||
- "127.0.0.1:9600:9600" |
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,4 @@ | ||
variants: | ||
logstash_8.5.0: | ||
ELASTIC_VERSION: 8.5.0-SNAPSHOT | ||
default: logstash_8.5.0 |
5 changes: 5 additions & 0 deletions
5
packages/logstash/data_stream/log/_dev/test/system/test-default-config.yml
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,5 @@ | ||
input: logfile | ||
data_stream: | ||
vars: | ||
paths: | ||
- "{{SERVICE_LOGS_DIR}}/logstash-json.log" |
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
6 changes: 6 additions & 0 deletions
6
packages/logstash/data_stream/node/_dev/test/system/test-default-config.yml
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 @@ | ||
type: logstash/metrics | ||
dataset: logstash.stack_monitoring.node | ||
vars: | ||
hosts: | ||
- "http://{{Hostname}}:9600" | ||
data_stream: ~ |
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
Oops, something went wrong.