2020-05-12 20:07:50 -04:00
|
|
|
# Default values for elastic-stack.
|
|
|
|
# This is a YAML-formatted file.
|
|
|
|
# Declare variables to be passed into your templates.
|
|
|
|
|
2019-10-22 11:06:06 -04:00
|
|
|
elasticsearch:
|
|
|
|
enabled: true
|
2020-05-12 20:07:50 -04:00
|
|
|
# prefix elasticsearch resources with the name of the releases
|
|
|
|
# looks like we can't use {{ .Release.Name }}-elasticsearch
|
|
|
|
# https://github.com/helm/helm/issues/2133
|
|
|
|
clusterName: "elastic-stack-elasticsearch"
|
2019-10-22 11:06:06 -04:00
|
|
|
|
|
|
|
filebeat:
|
|
|
|
enabled: true
|
2021-05-13 23:10:11 -04:00
|
|
|
extraVolumes:
|
|
|
|
- name: varlog
|
|
|
|
hostPath:
|
|
|
|
path: /var/log
|
|
|
|
extraVolumeMounts:
|
|
|
|
- name: varlog
|
|
|
|
mountPath: /var/log
|
|
|
|
readOnly: true
|
2020-05-12 20:07:50 -04:00
|
|
|
filebeatConfig:
|
|
|
|
filebeat.yml: |
|
|
|
|
output.file.enabled: false
|
2020-06-30 11:08:48 -04:00
|
|
|
setup.ilm.enabled: false
|
|
|
|
setup.template.name: 'filebeat'
|
|
|
|
setup.template.pattern: 'filebeat-*'
|
2020-05-12 20:07:50 -04:00
|
|
|
output.elasticsearch:
|
|
|
|
hosts: ["http://elastic-stack-elasticsearch-master:9200"]
|
2020-06-30 11:08:48 -04:00
|
|
|
index: "filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"
|
2020-05-12 20:07:50 -04:00
|
|
|
filebeat.inputs:
|
|
|
|
- type: container
|
2021-05-13 23:10:11 -04:00
|
|
|
format: cri
|
|
|
|
paths:
|
|
|
|
- '/var/log/containers/*.log'
|
|
|
|
json.keys_under_root: true
|
|
|
|
json.ignore_decoding_error: true
|
|
|
|
processors:
|
|
|
|
- add_id:
|
|
|
|
target_field: tie_breaker_id
|
|
|
|
- add_cloud_metadata: ~
|
|
|
|
- add_kubernetes_metadata:
|
|
|
|
host: ${NODE_NAME}
|
|
|
|
matchers:
|
|
|
|
- logs_path:
|
|
|
|
logs_path: "/var/log/containers/"
|
|
|
|
- decode_json_fields:
|
|
|
|
fields: ["message"]
|
|
|
|
when:
|
|
|
|
equals:
|
|
|
|
kubernetes.container.namespace: "gitlab-managed-apps"
|
|
|
|
kubernetes.container.name: "modsecurity-log"
|
|
|
|
- type: container
|
|
|
|
format: docker
|
2020-05-12 20:07:50 -04:00
|
|
|
paths:
|
|
|
|
- '/var/lib/docker/containers/*/*.log'
|
|
|
|
json.keys_under_root: true
|
|
|
|
json.ignore_decoding_error: true
|
|
|
|
processors:
|
|
|
|
- add_id:
|
|
|
|
target_field: tie_breaker_id
|
|
|
|
- add_cloud_metadata: ~
|
|
|
|
- add_kubernetes_metadata: ~
|
|
|
|
kibana:
|
2019-10-22 11:06:06 -04:00
|
|
|
enabled: false
|
2020-05-12 20:07:50 -04:00
|
|
|
elasticsearchHosts: "http://elastic-stack-elasticsearch-master:9200"
|
2019-10-22 11:06:06 -04:00
|
|
|
|
|
|
|
elasticsearch-curator:
|
2020-01-16 13:08:46 -05:00
|
|
|
enabled: true
|
|
|
|
configMaps:
|
|
|
|
config_yml: |-
|
|
|
|
---
|
|
|
|
client:
|
|
|
|
hosts:
|
2020-05-12 20:07:50 -04:00
|
|
|
- elastic-stack-elasticsearch-master
|
2020-01-16 13:08:46 -05:00
|
|
|
port: 9200
|
|
|
|
action_file_yml: |-
|
|
|
|
---
|
|
|
|
actions:
|
|
|
|
1:
|
|
|
|
action: delete_indices
|
|
|
|
description: >-
|
2020-02-06 19:09:12 -05:00
|
|
|
Delete indices older than 30 days (based on index name), for filebeat-
|
2020-01-16 13:08:46 -05:00
|
|
|
prefixed indices. Ignore the error if the filter does not result in an
|
|
|
|
actionable list of indices (ignore_empty_list) and exit cleanly.
|
|
|
|
options:
|
|
|
|
ignore_empty_list: True
|
2020-05-12 20:07:50 -04:00
|
|
|
allow_ilm_indices: True
|
2020-01-16 13:08:46 -05:00
|
|
|
filters:
|
|
|
|
- filtertype: pattern
|
|
|
|
kind: prefix
|
|
|
|
value: filebeat-
|
|
|
|
- filtertype: age
|
|
|
|
source: name
|
|
|
|
direction: older
|
|
|
|
timestring: '%Y.%m.%d'
|
|
|
|
unit: days
|
2020-02-06 19:09:12 -05:00
|
|
|
unit_count: 30
|