Update multiple field values matching a condition in InfluxDB

后端 未结 2 1081
星月不相逢
星月不相逢 2021-01-17 01:35

In an InfluxDB measurement, how can the field values of points matching a query be updated? Is this still not easily doable as of v1.6?

As the example in that GitHub

2条回答
  •  借酒劲吻你
    2021-01-17 02:07

    Update is possible and would take the format:

    INSERT measurement,tag_name=tag_value_no_quotes value_key_1=value_value_1,value_key_2=value_value_2 time

    for example where I want to update the line with tag my_box at time 1526988768877018669 on the box measurement:

    INSERT box,box_name=my_box item_1='apple',item_2='melon' 1526988768877018669

提交回复
热议问题