blob: 6769a9f8a97501d6ea726f1364fa9501c5809482 [file] [log] [blame]
lavado3846a922018-11-01 00:40:20 -07001# Licensed under the Apache License, Version 2.0 (the "License"); you may
2# not use this file except in compliance with the License. You may obtain
3# a copy of the License at
4
5# http://www.apache.org/licenses/LICENSE-2.0
6
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10# License for the specific language governing permissions and limitations
11# under the License.
12
13######################## Filebeat Configuration ############################
14
15filebeat.inputs:
16#------------------------------ Docker input --------------------------------
17# Experimental: Docker input reads and parses `json-file` logs from Docker
18- type: docker
19 enabled: true
20 # Combine partial lines flagged by `json-file` format
21 #combine_partials: true
22
23 # Use this to read from all containers, replace * with a container id to read from one:
24 containers:
25 # stream: all # can be all, stdout or stderr
26 ids:
27 - '*'
28
29processors:
30- add_docker_metadata: ~
31#
32# The following example enriches each event with host metadata.
33#
34#processors:
35#- add_host_metadata:
36# netinfo.enabled: false
37#
38
39#-------------------------- Elasticsearch output -------------------------------
40output.elasticsearch:
41 # Boolean flag to enable or disable the output module.
42 #enabled: true
43
44 # Array of hosts to connect to.
45 # Scheme and port can be left out and will be set to the default (http and 9200)
46 # In case you specify and additional path, the scheme is required: http://localhost:9200/path
47 # IPv6 addresses should always be defined as: https://[2001:db8::1]:9200
48 hosts: ["elasticsearch:9200"]
49
50
51logging.to_files: true