filebeat

by log10x

Helm chartv1.5.3App 1.1.183Verified publisher

A Helm chart for Kubernetes for Filebeat + 10x Observability engine

About this chart

Filebeat + 10x Helm Chart

Log10x enhanced Filebeat Helm chart for Kubernetes.

Description

This Helm chart deploys Filebeat as a DaemonSet (or Deployment) with integrated Log10x engine for log cost analytics and optimization.

Based on: elastic/helm-charts/filebeat

Installing

Install using the Helm repository

# Add the Log10x Elastic Helm charts repo
helm repo add log10x-elastic https://log-10x.github.io/elastic-helm-charts

# Install the chart
helm install my-filebeat log10x-elastic/filebeat -f values.yaml

Install from source

# Clone the repo
git clone https://github.com/log-10x/elastic-helm-charts.git

# Install the chart
helm install my-filebeat ./elastic-helm-charts/charts/filebeat -f values.yaml

Log10x Integration

The Log10x engine is integrated directly into the Filebeat container image. Enable it by configuring the tenx section in your values file:

tenx:
  enabled: true
  licenseJwt: "YOUR-LICENSE-JWT"   # optional; without it the engine evaluates for 30 days. See https://doc.log10x.com/manage/license/
  kind: "receive"  # Options: report, receive, optimize
  variant: "native"  # image tag suffix; "jit" is retired
  runtimeName: "my-filebeat-instance"

  # Optional: Git access token for private repositories
  gitToken: "YOUR-GIT-TOKEN"

  # Optional: GitOps configuration
  config:
    git:
      enabled: true
      url: "https://github.com/YOUR-ORG/YOUR-CONFIG-REPO.git"
      branch: "main"  # Optional
  symbols:
    git:
      enabled: true
      url: "https://github.com/YOUR-ORG/YOUR-SYMBOLS-REPO.git"
      branch: "main"  # Optional
      path: "path/to/symbols"  # Optional

Log10x Modes

ModeDescription
reportRead-only observation. Emits cost and usage metrics without modifying the event stream
receiveFilter mode. Drops events per local or centralized policy
optimizeFilter and losslessly compact events

Licence

The licence is optional. Without one the engine runs on its built-in Free tier on up to 10 nodes, airgapped; above 10 nodes it takes a paid licence.

Supply it in one of two ways.

# The chart creates the Secret.
tenx:
  licenseJwt: "eyJhbGciOi..."

# You manage the Secret; nothing sensitive lands in the values file.
tenx:
  licenseSecret: "my-tenx-licence"
  licenseSecretKey: "license-jwt"

By default the Secret is projected to /etc/tenx/license/<licenseSecretKey> and TENX_LICENSE_FILE points at it, which is what the engine's own bootstrap config recommends: the token never enters the process environment. Set tenx.licenseDelivery: env to inject TENX_LICENSE_KEY by secretKeyRef instead.

tenx.apiKey and tenx.license are deprecated. They used to set TENX_API_KEY, a variable nothing reads: it appears nowhere in the image's config tree and nowhere in the engine binary. They were the licence under the wrong name, so if either is set and no licence is configured, the chart uses the value as the licence JWT rather than leaving the install broken. There is no second credential: the product's "API key" belongs to the console and MCP surfaces, and the forwarder never presents one.

Health checks

The container runs two processes joined by one pipe.

exec filebeat "$@" 2>&1 | tenx-edge run ...

An engine that exits needs no probe. The entrypoint wraps that pipe in set -euo pipefail, so the engine's exit status takes PID 1 down and Kubernetes restarts the container in about three seconds, with or without this chart.

An engine that freezes is what these probes are for, and it is silent. SIGSTOP, a traced process, a deadlock: the pid stays in the process table, nothing breaks the pipe, the entrypoint never returns. Measured on 1.1.39 with the old Filebeat-only probes, a SIGSTOPped engine held the pod 1/1 Ready for 150 seconds while 5.2MB backed up in the pipe. With the engine-aware probes the same freeze fails the next probe 22 seconds in, reporting FAIL: engine pid 12 is stopped (state 'T'): frozen, not running, and the container is restarted at 29 seconds.

