-
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
1 parent
48b7b9e
commit ca3edd5
Showing
4 changed files
with
59 additions
and
1 deletion.
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
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,9 @@ | ||
ARG ELASTIC_STACK_VERSION | ||
|
||
FROM docker.elastic.co/logstash/logstash:${ELASTIC_STACK_VERSION} | ||
|
||
USER root | ||
|
||
COPY ./elasticsearch/logstash01/logstash.conf pipeline/logstash.conf | ||
|
||
RUN chmod go-w pipeline/logstash.conf |
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,22 @@ | ||
input { | ||
file { | ||
#https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html | ||
#default is TAIL which assumes more data will come into the file. | ||
#change to mode => "read" if the file is a compelte file. by default, the file will be removed once reading is complete -- backup your files if you need them. | ||
mode => "tail" | ||
path => "/usr/share/logstash/ingest_data/*" | ||
} | ||
} | ||
|
||
filter { | ||
} | ||
|
||
output { | ||
elasticsearch { | ||
index => "logstash-%{+YYYY.MM.dd}" | ||
hosts=> "${ELASTIC_HOSTS}" | ||
user=> "${ELASTIC_USER}" | ||
password=> "${ELASTIC_PASSWORD}" | ||
cacert=> "certs/ca/ca.crt" | ||
} | ||
} |
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