logstash

by joaquinito2051

Helm chartv5.1.5App 8.4.3

Logstash is an open source data processing engine. It ingests data from multiple sources, processes it, and sends the output to final destination in real-time. It is a core component of the ELK stack.

About this chart

Logstash packaged by Bitnami

Logstash is an open source data processing engine. It ingests data from multiple sources, processes it, and sends the output to final destination in real-time. It is a core component of the ELK stack.

Overview of Logstash

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/logstash

Introduction

This chart bootstraps a logstash deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+

Installing the Chart

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

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/logstash

These commands deploy logstash on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release statefulset:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release. Use the option --purge to delete all history too.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
nameOverrideString to partially override logstash.fullname template (will maintain the release name)""
fullnameOverrideString to fully override logstash.fullname template""
clusterDomainDefault Kubernetes cluster domaincluster.local
commonAnnotationsAnnotations to add to all deployed objects{}
commonLabelsLabels to add to all deployed objects{}
extraDeployArray of extra objects to deploy with the release (evaluated as a template).[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

Logstash parameters

NameDescriptionValue
image.registryLogstash image registrydocker.io
image.repositoryLogstash image repositorybitnami/logstash
image.tagLogstash image tag (immutable tags are recommended)8.4.3-debian-11-r2
image.digestLogstash image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyLogstash image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugSpecify if debug logs should be enabledfalse
hostAliasesAdd deployment host aliases[]
configFileNameLogstash configuration file name. It must match the name of the configuration file mounted as a configmap.logstash.conf
enableMonitoringAPIWhether to enable the Logstash Monitoring API or not Kubernetes cluster domaintrue
monitoringAPIPortLogstash Monitoring API Port9600
extraEnvVarsArray containing extra env vars to configure Logstash[]
extraEnvVarsSecretTo add secrets to environment""
extraEnvVarsCMTo add configmaps to environment""
inputInput Plugins configuration""
filterFilter Plugins configuration""
outputOutput Plugins configuration""
existingConfigurationName of existing ConfigMap object with the Logstash configuration (input, filter, and output will be ignored).""
enableMultiplePipelinesAllows user to use multiple pipelinesfalse
extraVolumesArray to add extra volumes (evaluated as a template)[]
extraVolumeMountsArray to add extra mounts (normally used with extraVolumes, evaluated as a template)[]
serviceAccount.createEnable creation of ServiceAccount for Logstash podstrue
serviceAccount.nameThe name of the service account to use. If not set and create is true, a name is generated""
serviceAccount.automountServiceAccountTokenAllows automount of ServiceAccountToken on the serviceAccount createdtrue
serviceAccount.annotationsAdditional custom annotations for the ServiceAccount{}
containerPortsArray containing the ports to open in the Logstash container (evaluated as a template)[]
initContainersAdd additional init containers to the Logstash pod(s)[]
sidecarsAdd additional sidecar containers to the Logstash pod(s)[]
replicaCountNumber of Logstash replicas to deploy1
updateStrategy.typeUpdate strategy type (RollingUpdate, or OnDelete)RollingUpdate
podManagementPolicyPod management policyOrderedReady
podAnnotationsPod annotations{}
podLabelsExtra labels for Logstash pods{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
affinityAffinity for pod assignment{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
priorityClassNamePod priority""
schedulerNameName of the k8s scheduler (other than default)""
terminationGracePeriodSecondsIn seconds, time the given to the Logstash pod needs to terminate gracefully""
`topologySpr

Deploy logstash with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has logstash 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 chartlogstash is pinned at v5.1.5 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