- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Write a record in syslog when a user logs out
Operating System - HP-UX
1752572
Members
4550
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-12-2009 06:07 AM
тАО08-12-2009 06:07 AM
Write a record in syslog when a user logs out
We are using Secure Shell. Currently ssh logins are logged to syslog like this:
Aug 12 16:57:12 tsrsrv sshd[7787]: Accepted keyboard-interactive/pam for user1 from 10.x.y.z port 1029 ssh2
I want to have a similar record in syslog when a user logs out.
Not: In the future we are planning to send some syslog records to a separate machine (= a syslog server), so I currently need to record such events in syslog.
Aug 12 16:57:12 tsrsrv sshd[7787]: Accepted keyboard-interactive/pam for user1 from 10.x.y.z port 1029 ssh2
I want to have a similar record in syslog when a user logs out.
Not: In the future we are planning to send some syslog records to a separate machine (= a syslog server), so I currently need to record such events in syslog.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 09:21 AM
тАО08-12-2009 09:21 AM
Re: Write a record in syslog when a user logs out
take a look at "logger". you can use that, along w/ "exit" traps in the profile to catch / log the logouts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2009 11:48 PM
тАО08-12-2009 11:48 PM
Re: Write a record in syslog when a user logs out
It turns out that the sshd_config directive
LogLevel VERBOSE
answers my question. Now we have the following in syslog:
Aug 13 10:00:36 tsrsrv sshd[23928]: Connection closed by 10.x.y.z
Aug 13 10:00:36 tsrsrv sshd[23928]: Closing connection to 10.x.y.z
LogLevel VERBOSE
answers my question. Now we have the following in syslog:
Aug 13 10:00:36 tsrsrv sshd[23928]: Connection closed by 10.x.y.z
Aug 13 10:00:36 tsrsrv sshd[23928]: Closing connection to 10.x.y.z
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP