blob: af62dc30ca2ea3ec36ad74fc49fb81358ddae694 [file] [log] [blame]
Jack Lucasd41dbdb2021-02-16 11:07:28 -05001{{/*
2#============LICENSE_START========================================================
3# ================================================================================
4# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
5# Modifications Copyright © 2018 Amdocs, Bell Canada
6# Copyright (c) 2021 J. F. Lucas. All rights reserved.
7# ================================================================================
8# Licensed under the Apache License, Version 2.0 (the "License");
9# you may not use this file except in compliance with the License.
10# You may obtain a copy of the License at
11#
12# http://www.apache.org/licenses/LICENSE-2.0
13#
14# Unless required by applicable law or agreed to in writing, software
15# distributed under the License is distributed on an "AS IS" BASIS,
16# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17# See the License for the specific language governing permissions and
18# limitations under the License.
19# ============LICENSE_END=========================================================
20*/}}
21{{/*
22dcaegen2-services-common.filebeatConfiguration:
23This template generates configuration data for filebeat (log file aggregation).
24
25The template is used to create a configMap mounted by a filebeat sidecar pod
26running alongside a DCAE microservice pod.
27
28See dcaegen2-services-common.configMap for more information.
29*/}}
Jack Lucasd41dbdb2021-02-16 11:07:28 -050030filebeat.prospectors:
31#it is mandatory, in our case it's log
32- input_type: log
33 #This is the canolical path as mentioned in logback.xml, *.* means it will monitor all files in the directory.
34 paths:
35 - /var/log/onap/*/*/*/*.log
36 - /var/log/onap/*/*/*.log
37 - /var/log/onap/*/*.log
38 #Files older than this should be ignored.In our case it will be 48 hours i.e. 2 days. It is a helping flag for clean_inactive
39 ignore_older: 48h
40 # Remove the registry entry for a file that is more than the specified time. In our case it will be 96 hours, i.e. 4 days. It will help to keep registry records with in limit
41 clean_inactive: 96h
42
43
44# Name of the registry file. If a relative path is used, it is considered relative to the
45# data path. Else full qualified file name.
46#filebeat.registry_file: ${path.data}/registry
47
48
49output.logstash:
50 #List of logstash server ip addresses with port number.
51 #But, in our case, this will be the loadbalancer IP address.
52 #For the below property to work the loadbalancer or logstash should expose 5044 port to listen the filebeat events or port in the property should be changed appropriately.
53 hosts: ["{{.Values.filebeatConfig.logstashServiceName}}.{{.Release.Namespace}}:{{.Values.filebeatConfig.logstashPort}}"]
54 #If enable will do load balancing among availabe Logstash, automatically.
55 loadbalance: true
56
57 #The list of root certificates for server verifications.
58 #If certificate_authorities is empty or not set, the trusted
59 #certificate authorities of the host system are used.
60 #ssl.certificate_authorities: $ssl.certificate_authorities
61
62 #The path to the certificate for SSL client authentication. If the certificate is not specified,
63 #client authentication is not available.
64 #ssl.certificate: $ssl.certificate
65
66 #The client certificate key used for client authentication.
67 #ssl.key: $ssl.key
68
69 #The passphrase used to decrypt an encrypted key stored in the configured key file
70 #ssl.key_passphrase: $ssl.key_passphrase
71
72logging:
73 level: debug
74
75 # enable file rotation with default configuration
76 to_files: true
77
78 # do not log to syslog
79 to_syslog: false
80
81 files:
82 path: /usr/share/filebeat/logs
83 name: mybeat.log
84 keepfiles: 7