- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sshd2_config logging: use which facility?
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
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
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
тАО05-12-2006 06:29 AM
тАО05-12-2006 06:29 AM
I wish to point my sshd logging to a file other than the system log. I think I understand how to do this, but do not know which logging facility to use; I do not want to interfere with the OS in any way.
Current config:
# grep SyslogFacility /etc/ssh2/sshd2_config
# SyslogFacility AUTH
# SyslogFacility LOCAL7
commented out....
# cat /etc/syslog.conf
# @(#) $Revision: 74.1 $
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none;local5.none /var/adm/syslog/syslog.log
local5.info;mail.none /var/adm/syslog/ftp.log
*.alert /dev/console
*.alert root
*.emerg *
# 20060511 added for sshd2 message routing; LB:
[which facility?].debug;mail.none /var/adm/syslog/sshd2.log
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2006 08:26 AM
тАО05-12-2006 08:26 AM
SolutionSyslogFacility LOCAL7
Restart sshd.
Configure /etc/syslog.conf:
local7.debug;mail.none /var/adm/syslog/sshd2.log
Send HUP signal to the syslogd daemon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2006 08:28 AM
тАО05-12-2006 08:28 AM
Re: sshd2_config logging: use which facility?
local7.debug /var/adm/syslog/sshd2.log
BTW, I just tested, it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2006 08:32 AM
тАО05-12-2006 08:32 AM
Re: sshd2_config logging: use which facility?
If sshd is de only service/app using local7
you can use the following:
local7.*
Don't forget to use the tab!
Goodluck
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2006 10:30 AM
тАО05-12-2006 10:30 AM
Re: sshd2_config logging: use which facility?
Precisely; how do I tell if local7 (or any other service/app) is in use?
Thanks. Points pending for all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2006 12:18 PM
тАО05-12-2006 12:18 PM
Re: sshd2_config logging: use which facility?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2006 05:07 PM
тАО05-12-2006 05:07 PM
Re: sshd2_config logging: use which facility?
I always check the log-file, what's being logged and then try to create a standard syslogd.conf file which will be spread to all the servers to create a standard.
But that needs time to investigate.
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2006 06:07 PM
тАО05-12-2006 06:07 PM
Re: sshd2_config logging: use which facility?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 09:44 AM
тАО05-16-2006 09:44 AM
Re: sshd2_config logging: use which facility?
For those attempting "Redirect sshd2 messages, not to syslog" using this post:
- point ssh's SyslogFacility to local7 in /etc/ssh2/sshd2_config
- add to /etc/syslog.conf "local7.debug[tab]/var/adm/syslog/sshd2.log" and modify your syslog.log line to omit local7 "*.info;mail.none;local5.none;local7.none[tab]/var/adm/syslog/syslog.log"
- restart ssh (from GSP and after hours, dumps ssh sessions)
- restart syslogd
- check syslog/sshd2log for operation
= and that's it!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2006 10:01 AM
тАО05-16-2006 10:01 AM
Re: sshd2_config logging: use which facility?
1. Add the local7 facility to syslog.conf then check it to see if anything else shows up...
2. Restart syslogd with the -v option. From now on, there will be two additional numbers in syslog which will show the facility and priority values in syslog files:
From man 3c syslog
Priority
0 = EMERG
1 = ALERT
2 = CRIT
3 = ERR
4 = WARNING
5 = NOTICE
6 = INFO
7 = DEBUG
Facility
A = KERN
B = USER
C = MAIL
D = DAEMON
E = AUTH
F = SYSLOG
G = LPR
H = NEWS
I = UUCP
J = CRON
Q = LOCAL0
R = LOCAL1
S = LOCAL2
T = LOCAL3
U = LOCAL4
V = LOCAL5
W = LOCAL6
X = LOCAL7
NOTE: syslog.conf is processed one line at a time. Unless specifically excluded, LOCAL7 will be logged in the normal syslog.log file as well as the sshd2.log file.
Bill Hassell, sysadmin