Linux – search with in Data displayed as a result of tail Operation

linux

I am working on a Java EE application where its logs will be generated inside a Linux server .

I have used the command tail -f -n -10000 MyLog
It displayed last 1000 lines from that log file .

Now I pressed Ctrl + c in Putty to disconnect the logs updation ( as i am feared it may be updated with new requests and I will loose my data )

In the displayed result, how can I search for a particular keyword ?? (Used / String name to search but it's not working)

Best Solution

Pipe your output to PAGER.

tail -f -n LINE_CNT LOG_FILE | less

then you can use

/SEARCH_STRING
Related Question