This is how I do this manually.
1. From my desktop which is windows bix using putty, I login to linux server with SSH.
2. Then browse to logs folder and with follwoing command
"grep -i ERROR abc.log >> /tmp/error.txt" write the log to txt file.
3. Then using winscp i transfer this file back to my desktop.
How can I automate this process?