title: Influxdb howto update tag values
body: <p>I would like to do a query like this:</p>
  
  <pre><code>SELECT max(value) as value, "counter" = 'countergasconsumption'
  INTO "home"."1month"."test"
  FROM "telegraf"."autogen"."mqtt_consumer"
  WHERE time &gt; now() - 11d AND "topic" = '/utilitiesmonitor/countergasconsumption'
  GROUP BY time(5m)
  </code></pre>
  
  <p>I already have data with the countergasconsumption tag (not the whole topic). I can't get it to work, tried different select into's and the docs are not really helpful on this topic. The old data is one measurement with a tag for the type of counter, the new data comes in on separate topics via Telegraf.</p>