flux and data being streamed

Hello,

I try to change TICKscripts to flux scripts in InfluxDB 1.7.7

Is it possible to write flux script that process inputs (ex. each insert to measurement) as TICKscript’s stream?
what is flux alternative for stream node ?
what is flux alternative for influxDBOut node ?

Simple TICKscript example for translate to Flux:
stream
|from()
.measurement(‘data’)
|log()
|influxDBOut()
.database(‘mirror’)
.measurement(‘modified_data’)

Regards