Anoop wrote:
> ...
> But we have about 13 servers that load balance, and I need to
> monitor the logs, requests could get logged in any log file on
> any one server and it is really random..
>
> I can manually open all of them one by one and have multiple
> vim windows open, but I am hoping there is a better way.
> ...

Please don't take it too seriously, everything bellow is just my
opinion and may be not acceptable / totally wrong for you in your
environment.

1) Even on windows it is better to use "less" to work with log
files. For windows I will install cygwin + sshd, ssh to that
machine and use "less" to view the log. Only the case, when I
really need VIM for viewing logs, is when I have log in some
crazy encoding, like UTF-16. In this case I will open them using
cygwin vim after ssh to that machine.

2) I will avoid open log files via the network share if possible,
because in my environment logs are quickly get several megabytes
big.

3) How I will probably try to attack your use case: I will
install on all my windows servers cygwin + sshd, run locally
"screen" [1] in cygwin terminal, and

 3.1) split the "screen" so that I have 13 tiny windows, and ssh in
 each window to corresponding windows server, starting "less"
 directly on this server.

 3.2) if your logs are updated seldom, I will set-up the alarm in
 "screen" for the activity in one of the 13 shells - in this case
 I will don't need split windows.

4) Another crazy idea: somehow efficiently replicate the logs to
one local drive and then mix all them to one common file using
something like "tail -F log1 log2 log3 ...  log13 > sum_log"

-- 
Anton

[1] GNU Screen - console window manager
http://www.gnu.org/software/screen/screen.html

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to