Skip to Content
KubeSense
Logs/Log Pipelines/Log Pipelines

Log Pipelines

Log pipelines transform, parse, enrich, redact and filter logs before they are indexed.

Log Pipelines allow you to transform, enrich, filter, and process logs before they are indexed. Use pipelines to parse unstructured logs, extract fields, mask or redact sensitive information, block noisy logs, and enrich log data with additional context.

Overview

A pipeline is a Rule Group — a named collection of rules applied to logs from specific workloads or namespaces. Each rule in the group is applied in sequence, and the ordering of rules matters, as each rule operates on the output of the previous one.

Key Concepts

  • Rule Group Name — A unique identifier for the pipeline.
  • Rule Matcher — A pattern (e.g., us-2/log-printer/*, docker-us2/*) that determines which workloads or namespaces this pipeline applies to. Skip the selection to apply the pipeline to all namespaces.
  • Rules — An ordered sequence of transformations applied to matching logs. Rules are executed top-to-bottom; reorder them by dragging to control precedence.

The ordering of rules is important, as it affects the final outcome. A rule applied earlier may change the log structure that subsequent rules operate on. For example, if you Parse a raw log into JSON first, subsequent Extract or Replace rules can target the newly created fields.


Available Rule Types

When creating a pipeline, select the workloads or namespaces to match, then add one or more rules. Rules can parse text, transform fields, enrich attributes, permanently redact values, or protect values for authorized temporary reveal.

Create Pipeline — matcher and available rules


Choosing the Right Rule

Use this table to quickly decide which rule type fits your scenario:

I want to...Use this rule
Convert an unstructured text log into structured JSON fieldsParse
Pull out one specific value from a log fieldExtract
Promote a nested JSON key to a top-level metadata fieldJSON Extract
Permanently redact sensitive data or modify a field valueReplace
Mask sensitive data while allowing authorized temporary revealProtect
Drop noisy or unwanted logs entirelyBlock
Use the application's own timestamp instead of ingestion timeTimestamp Extract
Remove unnecessary fields before indexingRemove Fields
Enrich logs with a new field (e.g., team, environment)Add Field
Convert a JSON object field to a JSON stringStringify JSON Field
Convert a JSON string field to an objectParse JSON Field
Enrich logs from a reference tableLookup
Manage reusable CSV enrichment dataReference Tables

Replace or Protect?

Use Replace when the original value must be permanently rewritten before storage. Use Protect when normal users should see a searchable mask, but authorized users may temporarily reveal the original value. Existing logs are not changed when either rule is added.


Log Transformation Playground

Most rule forms include a playground for testing the current rule before saving the pipeline. Enter a sample log, run the transform, and compare the transformed output with the input. The playground evaluates that rule by itself; it does not run earlier rules in the pipeline. For a rule that targets an attribute, provide a JSON object containing that field. Playground runs do not ingest the sample, save the rule, or modify stored logs.

Protect uses separate optional inputs for the searchable body and attributes JSON. At least one is required, and the preview returns only the sections you supplied. It shows masked values only; encrypted values and key metadata are never included.


Pipeline List

The pipeline list shows all configured rule groups with their status, rule matchers, and timestamps. Each pipeline can be enabled or disabled with a toggle, and the three-dot menu provides options to edit or delete.

Pipeline List

The columns in the pipeline list are:

ColumnDescription
NamePipeline rule group name
Rule MatcherPattern determining which logs this pipeline applies to (e.g., us-2/log-printer/*)
Created AtWhen the pipeline was created
Updated AtWhen the pipeline was last modified

On this page