filebeat

by joaquinito2051

Helm chartv1.7.0App 6.7.0

A Helm chart to collect Kubernetes logs with filebeat

About this chart

Filebeat

filebeat is used to ship Kubernetes and host logs to multiple outputs.

Prerequisites

  • Kubernetes 1.9+

Note

By default this chart only ships a single output to a file on the local system. Users should set config.output.file.enabled=false and configure their own outputs as documented

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release <helm-repo>/filebeat

$ helm install --name my-release stable/filebeat

Configuration

The following table lists the configurable parameters of the filebeat chart and their default values.

ParameterDescriptionDefault
image.repositoryDocker image repodocker.elastic.co/beats/filebeat-oss
image.tagDocker image tag6.7.0
image.pullPolicyDocker image pull policyIfNotPresent
image.pullSecretsSpecify image pull secretsnil
config.filebeat.config.prospectors.pathMounted filebeat-prospectors configmap${path.config}/prospectors.d/*.yml
config.filebeat.config.prospectors.reload.enabledReload prospectors configs as they changefalse
config.filebeat.config.modules.path${path.config}/modules.d/*.yml
config.filebeat.config.modules.reload.enabledReload module configs as they changefalse
config.processors- add_cloud_metadata
config.filebeat.prospectorssee values.yaml
config.output.file.path"/usr/share/filebeat/data"
config.output.file.filenamefilebeat
config.output.file.rotate_every_kb10000
config.output.file.number_of_files5
config.http.enabledfalse
config.http.port5066
overrideConfigIf overrideConfig is not empty, filebeat chart's default config won't be used at all.{}
data.hostPathPath on the host to mount to /usr/share/filebeat/data in the container./var/lib/filebeat
indexTemplateLoadList of Elasticsearch hosts to load index template, when logstash output is used[]
commandCustom command (Docker Entrypoint)[]
argsCustom args (Docker Cmd)[]
pluginsList of beat plugins[]
extraVarsA list of additional environment variables[]
extraVolumesAdd additional volumes[]
extraVolumeMountsAdd additional mounts[]
extraInitContainersAdd additional initContainers[]
resources{}
priorityClassNamepriorityClassNamenil
nodeSelector{}
annotations{}
tolerations[]
affinity{}
rbac.createSpecifies whether RBAC resources should be createdtrue
serviceAccount.createSpecifies whether a ServiceAccount should be createdtrue
serviceAccount.namethe name of the ServiceAccount to use""
podSecurityPolicy.enabledShould the PodSecurityPolicy be created. Depends on rbac.create being set to true.false
podSecurityPolicy.annotationsAnnotations to be added to the created PodSecurityPolicy:""
privilegedSpecifies wheter to run as privilegedfalse

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example, Specify each parameter using the --set key=value[,key=value] argument to helm install.

$ helm install --name my-release -f values.yaml <helm-repo>/filebeat

Deploy filebeat with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has filebeat on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartfilebeat is pinned at v1.7.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply