[Help] Script two look into 2 different logs and action
Hi guys
I need someone who can help me in this matter I have a server with logs running. People connect to server. This server is running the same application as a failover just in case it stops. I have a doubt that some clients are connecting from different places as the nodeID is changed SO I need to make a script which reads both logs that are called server1.log and server2.log and where it finds a nodeID which does not match in both logs it action with fail2ban I don't know whether this can be done directly via fail2ban since it is the program which I know that reads between logs but as far as I know it cannot match data with another log This is an Example: Code:
Log 1 Quote:
Would really appreciate your help in this matter Running: Debian 5.0 |
In essence this looks like fixing symptoms instead of addressing the cause to me. Wouldn't the latter be more efficient? What application are we talking about? Why does the application go down in the first place? Does it hang? Does debug logging show clues? Or it it just buggy? How will you know it's down? Could monitoring (Monit?) process details or an URI help in restarting the application?..
|
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
|
HELP please!!! Any one can help with this script. Thanks in advance
|
All times are GMT -5. The time now is 09:22 AM. |