Log Management


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Log Management
# 1  
Old 08-23-2010
Log Management

In a cluster there are 4 servers namely,
Master-1,Master2,Slave-1,Slave-2
The logs of these servers are saved in a specific location- /nas/archive/"under the specific server name".
I need to take the logs of each server,archive it and put it in another location according to the servers.can anyone suggest as to how i can take the logs of each server?

Any thoughts or ideas would be very helpful.

Thanks,
Lekha.
# 2  
Old 08-23-2010
Do google search for "linux cp command" "linux mv command"

Do a google search for "linux cp command", "linux mv command", and "gzip" Smilie
jz

Last edited by jwzumwalt; 08-23-2010 at 03:21 AM..
# 3  
Old 08-23-2010
I am creating a script.so this action should be scripted.
# 4  
Old 08-24-2010
you may move the four log files in a directory, and then create a tar-zipped file as:
Code:
tar -czvf logs.tgz /nas/archive/four_logs/

then copy the tar-zipped file to remote location using scp / ftp / sftp

this could be done in a script, with further enhancements such as adding date and time in the name of the tar-zipped file, check for failures etc.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

Individual Risk Management (Personal IT Security) and Browser Cache Management

Original post from this thread on browser caching. To add to this, it is an effective security measure to clear absolutely all cached data (cookies, web content, ....) when closing the browser - i.e. in case of a shutdown. It takes a bit of work to re-login to all the sites but websites will not... (7 Replies)
Discussion started by: bakunin
7 Replies

2. UNIX for Advanced & Expert Users

Password management

You know those lists of "the most common passwords"? I was looking at one of those because I actually want to use a really common password or two on occasion. The thing is I'm skeptical that these are legitimate lists. Most things these days require at least 8 chars with a numeral. But these lists... (1 Reply)
Discussion started by: jutnobs
1 Replies

3. Red Hat

Audit.log Management

Hi, I'm fairly new to administering RedHat (or any Linux system for that matter), and was wondering if someone could help me work out how to best manage audit logs. In a nutshell, this is what I need to do: - Compress audit.log file(s) once a month and delete the originals - The... (0 Replies)
Discussion started by: Seonix
0 Replies

4. IP Networking

IP Management

Hello all, I was wondering which way do you use to manage you IPs? For example in our case we have excel sheets and we export them in html first and import it to a server running apache, so to be visible from all. But i was wondering if there are any way (prefer a way running in web server)... (2 Replies)
Discussion started by: @dagio
2 Replies

5. UNIX and Linux Applications

Password management / centralized password management

Hello all, I need help for build server call as Password management / centralized password management server. My situation and example: I have 600 server in my server room running on Linux then I need 1 server only can create login/password and then user can login to all 600 server no... (2 Replies)
Discussion started by: sheikh76
2 Replies

6. HP-UX

Software management HP/UX 9.00

Hello, all! I'm newbie in HP/UX and at my job I'm dealing with HP/UX 9.00. Due this OS is an old one, I couldn't find some info, concretely, about software management on it. Can you please help me? (5 Replies)
Discussion started by: Che_G
5 Replies

7. Solaris

sar log management

Im trying to manage solaris sar files, where are the log files kept, and do I need to delete them or are they cicular log files? Essentially do I need to manage them... (1 Reply)
Discussion started by: csaunders
1 Replies

8. UNIX for Dummies Questions & Answers

Help with directory management

Hey guys.... I'm new to the unix environment. I'm trying to formulate a code with which I'm clueless. I want to write a code to save file(s) which were copied into a separate directory in my home directory with copied files having the same permissions both before and after they were copied. If... (5 Replies)
Discussion started by: richardspence2
5 Replies
Login or Register to Ask a Question