With tenx.healthcheck.enabled (the default) both probes run /etc/tenx/probes/tenx-health.sh, which keeps the Filebeat test and adds four engine tests.

TestCatches
pgrep -x tenx-edge finds the processengine exited. Redundant with the entrypoint, kept because it costs nothing
scheduler state is not T, t, Z or Xengine SIGSTOPped, traced, or an unreaped corpse
Filebeat's stdout inode is the engine's stdin inodethe two ends are no longer the same pipe
cumulative CPU advanced within tenx.healthcheck.stallSecondsengine deadlocked while still schedulable

The process test is matched on comm with -x, never on the command line with -f: the probe's own shell mentions tenx-edge, so pgrep -f would match the probe itself and report a dead engine as alive.

Nothing here keys off event flow, because an idle node is a healthy node. The engine accrues CPU on its own timers whatever the traffic: measured idle on 1.1.38, cumulative CPU advanced 33 ticks in 151 seconds, and the longest stretch with no advance at all was 20 seconds. stallSeconds defaults to 60, three times that worst case.

Set tenx.healthcheck.enabled: false to fall back to the Filebeat-only probes. A dead engine still restarts the container through the entrypoint; a frozen one becomes invisible to Kubernetes again.

Configuration

Log10x Configuration

ParameterDescriptionDefault
tenx.enabledEnable Log10x enginetrue
tenx.variantImage tag suffix on log10x/filebeat-10x:<appVersion>-<variant>. Must be jit or native; any other value, or null, fails the render. native is the only variant still built; jit is retired.native
tenx.debugEnable debug loggingfalse
tenx.licenseJwtLog10x licence JWT. Optional: without one the engine runs on its built-in Free tier (up to 10 nodes). When set, the chart stores it in a Secret.""
tenx.licenseSecretName of an existing Secret holding the licence. Takes precedence over licenseJwt.""
tenx.licenseSecretKeyKey inside the licence Secretlicense-jwt
tenx.licenseDeliveryfile projects the Secret and sets TENX_LICENSE_FILE; env injects TENX_LICENSE_KEYfile
tenx.healthcheck.enabledMake the probes observe the engine, not just Filebeattrue
tenx.healthcheck.stallSecondsHow long the engine may burn no CPU before the probes call it frozen60
tenx.healthcheck.readinessFilebeatTestFilebeat test the readiness probe runs: output, http or none. output cannot test output.file; use http there.output
tenx.apiKeyDeprecated. Used to set TENX_API_KEY, which nothing reads. Used as the licence JWT when no licence is configured.""
tenx.licenseDeprecated. Same as tenx.apiKey.""
tenx.kindOperation mode: report, receive, or optimizereceive
tenx.runtimeNameOptional name for this runtime instance""
tenx.gitTokenGit access token for private repositories""
tenx.configFetcherImage.repositoryGit config fetcher imagelog10x/git-config-fetcher
tenx.configFetcherImage.tagGit config fetcher image tag1.0.0
tenx.config.git.enabledEnable fetching config from a git repositoryfalse
tenx.config.git.urlFull HTTPS URL of the config git repository""
tenx.config.git.branchBranch to pull (optional)""
tenx.config.volume.enabledMount a PVC for config (air-gapped)false
tenx.config.volume.claimNamePVC claim name for config volume""
tenx.symbols.git.enabledEnable fetching symbols from a git repositoryfalse
tenx.symbols.git.urlFull HTTPS URL of the symbols git repository""
tenx.symbols.git.branchBranch to pull (optional)""
tenx.symbols.git.pathSub-path within repo for symbols (optional)""
tenx.symbols.volume.enabledMount a PVC for symbols (air-gapped)false
tenx.symbols.volume.claimNamePVC claim name for symbols volume""

Filebeat Configuration

