X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fdevops.git;a=blobdiff_plain;f=installers%2Fdocker%2Fosm_elk%2Ffilebeat.yml;fp=installers%2Fdocker%2Fosm_elk%2Ffilebeat.yml;h=6769a9f8a97501d6ea726f1364fa9501c5809482;hp=0000000000000000000000000000000000000000;hb=3846a92d650ff10c79887fbb1785bbc63035ebaf;hpb=5d0de92d12be3a2522fe36bdb8fdbae3d939d156 diff --git a/installers/docker/osm_elk/filebeat.yml b/installers/docker/osm_elk/filebeat.yml new file mode 100644 index 00000000..6769a9f8 --- /dev/null +++ b/installers/docker/osm_elk/filebeat.yml @@ -0,0 +1,51 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +######################## Filebeat Configuration ############################ + +filebeat.inputs: +#------------------------------ Docker input -------------------------------- +# Experimental: Docker input reads and parses `json-file` logs from Docker +- type: docker + enabled: true + # Combine partial lines flagged by `json-file` format + #combine_partials: true + + # Use this to read from all containers, replace * with a container id to read from one: + containers: + # stream: all # can be all, stdout or stderr + ids: + - '*' + +processors: +- add_docker_metadata: ~ +# +# The following example enriches each event with host metadata. +# +#processors: +#- add_host_metadata: +# netinfo.enabled: false +# + +#-------------------------- Elasticsearch output ------------------------------- +output.elasticsearch: + # Boolean flag to enable or disable the output module. + #enabled: true + + # Array of hosts to connect to. + # Scheme and port can be left out and will be set to the default (http and 9200) + # In case you specify and additional path, the scheme is required: http://localhost:9200/path + # IPv6 addresses should always be defined as: https://[2001:db8::1]:9200 + hosts: ["elasticsearch:9200"] + + +logging.to_files: true