-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add system tests to logstash package #4443
Changes from all commits
03670c2
72dfc90
6f69d52
9b9429d
3fdd75c
8bb0994
3b4ffe8
ec8d0b5
30fc344
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
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}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like we can create a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah. nice! I'll try this |
||
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" |
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 |
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" |
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: ~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The container needs to be accessed by
root
user to have permission to write in the${SERVICE_LOGS_DIR}
folder