Not Able to filter two type of events in logstash filter

Yeah ,i am new to grok , appreciate your help till now ,please help me with some relevant materials to learn those grok .
as well as if the required grok for the existing problem will help a lot.