# Example taken from: https://github.com/influxdata/telegraf/issues/5940

[[inputs.file]]
    files = ["./testdata/10670/input.json"]
    data_format = "json_v2"
    [[inputs.file.json_v2]]
        measurement_name = "weight"
        timestamp_format = "unix_ms"
        timestamp_path = "weight_createdAt"
        [[inputs.file.json_v2.field]]
            path = "weight_weight"
            rename = "weight"
            type = "float"
        [[inputs.file.json_v2.tag]]
            path = "weight_serialNumber"
            rename = "serial_number"
        [[inputs.file.json_v2.tag]]
            path = "weight_ROWKEY"
            rename = "imei"
        [[inputs.file.json_v2.tag]]
            path = "sensor_customer_name"
            rename = "customer_name"
        [[inputs.file.json_v2.tag]]
            path = "sensor_distributor_name"
            rename = "distributor_name"
