LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-10-2006, 03:33 AM   #1
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Rep: Reputation: 31
Can be done?


I had this idea:

Is possible to create a script that will login to several linux machines (ssh) and parse the logs (using grep) and return some results?
So i will be able to keep some specific logs in one central pc.

Can this be done? Which language is suitable for something like this?
Perl can do this?

thx for any answers
 
Old 03-10-2006, 03:46 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
You can do this in bash for example, that might be the easiest to start with. The quickest way would be to copy the logs via `scp` on your machine and to parse them there.
A different approach would be to create a central syslog server and have all your machines put their logs on that server. Of course your server would need to be up all the time.
A third approach would be to use something like logwatch on the different machines and have them generate an alert in a central place.

Pick yours, depending on the amount you can wait to get the alert and the possibility of having a central log server.
 
Old 03-10-2006, 05:38 AM   #3
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

Original Poster
Rep: Reputation: 31
The script will have double usage:
Checking the logs for some critical entries and executing the same commands on all 3 linux servers, reducing the time i need for administrating them.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration