# Telegraf - Converter Processor - conver all except

**URL:** <https://community.influxdata.com/t/telegraf-converter-processor-conver-all-except/19745>\
**Category:** Telegraf\
**Tags:** telegraf\
**Created:** [May 5, 2021, 1:45pm UTC](https://community.influxdata.com/t/telegraf-converter-processor-conver-all-except/19745 "2021-05-05T13:45:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giovanni\_Luisotto](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/giovanni_luisotto/32/4017_2.png) [@Giovanni\_Luisotto](https://community.influxdata.com/u/Giovanni_Luisotto)\
**Post date:** [May 5, 2021, 1:45pm UTC](https://community.influxdata.com/t/telegraf-converter-processor-conver-all-except/19745/1 "2021-05-05T13:45:38Z")

</div>

Hi

I’m ingesting a series of not-so-nice data with telegraf, the use case is not the best one for the tool but that’s it.

Every gathered row has 2 mandatory (and known) columns, the rest of the data “may vary”, some of those high variable data will arrive serialized as tags.

What I need to do is to keep only 2 columns as tags, and convert all the others to string fields.

I came up with the following config, but I was wondering if there is a better solution to achieve a **conver all except**

1. Turn all tags into string fields
2. Turn the “known keys” back from field to tag

```auto
[[processors.converter]]
  order = 1
  namepass = ['MyWeirdMeasurement']
  [processors.converter.tags]
    string = ["*"]

[[processors.converter]]
  order = 2
  namepass = ['MyWeirdMeasurement']
  [processors.converter.fields]
    tag = ['MandatoryCol1','MandatoryCol2']

```

Do you guys have different ideas about how to achieve this?
