title: Telegraf & InfluxDB: how to convert PROCSTAT's pid from field to tag?
body: <p><strong>Summary:</strong> I am using telegraf to get procstat into InfluxDB. <strong>I want to convert the pid from an integer field to a TAG so that I can do group by on it in Influx.</strong></p>
  <p>Details:
  After a lot of searching I found the following on some site but it seems to be doing the opposite (converts tag into a field). I am not sure how to deduce the opposite conversion syntax from it:</p>
  <pre><code>[processors]
  [[processors.converter]]
  namepass = [ &quot;procstat&quot;,]
  
  [processors.converter.tags]
  string = [ &quot;cmdline&quot;,]
  </code></pre>
  <p>I'm using Influx 1.7.9</p>