-- start_matchsubs

m/^ERROR: .* (seg\d+ [0-9.]+:\d+ pid=\d+)/
s/seg\d+ [0-9.]+:\d+ pid=\d+/SEG IP:PORT pid=PID/

# skip specific PID in: ERROR:  end point token_id3 already attached by receiver(pid: 50938)
m/^ERROR:.*\(pid: \d+\)/
s/\(pid: \d+\)/\(pid: PID\)/

m/\(cdbendpointretrieve\.c\:\d+\)/
s/\(cdbendpointretrieve\.c:\d+\)/\(cdbendpointretrieve\.c:LINE_NUM\)/

m/retrieve> connection to server at .* port \d+ failed: FATAL:  retrieve auth token is invalid/
s/retrieve> connection to server at .* port \d+ failed: FATAL:  retrieve auth token is invalid/retrieve> connection to server at "host_id", port port_id failed: FATAL:  retrieve auth token is invalid/

m/retrieve> connection to server at .*, port \d+ failed: FATAL:  Authentication failure \(Wrong password or no endpoint for the user\)/
s/retrieve> connection to server at .*, port \d+ failed: FATAL:  Authentication failure \(Wrong password or no endpoint for the user\)/retrieve> connection to server at "host_id", port port_id failed: FATAL:  Authentication failure \(Wrong password or no endpoint for the user\)/
-- end_matchsubs
