How can i use 'or' in logstash grok filter

sample my log format: first line -> 320 634
second line -> 236 -
third line -> 234 123

if i make grok filter like:
%{NUMBER:response} %{NUMBER:byte}
then second line makes error.
i tried
%{NUMBER:response} (?:%{NUMBER:byte}|-)
also, but it failed.

So, how can i fix it?

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