コピーしたフィールドから〇文字抜き出す方法

You can use gsub to delete everything except the first five characters of a field

mutate { gsub => [ "user-name", "^(.{5}).*", "\1" ] }