how to view dynamically updated managed server logs from the same putty window


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to view dynamically updated managed server logs from the same putty window
# 1  
Old 05-19-2011
how to view dynamically updated managed server logs from the same putty window

Hi,
I want to know how we can view two or three logs which are dynamically getting updated from a single/same putty window with tail commnad.

Thanks.
# 2  
Old 05-19-2011
GNU screen is a nice tool that can allow this kind of things
# 3  
Old 05-19-2011
Quote:
Originally Posted by ctsgnb
GNU screen is a nice tool that can allow this kind of things

what is this GNU screen. Can you pls tell in detail how we can do that, pls.

---------- Post updated at 03:28 PM ---------- Previous update was at 03:24 PM ----------

I don't have access to download. is that not possible with unix command tail or with any other command?
# 4  
Old 05-19-2011
if this is Linux, I was under the impression that tail could be used to monitor multiple files.
Code:
tail -f file1.log file2.log

if not Linux, you can try putting one of the tail commands in the background and then leave last entered tail running. although I've had varying results with this, ymmv
Code:
tail -f file1.log &
tail -f file2.log

# 5  
Old 05-19-2011
Quote:
Originally Posted by ctsgnb
GNU screen is a nice tool that can allow this kind of things
I'd also like to see an example of doing that with `screen', because I've primarily used `screen' to detach screens and get them back after a while. But here the task is (if I understand it correctly) to see the tail of 3 different files and updating them regularly, so I'd rather go for:

Code:
watch -n3 tail ${file1} ${file2} ${file3}

one could also experiment with the `window' command to get the tails of all each file into separate frames, but I'm not quite familiar with `window' myself.

---------- Post updated at 05:19 AM ---------- Previous update was at 05:15 AM ----------

Quote:
Originally Posted by unxscorob
Code:
tail -f file1.log file2.log

yeap, to my mind `tail -f' is a very nice solution, thanks unxscorob, I didn't know about the option. It works on NetBSD too.
# 6  
Old 05-19-2011
screen can split a single tty into 3 , so that you can launch one tail -f logfile in each and every of the different screen.
# 7  
Old 05-20-2011
Quote:
Originally Posted by ctsgnb
screen can split a single tty into 3 , so that you can launch one tail -f logfile in each and every of the different screen.
How is that? Can you tell me the command or what to do for this? I am on support this functionality is extremely required for me, because I need to monitor 3 4 managed serv re logs at the same time.


Thanks.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Software to monitor the logs dynamically

Hi Folks, I have to monitor the logs for exceptions and the logs will be dynamic and will keep updating now one way is to use the command on putty that is tail -f but could you please advise any software in which I can dynamically monitor the logs and if an exception come it highlights thos... (4 Replies)
Discussion started by: tuntun27272727
4 Replies

2. Shell Programming and Scripting

Help with putty window setting

hi friends, This is not a shell scripting related doubt, but still posting so that you can answer it ;) or redirect to correct place in this website. Many a times i have to open multiple putty sessions by duplicating a session and want to rename their tabs. For this activity i have to right... (4 Replies)
Discussion started by: kunwar
4 Replies

3. UNIX for Dummies Questions & Answers

Regarding the logs on putty

Hi Folks, I have an application and I connect to unix box through putty , sometimes I Have to check the logs and for that I reached to particular directory and write tail -f abc.log Is there any better command so that these logs are dynamically go on increasing while I work on my application... (6 Replies)
Discussion started by: KAREENA18
6 Replies

4. UNIX for Advanced & Expert Users

Change the window name for putty

Hi everyone , Happy new year ! I have a question , hope someone will respond to me . I will be logging into so many servers in the same putty . So , whenever i loggedoff and loggedin into anonther server , putty window will change accordingly to the server name . If the above is... (7 Replies)
Discussion started by: radha254
7 Replies

5. UNIX for Dummies Questions & Answers

Putty - window size

Hi Guys, When I use putty and maximize it, then the second half of the emulator window is not utilized and used! I mean the mouse cursor is at the half of the page not at the bottom! i have to once minimize and maximize the window to tell putty that i am going to use the maxmized window...is... (4 Replies)
Discussion started by: messi777
4 Replies

6. UNIX for Advanced & Expert Users

How to connect ubuntu through putty from Window?

Hii, i have installed ubuntu in windows without make partitioning by using wubi.. i want to connect ubuntu linux through putty. but I am unable to do that. Please help me.. how to set ip address in putty (3 Replies)
Discussion started by: pankajkumar
3 Replies

7. Shell Programming and Scripting

Shell script to view logs of a server

Please share a shell script to collect logs of a server (like cpu utilization, memory etc) for a perticular time interval by giving date, time and server name as input. (1 Reply)
Discussion started by: abhishek27
1 Replies

8. UNIX for Advanced & Expert Users

putty title window?

I have implemented the solution from mschwage located in post https://www.unix.com/unix-advanced-expert-users/35784-change-putty-title-window.html; ie wt () { echo -n "^2;${@}^G" } This method is awesome!!!! The reason I am sending you this message is to get your assistance with... (3 Replies)
Discussion started by: lwif
3 Replies

9. UNIX for Advanced & Expert Users

Change putty title window?

Is it possible to change the putty window title from a Unix command line? (12 Replies)
Discussion started by: akbar
12 Replies
Login or Register to Ask a Question