mirror of
https://github.com/deviantony/docker-elk.git
synced 2025-12-13 18:29:59 +01:00
Installed and configured the logstash-filter-json filter for message parsing in JSON out of the box.
This commit is contained in:
@@ -1 +1,4 @@
|
||||
FROM logstash:latest
|
||||
FROM logstash:latest
|
||||
|
||||
# Install plugins
|
||||
RUN logstash-plugin install logstash-filter-json
|
||||
@@ -6,6 +6,13 @@ input {
|
||||
|
||||
## Add your filters here
|
||||
|
||||
# Added a default json filter for parsing the "message" field
|
||||
filter {
|
||||
json {
|
||||
source => "message"
|
||||
}
|
||||
}
|
||||
|
||||
output {
|
||||
elasticsearch {
|
||||
hosts => "elasticsearch:9200"
|
||||
|
||||
Reference in New Issue
Block a user