- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tracing login, logout to remote syslogd daemon
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
11-14-2009 08:05 AM
11-14-2009 08:05 AM
tracing login, logout to remote syslogd daemon
remote syslogd daemon of another server (Fedora core 3).
This Fedora server is central log server which will receive logs from remote systems.
What do you suggest me to configure HP-UX for tracking this login and logout to remote syslogd ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2009 09:31 AM
11-14-2009 09:31 AM
Re: tracing login, logout to remote syslogd daemon
This is done automatically for you by the wtmp file, last and lastb commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2009 09:49 AM
11-14-2009 09:49 AM
Re: tracing login, logout to remote syslogd daemon
Couple of choices,
you can write a scrip to copy /sftp to your centralized log server
or Enabling Audting -> and sftp the auditlog to centralized log server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2009 10:14 AM
11-14-2009 10:14 AM
Re: tracing login, logout to remote syslogd daemon
sftp is found within the ssh download and is not basic to HP-UX. Nor do I see the relevance here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2009 10:48 AM
11-14-2009 10:48 AM
Re: tracing login, logout to remote syslogd daemon
/var/adm/wtmp contains all your login and logout details. You can use 'last' command to get those details. whereas 'lastb' command will give you only bad login information.
you can ftp those details acorss your central server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2009 05:38 PM
11-14-2009 05:38 PM
Re: tracing login, logout to remote syslogd daemon
Rethought this a bit tonight. This is Fedora that your using, so like HP-UX there is a 'logger' command which writes to syslog.log.
last > file
ftp file fedora:/file
cat fedora:/file | logger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2009 04:46 AM
11-15-2009 04:46 AM
Re: tracing login, logout to remote syslogd daemon
My scope is to register every login and logout events in my Fedora log server, where syslogd daemon receives them on 514 port from remote machines.
1 - The unique mode to send events is by sftp command ? Could I use HPUX syslog to send events to central log server ?
I was interesting to send HPUX log directly to remote syslog but I can understand it's not possibile.
2- Once I move log file to central server I can route to syslog by "cat log file " | logger ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2009 07:05 AM
11-15-2009 07:05 AM
Re: tracing login, logout to remote syslogd daemon
If you have syslogd already remotely set up to log into the Fedora server, then
last | logger
... will update both the local and the remote fedora syslog.log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2009 07:09 AM
11-15-2009 07:09 AM
Re: tracing login, logout to remote syslogd daemon
Just write a daily cron that captures today's logins from the last command and pipe it into logger.
If you looking for away to get real time updates then refer to the internals of wtmp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2009 07:57 AM
11-15-2009 07:57 AM
Re: tracing login, logout to remote syslogd daemon
I was interesting to send HPUX log directly to remote syslog but I can understand it's not possibile.<<<<<
Yes Its possible.
Events refering to system events (syslog) ?
if I am not you can redirect syslog to your centralized server, by editing the syslog.conf
Check below Thread,
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1370494
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2009 12:51 PM
11-15-2009 12:51 PM
Re: tracing login, logout to remote syslogd daemon
if I undesrtand right you suugest me to use "last | logger" on my HP-UX server to send the output of "last" command to its syslogd daemon.
Syslogd daemon on HP-UX is already set to forward *.debug logs to my remote central log server (Fedora).
I didn't understand for updates in real time if there is solution on HP-UX.
Hi Johnson,
I know how to set events forwarding to remote syslogd in syslog.conf, infact I already set it on my HP-UX.
But events (to which I'm interesting) refering to system are about login and logout information, which I can find in wtmp file.
Thank you to all people for your precious help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2009 01:03 PM
11-15-2009 01:03 PM
Re: tracing login, logout to remote syslogd daemon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2009 02:31 PM
11-15-2009 02:31 PM
Re: tracing login, logout to remote syslogd daemon
auth.info ...
facility should pick up authorozation releated info that you can then pass to the central server, but, again, may not pick up the logout information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2009 11:11 PM
11-15-2009 11:11 PM
Re: tracing login, logout to remote syslogd daemon
I'd like trying 'last | logger' command, but where I can set it ? In one script to run at system boot ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2009 11:21 PM
11-15-2009 11:21 PM
Re: tracing login, logout to remote syslogd daemon
last | logger can be run from the command line. It runs once and updates syslog.log.
Set in a script that filters only today's date. Use grep and date commands. Then put it in a cron to run every midnight. Verify that it gets to both local and remote / fedora servers.
The above response from Old School and auth: info is a option you set in syslog.conf. Since you already added @fedora_host_name to the HP-UX syslog.conf you should know this file. So just add @fedora_host_name to the auth:info line.
Also every response above deserves 0 to 10 points assigned. Please make sure you do this and also close the thread when ready.