I am trying to parse multiline logs using GROK.. but the result omitting new line. Example code below. String log = "a|b|c|d"+"\n"+"e"; Pattern = `(?m)(?<ErrMsg>.*)` Output is = ErrMsg = a|b|c|d Any help would be appreicated!!!