---
title: "Processing steps"
product: "Axoflow 0.90"
url: "https://axoflow.com/docs/axoflow/0.90/data-management/processing/"
description: "Add and configure the processing steps of a flow to classify, parse, and filter data, and reuse them as custom steps."
last_modified: "2026-11-11T15:26:39+01:00"
---

> For the complete documentation index, see [llms.txt](https://axoflow.com/docs/axoflow/0.90/llms.txt).

# Processing steps

Add and configure the processing steps of a flow to classify, parse, and filter data, and reuse them as custom steps.

[Flows](https://axoflow.com/docs/axoflow/0.90/data-management/flow-overview/index.md) can include a list of *processing steps* to select and transform the messages. The [AxoRouters](https://axoflow.com/docs/axoflow/0.90/architecture/index.md#router) of the flow send all the log messages they receive through the processing steps. Then they forward the filtered and processed messages to the destination of the flow.

**CAUTION:**

AxoRouter runs the processing steps in the order they appear in the flow. Make sure to put the steps in the correct order.

To add processing steps to an existing flow, complete the following steps.

1. Open the **Flows** page and select the flow you want to modify. Alternatively, select [`⌘/Ctrl + K`](https://axoflow.com/docs/axoflow/0.90/reference/global-search/index.md)
   and enter the name of the flow.
2. Select **Process > Add New Processing Step**.
3. Select the type of the processing step to add.

   ![Process step types](https://axoflow.com/docs/axoflow/0.90/data-management/processing/process-types_hu_a73057a07a7462e6.webp)

   The following types of processing steps are available:

   - [**Classify**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#classify)
     : Automatically classify the data and assign vendor, product, and service labels. This step (or its equivalent in the [Connector rule](https://axoflow.com/docs/axoflow/0.90/data-sources/connector-rules/index.md)
     ) is required for the [**Parse**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#parse)
     and [**Reduce**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#reduce)
     step to work.
   - [**FilterX**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#filterx)
     : Execute an arbitrary [FilterX](https://axoflow.com/docs/axosyslog-core/filterx/)
     snippet.
   - [**Fix Timestamp**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#fix-timestamp)
     : Correct timestamps that have a wrong or missing timezone, or replace them with the time AxoRouter received the message.
   - [**Normalize**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#normalize)
     : Normalize the data according to the specified standard: Azure Monitor, Cortex Data Model (XDM), CrowdStrike Parsing Standard (**CrowdStrike**), Dynatrace, Elastic Common Schema (**ECS**), or Open Cybersecurity Schema Framework (**OCSF**).
   - [**Parse**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#parse)
     : Automatically parse the data to extract structured information from the content of the message. The [**Classify**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#classify)
     step (or its equivalent in the [Connector rule](https://axoflow.com/docs/axoflow/0.90/data-sources/connector-rules/index.md)
     ) is required for the **Parse** step to work.
   - [**Probe**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#probe)
     : A measurement point that provides metrics about the throughput of the flow.
   - [**Reduce**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#reduce)
     : Automatically remove redundant content from the messages. The [**Classify**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#classify)
     and [**Parse**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#parse)
     steps (or their equivalent in the [Connector rule](https://axoflow.com/docs/axoflow/0.90/data-sources/connector-rules/index.md)
     ) are required for the **Reduce** step to work.
   - [**Regex**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#regex)
     : Execute a regular expression on the message.
   - [**Select Messages**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#select-messages)
     : Filter the messages using a query. Only the matching messages go to the next steps.
   - [**Set Fields**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#set-fields)
     : Set the value of one or more fields on the message object.
   - [**Unset Field**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#unset-field)
     : Unset the specified field of the message object.

   To add a [custom step](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#custom-steps)
   that you’ve created earlier, select the **Custom** tab, then select the custom step.
4. Configure the processing step as needed for your environment.
5. (Optional) To apply the processing step only to specific messages from the flow, add a condition to the step: select more_vert
   > **Add Condition** on the step, enter the condition, then select **Save**. The condition appears in the header of the step. Conditions act as filters, but apply only to this step. The step doesn’t change the messages that don’t match the condition. These messages go to the next step. For details about the message schema and the available fields, see [Message schema reference](https://axoflow.com/docs/axoflow/0.90/reference/message-schema/reference/index.md).

   Conditions use AQL queries. You can make complex filters with the Equals, Contains (partial match), and Match (regular expression match) operators. Note that:

   - [AxoConsole](https://axoflow.com/docs/axoflow/0.90/architecture/index.md#console) autocompletes the built-in and custom labels and field names, as well as their most frequent values, but doesn’t autocomplete labels and variables created by data parsing and processing steps. See the [Message schema](https://axoflow.com/docs/axoflow/0.90/reference/message-schema/index.md) for details.
   - You can use the `AND` and `OR` operators to combine expressions, and also parentheses if needed.
6. (Optional) To describe the purpose of the step, select more_vert
   > **Add Description** on the step, enter the description, then select **Save**.
7. (Optional) To change the location of the step in the flow, drag the step to a new location.

   The more_vert
   menu of the step also has the following actions:

   - **Duplicate**: Insert a copy of the step after the step.
   - **Add Step Before** and **Add Step After**: Insert a new processing step before or after the step.
   - **Delete**: Remove the step from the flow.

   To temporarily turn off a step without removing it, use the toggle in the header of the step.
8. Select **Save**.

## Classify

Automatically classify the data and assign vendor, product, and service labels. This step (or its equivalent in the [Connector rule](https://axoflow.com/docs/axoflow/0.90/data-sources/connector-rules/index.md)
) is a prerequisite for the [**Parse**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#parse)
and [**Reduce**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#reduce)
step, and must be executed before them. AxoRouter can parse data from the [supported data sources](https://axoflow.com/docs/axoflow/0.90/data-sources/appliances/index.md)
. If your source isn’t listed, [contact us](https://axoflow.com/contact)
.

![Classify messages and assign vendor, product, and service labels](https://axoflow.com/docs/axoflow/0.90/data-management/processing/classify_hu_26f9c075738259b1.webp)

## FilterX

Execute an arbitrary [FilterX](https://axoflow.com/docs/axosyslog-core/filterx/)
snippet. The following example sets the `meta.openobserve` variable to a JSON object. The `stream` key of the object gets the value of the `meta.host.labels.team` field. The step uses a condition, so it runs only on messages where the `meta.host.labels.team` field isn’t empty.

- **Condition** (set in the **Add Condition** dialog of the step): `meta.host.labels.team != ''`
- **Statements**:

  ```shell
  meta.openobserve = {"stream": meta.host.labels.team};
  ```

![Apply FilterX transformations on the message](https://axoflow.com/docs/axoflow/0.90/data-management/processing/filterx_hu_582e83694db628e8.webp)

> **Note:**
> To parse a log message that AxoRouter can’t parse automatically, you can use [AI-assisted parsing](https://axoflow.com/docs/axoflow/0.90/data-management/ai-assistant/index.md)
> to create a FilterX processing step.

## Fix timestamp

Correct the timestamp of messages that have a wrong or missing timezone. For example, many devices send their local time without a timezone, so AxoRouter interprets the timestamp in the wrong timezone, and the message appears hours earlier or later than it happened.

*Prerequisite*: The **Fix Timestamp** step requires AxoRouter version 0.78.0 or newer.

Set the following options:

- **Mode**: How to correct the timestamp.

  - **Closest timezone** (default): Use the timezone that brings the timestamp closest to the time AxoRouter received the message. The step keeps the date and time of the timestamp, and changes only its timezone. If no timezone fits, the timestamp stays unchanged. The step doesn’t change [rehydrated](https://axoflow.com/docs/axoflow/0.90/data-management/rehydration/index.md)
    messages in this mode, because their reception time is the time of the rehydration.
  - **Specific timezone**: Use the timezone of the **Timezone source** below. The step keeps the date and time of the timestamp, and changes only its timezone.
  - **Reception time**: Replace the timestamp with the time AxoRouter received the message. Use this mode if the timestamp of the message is unreliable. This mode also sets the timestamp of messages that don’t have one.
- **Timezone source** (only for the **Specific timezone** mode): Select one or more sources. AxoRouter tries them from top to bottom, and uses the first one that provides a timezone. If none of them does, the timestamp stays unchanged.

  - **Custom FilterX expression**: A [FilterX](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#filterx)
    expression that returns the name of a timezone, for example, `meta.host.labels.tz`.
  - **Appliance tz label**: The value of the `tz` label of the source host (appliance) that sent the message, for example, `Europe/Budapest`. For details on adding labels to hosts, see [Custom labels and metadata](https://axoflow.com/docs/axoflow/0.90/onboard-hosts/hosts/add-host-metadata/index.md). This source requires the [**Classify**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#classify)
    step (or its equivalent in the [Connector rule](https://axoflow.com/docs/axoflow/0.90/data-sources/connector-rules/index.md)
    ) before the **Fix Timestamp** step.
  - **AxoRouter tz label**: The value of the `tz` label of the AxoRouter that processes the message. AxoRouters without a `tz` label skip this source.
  - **Fixed timezone**: A timezone name, for example, `Europe/Budapest`. Numeric offsets like `+02:00` don’t work. To set a fixed offset, use the `Etc/GMT` timezone names, but note that their sign is inverted: for UTC+2, use `Etc/GMT-2`. Use this source last, as a fallback for the other sources.
- **Timestamp field**: The field that contains the timestamp to correct. Default value: `log.time_unix_nano`. For details on the available fields, see [Message schema reference](https://axoflow.com/docs/axoflow/0.90/reference/message-schema/reference/index.md).
- **Minimum skew** and **Maximum skew**: Correct the timestamp only if it differs from the reception time by at least the minimum, and at most the maximum skew. Leave them empty for no limit. For example:

  - A **Minimum skew** of `15m` skips differences that no timezone can explain, because the smallest timezone offset in use is a quarter of an hour.
  - A **Maximum skew** of `25h` skips differences that are too large to be a timezone offset, because the largest timezone offset in use is 14 hours.

  The **Minimum skew** can’t be larger than the **Maximum skew**. In **Reception time** mode, the step always sets the timestamp of messages that don’t have one, regardless of the skew limits.

The following example sets the timezone of messages from the `tz` label of the source host. If the host has no such label, it uses the `Europe/Budapest` timezone. The step changes only timestamps that are 15 minutes to 25 hours off from the reception time.

- **Mode**: **Specific timezone**
- **Timezone source**: **Appliance tz label**, **Fixed timezone** (`Europe/Budapest`)
- **Minimum skew**: `15m`
- **Maximum skew**: `25h`

![Fix the timezone of timestamps](https://axoflow.com/docs/axoflow/0.90/data-management/processing/fix-timestamp_hu_5d33e5dfa9dc63a2.webp)

## Normalize

*Prerequisite*: It’s recommended to enable the [**Classify**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#classify)
step (or its equivalent in the [Connector rule](https://axoflow.com/docs/axoflow/0.90/data-sources/connector-rules/index.md)
) when using the **Normalize** step. [Normalization](https://axoflow.com/docs/axoflow/0.90/concepts/normalization/index.md) implicitly performs the [**Parse**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#parse)
step as well.

The **Normalize** step reformats the content of the message to the selected normalization scheme. AxoRouter supports the following normalization schemas:

- Azure Monitor
- [Cortex XSIAM (XDM)](https://docs-cortex.paloaltonetworks.com/r/Cortex-XSIAM/Data-Model-Schema-Guide-for-Cortex-XSIAM/Introduction)
- [CrowdStrike Parsing Standard (CPS)](https://developer.crowdstrike.com/ngsiem/cps/overview/)
  (**CrowdStrike**)
- [Dynatrace](https://docs.dynatrace.com/docs/discover-dynatrace/references/semantic-dictionary/fields)
- [Elastic Common Schema](https://www.elastic.co/docs/reference/ecs)
  (**ECS**)
- [Open Cybersecurity Schema Framework](https://schema.ocsf.io/)
  (**OCSF**)

![Normalize message content](https://axoflow.com/docs/axoflow/0.90/data-management/processing/normalize_hu_1c61c44e1e2ed96f.webp)

## Parse

*Prerequisite*: The [**Classify**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#classify)
step (or its equivalent in the [Connector rule](https://axoflow.com/docs/axoflow/0.90/data-sources/connector-rules/index.md)
) is required for the **Parse** step to work.

The **Parse** step automatically parses the data from the content of the message, and replaces the message content (the `log.body` field in the internal message schema) with the structured information. AxoRouter can parse data from the [supported data sources](https://axoflow.com/docs/axoflow/0.90/data-sources/appliances/index.md)
. If your source isn’t listed, [contact us](https://axoflow.com/contact)
. Alternatively, you can create your own parser using [**FilterX**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#filterx)
processing steps.

For example, if the message content is in the [Common Event Format (CEF)](https://www.microfocus.com/documentation/arcsight/arcsight-smartconnectors-8.3/cef-implementation-standard/Content/CEF/Chapter%201%20What%20is%20CEF.htm)
, AxoRouter creates a structured FilterX dictionary from its content, like this:

```text
CEF:0|KasperskyLab|SecurityCenter|13.2.0.1511|KLPRCI_TaskState|Completed successfully|1|foo=foo bar=bar baz=test
```

Parsed and structured content:

```json
{
"version":"0",
"device_vendor":"KasperskyLab",
"device_product":"SecurityCenter",
"device_version":"13.2.0.1511",
"device_event_class_id":"KLPRCI_TaskState",
"name":"Completed successfully",
"agent_severity":"1",
"foo":"foo",
"bar":"bar",
"baz":"test"
}
```

![Parse message content into structured data](https://axoflow.com/docs/axoflow/0.90/data-management/processing/parse_hu_a1df1fd7f3c48406.webp)

By default, AxoRouter forwards the messages that it can’t parse to the next processing step of the flow. If you want to discard such messages instead, enable the **Drop unparseable messages** option.

> **Note:**
> To parse a log message that AxoRouter can’t parse automatically, you can use [AI-assisted parsing](https://axoflow.com/docs/axoflow/0.90/data-management/ai-assistant/index.md)
> .

## Probe

Set a measurement point that provides metrics about the throughput of the flow. Note that:

- You can’t name your probes `input` and `output`, as these are reserved.
- Probe names can contain only lowercase alphanumeric characters, `-`, and `.`, and must start and end with an alphanumeric character.
- If you add a probe called `filtered` to the flow, AxoRouter uses this point as the input metric data point to calculate the data reduction of the flow in the [**Dashboard**](https://axoflow.com/docs/axoflow/0.90/onboard-hosts/dashboard/index.md#reduction)
  page.

![Add metrics checkpoints to the flow](https://axoflow.com/docs/axoflow/0.90/data-management/processing/probe_hu_4f031bc95c94824f.webp)

For details, see [Flow metrics](https://axoflow.com/docs/axoflow/0.90/data-management/metrics/index.md).

## Reduce

*Prerequisite*: The [**Classify**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#classify)
and [**Parse**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#parse)
steps (or their equivalent in the [Connector rule](https://axoflow.com/docs/axoflow/0.90/data-sources/connector-rules/index.md)
) are required for the **Reduce** step to work.

The **Reduce** step automatically removes redundant content from the messages.

- If you want to keep certain fields unchanged, use the **Keep fields** field. For details on the message fields, see [Message schema](https://axoflow.com/docs/axoflow/0.90/reference/message-schema/index.md).
- To see what changed in a message, add a [**Probe** processing step](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#probe)
  before and after the reduce step, then use [Flow tapping](https://axoflow.com/docs/axoflow/0.90/data-management/flow-tapping/index.md)
  .

For details on how data reduction works, see [Classify and reduce security data](https://axoflow.com/docs/axoflow/0.90/concepts/classify-reduce-security-data/index.md).

![Remove unneeded data from the messages](https://axoflow.com/docs/axoflow/0.90/data-management/processing/reduce_hu_9262743d47d576fe.webp)

## Regex

Use a regular expression to process the message.

- **Input** is an AxoSyslog template string, for example, `${MESSAGE}`. AxoRouter matches the regular expression with this string.
- **Pattern** is a Perl Compatible Regular Expression (PCRE). If you want to match the pattern to the whole string, use the `^` and `$` anchors at the beginning and end of the pattern.

  You can use <https://regex101.com/>
  with the ECMAScript flavor to validate your regex patterns. (For named capture groups, use the `(?<group_name>pattern)` syntax. The `(?P<group_name>pattern)` syntax doesn’t work.)

Named or anonymous capture groups show the parts of the pattern that AxoRouter extracts to the **Field** field. Specify a named capture group like `(?<group_name>pattern)`. Its value is available as `field_name["group_name"]`. AxoRouter numbers the anonymous capture groups. For example, the value of the second group from `(first.*) (bar|BAR)` is available as `field_name["2"]`. When specifying variables, note the following points:

- If you want to include the results in the outgoing message or in its metadata for other processing steps, you must:

  - Reference an existing variable or field. AxoRouter updates this field with the matches.
  - For new variables, use names for the variables that start with the `$` character, or
  - declare them explicitly. For details, see the [FilterX data model](https://axoflow.com/docs/axosyslog-core/filterx/#scoping)
    in the AxoSyslog documentation.
- If the pattern doesn’t match, AxoRouter sets the field to an empty dictionary (`{}`). For details about the message schema and the available fields, see [Message schema reference](https://axoflow.com/docs/axoflow/0.90/reference/message-schema/reference/index.md).

### Regex example: Parse the raw message

The following processing step parses an unclassified log message from a firewall into a structured format in the `log.body` field:

- **Input**: `${RAWMSG}`
- **Pattern**:

  ```text
  ^(?<priority><\d+>)(?<version>\d+)\s(?<timestamp>[\d\-T:.Z]+)\s(?<hostname>[\w\-.]+)\s(?<appname>[\w\-]+)\s(?<event_id>\d+|\-)\s(?<msgid>\-)\s(?<unused>\-)\s(?<rule_id>[\w\d]+)\s(?<network>\w+)\s(?<action>\w+)\s(?<result>\w+)\s(?<rule_seq>\d+)\s(?<direction>\w+)\s(?<length>\d+)\s(?<protocol>\w+)\s(?<src_ip>\d+\.\d+\.\d+\.\d+)\/(?<src_port>\d+)->(?<dest_ip>\d+\.\d+\.\d+\.\d+)\/(?<dest_port>\d+)\s(?<tcp_flags>\w+)\s(?<policy>[\w\-.]+)
  ```
- **Field**: `log.body`

![Regex processing step](https://axoflow.com/docs/axoflow/0.90/data-management/processing/regex_hu_a117d563279bc9e1.webp)

### Regex example: Parse an existing field

The following processing step processes the entire `log.body` field for messages generated by the AxoSyslog `loggen` command and stores it in the `log.pad` field, for example:

```text
2024-05-02T10:56:31.000000+00:00 localhost prg00000[1234]: seq: 0000000065, thread: 0000, runid: 1714647391, stamp: 2024-05-02T10:56:31 PADDPADDPADDPADD
```

- **Input**: `log.body`
- **Pattern**:

  ```text
  seq:\s+(?<seq>\d+),\s+thread:\s+(?<thread>\d+),\s+runid:\s+(?<runid>\d+),\s+stamp:\s+(?<stamp>[^\s]+)
  ```
- **Field**: `log.pad`

For details about the message schema and the available fields, see [Message schema reference](https://axoflow.com/docs/axoflow/0.90/reference/message-schema/reference/index.md).

## Select messages

Filter the messages using a query. Only the matching messages go to the next steps.

The following example selects messages that have the `meta.service.name` label set to `nginx`.

- **Query**: `meta.service.name = nginx`

![Filter messages in a flow](https://axoflow.com/docs/axoflow/0.90/data-management/processing/select-messages_hu_59ed8617aa2a262d.webp)

You can also select messages using various other metadata about the connection and the host that sent the data, the connector that received the data, the classification results, and also custom labels, for example:

- a specific connector: `meta.connector.name = axorouter-mysyslog-connector`
- a type of connector: `meta.connector.type = otlp`
- a sender IP address: `meta.connection.src_ip = 192.168.1.1`
- a specific product, if [classification](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#classify)
  is enabled in an earlier processing step or in the connector that received the message: `meta.product = fortigate` (see [Vendors](https://axoflow.com/docs/axoflow/0.90/data-sources/appliances/index.md) for the metadata of a particular product)
- a [custom label](https://axoflow.com/docs/axoflow/0.90/onboard-hosts/hosts/add-host-metadata/index.md)
  you’ve added to the host: `meta.host.labels.location = eu-west-1`

In addition to exact matches, you can use the following operators:

- `!=` not equal (string match)
- `=*` contains (substring match)
- `!*`: doesn’t contain
- `=~`: matches regular expression
- `!~`: doesn’t match regular expression
- `==~`: matches case sensitive regular expression
- `!=~`: doesn’t match case sensitive regular expression

You can combine multiple expressions using the AND (`+`) operator. (To delete an expression, press SHIFT+Backspace.)

> **Note:**
>
> To check the metadata of a particular message, you can use [flow tapping](https://axoflow.com/docs/axoflow/0.90/data-management/flow-tapping/index.md)
> or [Log tapping](https://axoflow.com/docs/axoflow/0.90/onboard-hosts/log-tapping/index.md). In the **Event Details** of a message, the metadata is under the `meta` key of the **Event** tab.
>
> ![Metadata of an event in the Event Details of flow tapping](https://axoflow.com/docs/axoflow/0.90/data-management/processing/log-tapping-fields_hu_85c944dce7bb03f5.webp)

For details about the message schema and the available fields, see [Message schema reference](https://axoflow.com/docs/axoflow/0.90/reference/message-schema/reference/index.md).

## Set fields

Set specific field of the message. You can use static values, and also dynamic values that were extracted from the message automatically by Axoflow or manually in a previous processing step. If the field doesn’t exist, it’s automatically created.

The type of the field can be `boolean`, `string`, `number`, and `expression`. Select **expression** to set the value of the field using a [FilterX expression](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#filterx)
.

If you start to type the name of the field, AxoConsole shows matching and similar field names based on the [message schema](https://axoflow.com/docs/axoflow/0.90/reference/message-schema/overview/index.md)
:

![Field name autocomplete](https://axoflow.com/docs/axoflow/0.90/data-management/processing/set-fields-fieldname-autocomplete_hu_f00184b5b3b79a91.webp)

To set more fields in the same step, select **Add Field**. To temporarily skip a field without removing it, use the toggle next to the field.

The following example sets the `resource.attributes.format` field to `parsed`.

- **Field**: `resource.attributes.format`
- **Value**: `string`, `parsed`

![Set message field](https://axoflow.com/docs/axoflow/0.90/data-management/processing/set-field_hu_55c8b360e44a6437.webp)

### Set the Splunk source field

The following example sets the Splunk source field to the name of the AxoRouter host. Add a condition to the step (more_vert
> **Add Condition**) to match only the hosts where you want to set the source field. If you don’t set a condition, the step sets the source field of every message.

- **Condition** (set in the **Add Condition** dialog of the step): `meta.host.name = app-server-nginx`
- **Field**: `meta.destination.splunk.source`
- **Value**: `expression`, `meta.router.name`

> **Note:**
> If the Axoflow classification doesn’t set the source field for the message automatically, and you haven’t set it in a [flow processing step](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#set-fields)
> manually (by setting the `meta.destination.splunk.source` field), AxoRouter automatically sets the source to the [name of the AxoRouter connector](https://axoflow.com/docs/axoflow/0.90/reference/message-schema/reference/index.md#meta.connector.name)
> that received the message (for example, `axorouter-syslog-tcp-514`).

![Set Splunk source field](https://axoflow.com/docs/axoflow/0.90/data-management/processing/set-field-splunk_hu_afdda01441aeec59.webp)

## Set destination options

Destination options are destination-specific fields that override the parameters of the destination for a flow or for specific messages, for example, the index for a Splunk destination, or the stream name for an OpenObserve destination. To change the parameters of the destination for every flow, edit the destination instead.

1. In the **Destination** section of the flow, select **Set Destination Options**. The **Set Destination Options** dialog lists the fields that the destination supports.

   ![Select the destination-specific fields to set](https://axoflow.com/docs/axoflow/0.90/data-management/processing/destination-options-dialog_hu_bb10022cd893f460.webp)
2. Clear the fields that you don’t need, then select **Set Destination Options**. AxoConsole inserts a [**Set Fields** processing step](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#set-fields)
   into the flow with the selected fields.

   ![Set destination-specific fields](https://axoflow.com/docs/axoflow/0.90/data-management/processing/destination-options_hu_e99861b346b1c853.webp)
3. Set the values of the fields.

You can insert this processing step multiple times if you want to set the fields to different values using conditions.

When using **Set Destination Options**, note that if you leave a parameter empty, AxoRouter sends it as an empty field to the destination. If you don’t want to send that field at all, delete the field.

## Unset field

Unset a specific field of the message.

![Unset message field](https://axoflow.com/docs/axoflow/0.90/data-management/processing/unset-field_hu_d652a46ff248d146.webp)

## Custom steps

A *custom step* is a named, reusable sequence of processing steps. Create it once, then add it to multiple flows, [connector rules](https://axoflow.com/docs/axoflow/0.90/data-sources/connector-rules/index.md)
, or other custom steps like any built-in processing step. For example, you can build a parsing and data reduction pipeline for a specific data source once, and reuse it everywhere you process that data.

A custom step is a reference: when you modify a custom step, the change applies to every flow, [connector rule](https://axoflow.com/docs/axoflow/0.90/data-sources/connector-rules/index.md), and custom step that uses it.

To manage your custom steps, open **Flows > Custom Steps**. For each custom step, the list shows how many processing steps it contains, and where it’s used. Select the usage links to see the flows, connector rules, and other custom steps that include the custom step.

![Custom processing steps](https://axoflow.com/docs/axoflow/0.90/data-management/processing/custom-steps-list_hu_809e687ad1437613.webp)

### Create a custom step

1. Open **Flows > Custom Steps**, then select **Add Custom Step > Add Custom Step**.

   ![Create custom processing steps](https://axoflow.com/docs/axoflow/0.90/data-management/processing/custom-steps-create_hu_bf86ed300cb09129.webp)
2. Set the **Name** of the custom step. This name appears in the processing step list when you add the custom step to a flow. Note that:

   - The name can contain only lowercase alphanumeric characters, `-`, and `.`, and must start and end with an alphanumeric character.
   - You can’t change the name later.
3. (Optional) Enter a **Description** for the custom step.
4. Add the processing steps of the custom step. A custom step can contain other custom steps, but it can’t contain [**Probe**](https://axoflow.com/docs/axoflow/0.90/data-management/processing/index.md#probe)
   steps.

   ![Configure custom processing steps](https://axoflow.com/docs/axoflow/0.90/data-management/processing/custom-steps-configure_hu_90d89cfd38950f6f.webp)
5. Select **Create Custom Step**.

You can also create a custom step from the processing steps you’ve already configured:

- **Save existing steps**: When editing the processing steps of a flow, , a [rehydration](https://axoflow.com/docs/axoflow/0.90/data-management/rehydration/index.md), or a connector rule, select **Save as Custom Step**. AxoConsole creates a new custom step that contains the current processing steps. Set a name for the custom step, then select **Create Custom Step**.
- **Import from a file**: Select **Add Custom Step > Import JSON File**, and upload a custom step that you’ve exported earlier.
- **Clone**: In the list of custom steps, open the menu of a custom step and select **Clone**.

### Modify a custom step

1. Open **Flows > Custom Steps**, then select the custom step.
2. Modify the custom step:

   **CAUTION:**

   Changes to a custom step affect every flow, connector rule, and custom step that uses it. Before modifying a custom step, check where it’s used.

   - To change the processing steps, select **Process**, edit the steps, then select **Save**.
   - To change the description, select **Edit**, modify the description, then select **Save**.

   Alternatively, when a flow includes a custom step, select more_vert
   > **Navigate to custom step** on the custom step in the flow to open the custom step in a new tab.

### Nested custom steps

A custom step can include other custom steps. However, you can’t create reference loops:

- A custom step can’t include itself.
- A custom step can’t include another custom step that includes the first custom step, either directly or through other custom steps. For example, if `step-a` includes `step-b`, then `step-b` can’t include `step-a`.

AxoConsole rejects changes that would create a loop, and also rejects references to custom steps that don’t exist.

### Export custom steps

To export a custom step into a JSON file, open **Flows > Custom Steps**, open the menu of the custom step, then select **Export As JSON File**. You can import the file into another Axoflow deployment.

### Delete custom steps

To delete a custom step, open **Flows > Custom Steps**, open the menu of the custom step, then select **Delete**. You can’t delete a custom step that’s used by a flow, a connector rule, or another custom step. Remove the custom step from these resources first.
