# cfxdm - dm:fixcolumns

**dm:fixcolumns:** This cfxdm tag allows the user to remove the special characters like @,. (dot) etc from a column name. If there is a special character in between a column name (ex: First.Last), it replaces it with  (underscore) (Ex: First\_Last)

**dm:fixcolumns** synta&#x78;**:** It doesn't require any arguments. Just ingest the data into this tag using a pipe (-->)

In the below example, for a reference, we are going to use **Netflow data that is ingested into Elasticsearch** as an extension to query the data and ingest it into **dm:mergecolumns** to select specific columns using include/exclude or both together and merge them into a single target column.

Enter the below command to select **Netflow tag (#es:netflow**). (In this example, **es** name is used as a label to identify Elasticsearch extension and it's tags that are pointing to Netflow data index. The label is defined while adding the extension in cfxdx configuration file or through UI)

```
tag #es:netflow
```

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-MViFYVImyJYyZfMHdvC%2F-MViGo-mzJmGerXr3d_1%2FScreen%20Shot%202021-03-13%20at%205.08.29%20PM.png?alt=media\&token=8c3eb9ad-34b3-463d-b075-b00dc7e451e9)

**Example 1:** Select three columns using the GET option from the Netflow tag.

Get the TCP protocol data from Elasticsearch Netflow tag (**#es:netflow**) for the last 1 hour and select the below three columns and ingest them into dm:fixcolumns tag to rename the names of the columns by replacing the special character (. (dot) with \_ (underscore).

**Source Columns:**

* flow\.client.addr
* flow\.server.addr
* flow\.service.port

**Output Columns:** (after replacing the special character ". (dot)" with "\_ (underscore)"

* flow\_client\_addr
* flow\_server\_addr
* flow\_service\_port

```
data * get `flow.client_addr`,`flow.server_addr`,`flow.service_port` --> dm:fixcolumns
```

![](https://2978683539-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhoMVYxiQlKXh6OxX98%2F-MVyAtH2NovZGOvr_bh_%2F-MVyX6ltcSQ5BD1C3RlW%2FScreen%20Shot%202021-03-16%20at%209.53.43%20PM.png?alt=media\&token=867e14fb-4f79-4a50-9190-e1f90eed3df7)
