- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- centralize sulog
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 06:47 AM
08-22-2005 06:47 AM
for security reason, i'd like put the sulog of everyserver to a centralize sulog. is there configuration or software for it. or i have to write a script.
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 06:52 AM
08-22-2005 06:52 AM
Re: centralize sulog
script would be my first thought.
check for changes on each system and send only the changes to one system and append ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 06:52 AM
08-22-2005 06:52 AM
Re: centralize sulog
You can write a script , to collect all the files /var/adm/sulog from all the server and put in your central server with sulog.$hostname format.
And it can capture everyday say 6pm, and overwrite nextday ,
If you have ssh installed and ssh-keygen done on the central server , it will be bit easy.
Pls letus know if u need the script.
Cheers ,
RajD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 07:01 AM
08-22-2005 07:01 AM
Re: centralize sulog
i need a single centralize log file, that means when there is su happen, it write a log entry to centralize log.
by the way , how to set up ssh-keygen .
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 07:13 AM
08-22-2005 07:13 AM
Re: centralize sulog
You can write a script like following , and running in the central serve to capture all sulogs from other servers.
vi sulog.sh
#!/usr/bin/ksh
# collecting sulog from all servers.
# placing the logs in /home/dongming/sulog/
# Server list file= server.list
############################################
for i in `cat server.list`
do
echo "logging to server= $i "
scp $i:/var/adm/sulog /home/dongming/sulog/sulog.$i
done
echo " * * sulog collection completed * * "
############################################
------------------------------------
make a cron entry ..
# crontab -e
00 18 * * * /home/dongming/sulog.sh > /dev/null 2>&1
-------------------------------------
Cheers ,
RajD.
---------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 07:16 AM
08-22-2005 07:16 AM
Solutionon your clients, you'd set add to syslog.conf:
auth.info: @central-server-hostname
to forward messages to your central server, and on your central server, you'd add to syslog.conf:
auth.info: /var/adm/central-sulog
you'd get a little bit of noise besides just su messages, but this would be the easiest way to set it up...
see man page for syslogd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 07:25 AM
08-22-2005 07:25 AM
Re: centralize sulog
i think radj's solution to collect dividul file from client to a central server.
and Greg's solution is match my requirement. maybe also log other message beside sulog, but it is ok.
thanks a lot .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 07:36 AM
08-22-2005 07:36 AM
Re: centralize sulog
To setup ssh-keygen do the following ,
then you can login to the server without a passowrd ,
from the central server first login to your own ID:
1. $ mkdir .ssh [ from your home directory ]
2. $ ssh-keygen -t dsa [ It will generate public/private key pair named id_dsa ]
3. Create a .ssh directory , in your home directory of the other server , say in server2
4.Copy the public key to the other server i.e server2 , with this command
$ ssh server2 cat '>>' .ssh/authorized_keys2 < ~/.ssh/id_dsa.pub
Enter your password on that server , for the user name , when prompts at this command.
5. Now try ssh login , without password.
$ ssh server2 [ if same username ]
or
$ ssh username@server2
You will get the $ prompt.
$ hostname
server2
--------------------------
Cheers ,
RajD.
-------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 07:37 AM
08-22-2005 07:37 AM
Re: centralize sulog
you would also get user authentication on remote host and you would require to sort/grep on remote log file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 07:51 AM
08-22-2005 07:51 AM
Re: centralize sulog
i also think there are other message by auth.info . so need sort or /grep
thanks again.