ParameterDescriptionDefault
imageFilebeat Docker imagelog10x/filebeat-10x
imageTagImage tag for both the DaemonSet and the Deployment (defaults to {appVersion}-{variant})""
daemonset.enabledEnable DaemonSet deploymenttrue
daemonset.filebeatConfigFilebeat configuration for DaemonSetsee values.yaml
daemonset.resourcesResource requests and limitssee values.yaml
daemonset.tolerationsTolerations for DaemonSet[]
daemonset.nodeSelectorNode selector for DaemonSet{}
daemonset.secretMountsSecret mounts (e.g., certificates)see values.yaml
deployment.enabledEnable Deployment (instead of DaemonSet)false
deployment.filebeatConfigFilebeat configuration for Deploymentsee values.yaml
hostPathRootRoot path for persistent data/var/lib
extraContainersExtra containers""
extraInitContainersExtra init containers[]
priorityClassNamePriority class name""
updateStrategyUpdate strategy for DaemonSetRollingUpdate

For the complete list of configuration options, see values.yaml.

Usage Notes

  • The chart deploys a DaemonSet by default, collecting logs from all nodes
  • The Log10x engine is bundled in the log10x/filebeat-10x image
  • Default configuration sends logs to Elasticsearch using credentials from elasticsearch-master-credentials secret
  • Kubernetes metadata enrichment is enabled by default
  • The receive and optimize modes use a JavaScript processor to integrate with the Log10x pipeline

Output Limitation

Important: When Log10x is enabled (tenx.enabled: true), do not use output.console as the Filebeat output.

The Log10x engine communicates with Filebeat through a stdout pipe (filebeat ... 2>&1 | tenx-edge run ...). The Filebeat JavaScript processor (tenx-*.js) writes marked events to stdout, and the 10x engine reads them from stdin using a "tenx":true marker to distinguish real events from Filebeat's internal log messages.

output.console also writes to stdout, injecting multi-line pretty-printed JSON into the same pipe. This causes JSON parsing errors in the 10x engine because event boundaries become corrupted.

Supported outputs: output.elasticsearch, output.logstash, output.file, output.kafka, output.redis, and any other output that uses a network protocol or file — anything that does not write to stdout.

For local testing without Elasticsearch, use output.file:

daemonset:
  filebeatConfig:
    filebeat.yml: |
      # ... your inputs ...
      output.file:
        path: "/tmp/filebeat-output"
        filename: filebeat-events
        rotate_every_kb: 10000

Workloads: DaemonSet and Deployment

The chart ships two workloads. The DaemonSet is on by default and collects node logs. The Deployment (deployment.enabled: true) is the singleton for inputs that must run once per cluster rather than once per node, such as the aws input.

Both run the same image and the same in-container engine, and from chart 1.5.0 both are wired for 10x from the same templates in _tenx.tpl: the licence, the engine environment, the engine-aware probes and the git config fetcher.

Before 1.5.0 the Deployment had none of that. It rendered no TENX_* variable at all, so the engine fell back to the limited key baked into the image, failed the licence gate on metricOutput and took the container down through the entrypoint's pipefail. A Deployment install with tenx.enabled at its default of true crash-looped from the first second. Its default filebeatConfig also had no read-back input and no script processor, so even a licensed engine would have had nothing routed to it.

Set daemonset.enabled: false if you want the Deployment alone.

Chart CI

ct install runs one install per file in charts/filebeat/ci/, one for the DaemonSet and one for the Deployment, with tenx.enabled: true. The licence comes from the TENX_LICENSE_JWT repository secret, written to a file and passed as --set-file tenx.licenseJwt=... so the token stays out of the process table; the chart puts it in a Secret of its own.

Pull requests from forks cannot read repository secrets. Those runs install with tenx.enabled=false and the job prints a warning saying the engine went untested, rather than failing on a licence they were never going to have.

Sample Values Files

See the samples directory for example configurations:

  • filebeat-report.yaml - Receiver in read-only mode (metrics-only observation)
  • filebeat-receive.yaml - Receiver in filter mode
  • filebeat-optimize.yaml - Receiver in optimize mode (filter and losslessly compact)

Documentation

License

This chart is licensed under the Apache License 2.0.

Note: The Log10x engine runs on the built-in Free tier on up to 10 nodes; above 10 nodes it takes a paid license. See Log10x Pricing for details.

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.5.3 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