searching log files
Posted: 15 Jan 2019 06:40
hi
someone pl help me.
I have a log file SERVER_ERROR.log which contain 100000 or more lines
i need a script that should read a file named SERVER_LIST.txt
which contain 2 columns of data ie.......
1 2
XX BACKUP
BX STORAGE
JX DATA
RE CARD
FD CUSTOMER
HH SERVER
....and so (around 100 servers)
the script should search the SERVER_ERROR.log file for occurrences of each server ID (column 1) and write it to a text file named
SORTED_ERROR_LOG.txt
ie....
XX BACKUP = 200
BX STORAGE = 12
JX DATA = 123
RE CARD = 220
..... and so on
please help me
thanx in advance
someone pl help me.
I have a log file SERVER_ERROR.log which contain 100000 or more lines
i need a script that should read a file named SERVER_LIST.txt
which contain 2 columns of data ie.......
1 2
XX BACKUP
BX STORAGE
JX DATA
RE CARD
FD CUSTOMER
HH SERVER
....and so (around 100 servers)
the script should search the SERVER_ERROR.log file for occurrences of each server ID (column 1) and write it to a text file named
SORTED_ERROR_LOG.txt
ie....
XX BACKUP = 200
BX STORAGE = 12
JX DATA = 123
RE CARD = 220
..... and so on
please help me
thanx in advance