Can't grep for warning in log file

Hi

Can't see what I am doing wrong here:

Trying to view a log file and grep for WARNING but keep getting the following error:

[casupport@docvlapph005 ca]$ view datasource.log | grep WARN
Vim: Warning: Output is not to a terminal
WARNING: JMX not enabled. To enable, specify rmi-client-port and rmi-registry-port
WARNING: Peer 1 (supportlinux3/192.168.200.6:15011) heartbeat failed to get returned in time. Closing the peer connection.
WARNING: Peer 1 (supportlinux3/192.168.200.6:15011) heartbeat failed to get returned in time. Closing the peer connection.

Obliviously I am getting the return but the output is not terminal and then it freezes. Any particular reason why?

Dont use view... use cat instead...
but you could also:

 grep "WARNING: " datasource.log 
2 Likes

Thanks :slight_smile: