> For the complete documentation index, see [llms.txt](https://docs.apica.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apica.io/flow/pipeline-management/data-flow-pipelines-new.md). Agents can also search and read this documentation through its [MCP server](https://docs.apica.io/~gitbook/mcp).

# Configuring Pipelines

The pipeline is a series of processes through which telemetry data flows systematically. A pipeline can be understood as a grouping of rules that perform certain actions. For example, an extract pipeline can have rules that extract or normalize the data. Similarly, a filter pipeline can have rules that drop logs/fields and redact values from the incoming message. Pipelines can be arranged in a specific order to achieve efficient operation on the incoming data.

## Creating a Pipeline

1. Select **Explore** → **Pipelines**.
2. Select **Actions** → **Create Pipeline**.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2F7KQ3bbzolS0mDtLHZOc9%2Fimage.png?alt=media&amp;token=772410df-38a9-4326-8434-992692b8f2ad" alt=""><figcaption><p>Navigating to Pipeline Page</p></figcaption></figure>

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FpitmwDIn4qWhN8xMIWiZ%2Fimage.png?alt=media&amp;token=879bbd03-698e-4cfe-9212-0d46d34e153b" alt=""><figcaption><p>Actions button to create Pipeline</p></figcaption></figure>

The builder has two panels: **Pipeline Preview** and **Pipeline Configuration**.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FCWSXTaLnsGExhVHhl0Tf%2FScreenshot%20from%202026-09-18%2015-00-05.png?alt=media&amp;token=986c3bfb-b828-4b4a-9f65-5c0f2ac626ea" alt=""><figcaption></figcaption></figure>

Select **EXISTING RULES** to attach saved rules inin **Configure Rules for - \<pipeline>**.

Each rule opens in **Pipeline Configuration**. Complete its shared fields, condition, and rule-specific settings. See [Rules](https://docs.apica.io/flow/rules.md) for shared fields and conditions.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2F1E8UvFATTM7m8mSWlEaH%2Fimage.png?alt=media&amp;token=9a963592-93fe-42d1-a479-242ba9b84236" alt=""><figcaption><p>A new drop rule was added</p></figcaption></figure>

The rule list shows **Rule Name**, **Rule Type**, **Savings**, **Enabled**, and **Actions**. Drag a rule to reorder execution. Use **Enabled** to switch a rule on or off.

Use **Expand rule** to open one rule at a time. Select **Delete rule** to remove a rule. Confirm **Are you sure you want to remove the rule?**. The deletion takes effect when you save.

Opening a pipeline from **Pipelines** uses a full page. Opening it from the topology graph uses **Configure Pipeline** as a modal. Both views have **Close** and **Save** buttons.

Validation runs when you select **Save**. A banner lists all issues. For each missing required rule field, it displays: `&lt;Field(s)&gt; is a required field and cannot be empty in &lt;rule name&gt; rule.` A missing pipeline name displays: `Pipeline name is a required field and cannot be empty.`

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FlXCNXEaVcJ95B9KKPcJ2%2FScreenshot%202025-05-02%20215739.png?alt=media&amp;token=934e64ca-1362-4340-ac32-135290cf7ab3" alt=""><figcaption><p>Created pipeline displayed in the pipeline list</p></figcaption></figure>

### Editing a Pipeline

To edit a pipeline, open **Explore** → **Pipelines**. Select the ellipsis beside the pipeline, then select **Configure Pipeline**. It opens as a full page from **Pipelines**.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FKmuBoEn4yMO18AMmEgZd%2Fimage.png?alt=media&amp;token=cb4b85e6-bf2f-4e57-a61a-5eea9b711ead" alt=""><figcaption></figcaption></figure>

## Pipeline Preview

Pipeline Preview updates automatically after every pipeline or rule change. It displays the selected logs and changes in the `Diff` view.

#### Use Sample Logs:

Sample Logs allows you to provide custom logs to preview:

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2F3bebIyJgnfpnPLM1tlEM%2Fimage.png?alt=media&amp;token=89098921-79b3-4236-bf31-63ab5c566ab0" alt=""><figcaption><p>The dropdown helps select the sample logs for preview</p></figcaption></figure>

#### Use Data Flows:

Using Dataflows, you can select data that was previously ingested into the platform and run a preview.\
**Note:** If the data from the selected namespace and application has already passed through the current pipeline, the preview may not fully reflect the intended changes.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FtC8hX5KEU7IzdBN9fbHi%2Fimage.png?alt=media&amp;token=64da56f3-1ee2-49cc-99a5-cb5b49865269" alt=""><figcaption></figcaption></figure>

#### Use GenAI:

Using the GenAi option, you can interact with an AI Agent to curate the right set of logs for the pipeline preview.<br>

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FBqtmpHblVdH43vmqqWbE%2Fimage.png?alt=media&amp;token=81f6038d-1aac-4260-98dc-71f4251b8287" alt=""><figcaption></figcaption></figure>

#### Use Captured Data:

With Captured Data, lookup files that contain logs can be used for running a pipeline preview.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FSxbPPd4SzbGt4webN2vy%2Fimage.png?alt=media&amp;token=2c36e781-ce7f-4437-8673-eeec3b1a12d3" alt=""><figcaption></figcaption></figure>

#### Live Tail

With Live tail, use the raw logs that are getting ingested in real time to run the pipeline preview.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FyXqlvyz8r0G2BpRnwgxl%2Fimage.png?alt=media&amp;token=11e2aa78-3be5-434f-ad7a-390a8cf19c76" alt=""><figcaption></figcaption></figure>

#### View Preview Changes:

To view the preview changes, click on the `Diff` tab in the Pipeline Preview Section:

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FeXk7j0DV51VrNLhFMFDd%2FScreenshot%20from%202026-08-28%2019-22-32.png?alt=media&amp;token=94652be0-f742-4d55-a2fb-204798a8c5b7" alt=""><figcaption></figcaption></figure>

After configuring the pipeline and its rules and testing them, click on the Save button in the bottom right section of the page.

### Apply Pipeline

Use **Apply Pipeline** to run the pipeline on a dataflow (a namespace and application). Open it from the pipeline list (ellipsis → **Apply Pipeline**) or from the pipeline builder.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2Fk8QIh553ZWFTjAwMRKlM%2Fimage.png?alt=media&amp;token=cc3c8d05-fe41-455a-b43d-5032eaf8e389" alt=""><figcaption><p>Apply Pipeline to associate the Namespace and Application to it</p></figcaption></figure>

1. Select the time range, then the **Namespace** and **Application**.
2. Select the **Stage** at which the pipeline runs for that dataflow (see below).
3. At the **FORWARD** stage, select the **Destinations** the pipeline runs for.
4. Under **Configured Pipelines**, check the execution order. The pipeline being applied is added at the bottom of its stage, outlined in green. Drag to reorder within a stage.
5. Click **Apply**.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2F0Bx2GEWLA21ZdLFhW7rp%2Fapply-pipeline.png?alt=media&amp;token=328b1fbf-8670-4834-814b-1d864c5a81c1" alt=""><figcaption></figcaption></figure>

#### Stage

A pipeline is applied to a dataflow at one of three stages. The stage decides which copy of the data the pipeline shapes.

| Stage                | Runs on                                                    | Effect                                                                             |
| -------------------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| **COMMON** (default) | Incoming data at ingest, before it is stored or forwarded. | Processed logs flow to both InstaStore and every configured destination.           |
| **LAKE**             | Only the copy written to InstaStore.                       | Destinations receive logs directly, without passing through this pipeline.         |
| **FORWARD**          | Only the copy sent to forwarders.                          | The stored copy is unchanged. You choose which destinations the pipeline runs for. |

COMMON pipelines always run before LAKE and FORWARD pipelines on the same dataflow.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FgvHdWMWivaav6qqwiio4%2Fapply-common.png?alt=media&amp;token=a790ec08-297e-4c3a-b47b-f2a6e978cd13" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2F4G0x9nX37oJ6Ni4F31Xa%2Fqpply-lqke.png?alt=media&amp;token=e065fb72-4680-4d9c-a090-503fde24fc53" alt=""><figcaption></figcaption></figure>

**FORWARD rules only work at the FORWARD stage.** A pipeline that contains a FORWARD rule cannot be applied at COMMON or LAKE. If you select either, the modal shows:

> The pipeline **\<pipeline>** contains FORWARD rules that only take effect at the FORWARD stage. This pipeline cannot be applied at the \<stage> stage. Select the FORWARD stage to apply this pipeline.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2Fm2L5uaLKoJ2OMSD6NhRm%2FScreenshot%20from%202026-10-16%2019-19-23.png?alt=media&amp;token=be93380b-ed46-47f0-9a8e-16c81ee3651a" alt=""><figcaption></figcaption></figure>

**Apply** stays disabled until you select FORWARD. The same check is enforced by the server, so applying through the API, CLI, or Venn is rejected with:

`a pipeline with FORWARD rules can only be applied at the FORWARD stage, not <stage>: FORWARD rules run only on the copy handed to the forwarders and would have no effect`

Adding a FORWARD rule to a pipeline that is already applied at COMMON or LAKE is rejected on save for the same reason; the error names the dataflow.

**Changing the stage of an applied pipeline.** If the pipeline is already applied to the selected dataflow at a different stage, the modal warns:

> '\<pipeline>' is currently applied to \<namespace::application> at \<stage> stage. Applying will move it to \<stage> stage.

Moving a pipeline away from FORWARD clears its destination selection. The warning says where logs go after the move: to LAKE, destinations receive logs directly without this pipeline; to COMMON, processed logs flow to both InstaStore and all configured destinations.

#### Destinations (FORWARD stage only)

At the FORWARD stage the **Destinations** list shows **All destinations** plus every forwarder mapped to the selected dataflow.

* Pick one or more destinations to run the pipeline only on the copy sent to each of them.
* Pick **All destinations** to run it once on the shared copy before the fan-out.
* InstaStore always receives the full stream.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2F3QN0u0iRTsFneRfxil9Y%2Fapply-forward.png?alt=media&amp;token=b2f1ad0b-21a4-429f-ac39-efcb9bc8d8b9" alt=""><figcaption></figcaption></figure>

A selection is required: the button reads **Select destination** until you pick one. If a destination is not mapped to the selected dataflow, the modal warns that the pipeline will not run for it there.

If the pipeline is already applied at FORWARD with different destinations, the modal warns:

> '\<pipeline>' currently runs on \<namespace::application> for \<destinations>. Applying will change that to \<destinations>.

**Removing a pipeline from a dataflow.** Clear all destinations on a pipeline that is already applied at FORWARD. The button changes to **Remove from Dataflow**. Confirm **Remove pipeline from dataflow**: the pipeline no longer runs at any stage on that dataflow.

#### Configured Pipelines

**Configured Pipelines (Drag to Reorder)** lists every pipeline on the selected dataflow, grouped into **COMMON**, **LAKE**, and **FORWARD** panels with a count per stage. The panel for the selected stage is open; expand the others to view them. Drag to reorder within a stage; execution follows this order after you apply. A pipeline applied at FORWARD with specific destinations shows them beside its name.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2FgvHdWMWivaav6qqwiio4%2Fapply-common.png?alt=media&amp;token=a790ec08-297e-4c3a-b47b-f2a6e978cd13" alt=""><figcaption></figcaption></figure>

### Pipeline View:

All the Dataflows linked are displayed under the Pipeline and can be accessed using the Arrow icon.

<figure><img src="https://2948796384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmzGprckLqwd5v6bs6m%2Fuploads%2F3jpKMSK8M5nB9jUQYWVf%2Fimage.png?alt=media&amp;token=e61701e6-a485-426d-8189-cae4b1efce88" alt=""><figcaption><p>All the linked Dataflow are displayed under the Pipeline. Along with the stats.</p></figcaption></figure>

The Stats displays the Events Ingested, Events Processed and Saved Bytes:

* Green Indicates the total `Events Ingested`.
* Orange Indicates the `Events Processed`.
* Red Indicates the `Saved Bytes`.

Pipelines stats is the total amount of Events and Saved Bytes and the data for each of the associated Dataflow is displayed against the individual Dataflows.
