Logstash grok ignore field if unavailable

Hi,
I'm trying to skip field if any of below field is missing I couldn't to parse
VD=73,IP=10.4.1.1,M1=1586,M2=158,TB=Mobile,

Grok expression for above

VD=%{NUMBER:VD},IP=%{IPV4:ipaddress},M1=%{NUMBER:m1},M2=%{NUMBER:m2},TB=%{DATA:tt},

Lets Say If VD is missing It has to parse by skipping field, I looking for universal pattern that parses even if any field is missing .

Any idea would be helpful thank you

What would the line look like if a field were missing? You can make a field optional by surrounding it with ()?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.