Copy log code from InfluxDB