Add the target field

Dear All,

My event is parsed against multiple patterns and then it generates fields . number of fields change against matched pattern. My aim is to add the target for all those random fields.

Current

src: 127.0.0.1
dst: 127.0.0.2

Expected

network.src 127.0.0.1
network.dst 127.0.0.2