flow log v3.8

Replaces #1052