Installed and configured the logstash-filter-json filter for message parsing in JSON out of the box.
This commit is contained in:
parent
0836021533
commit
d84dfb34e0
|
@ -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
|
## Add your filters here
|
||||||
|
|
||||||
|
# Added a default json filter for parsing the "message" field
|
||||||
|
filter {
|
||||||
|
json {
|
||||||
|
source => "message"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
output {
|
output {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
hosts => "elasticsearch:9200"
|
hosts => "elasticsearch:9200"
|
||||||
|
|
Loading…
Reference in New Issue