Solved

SSH Log on Open Indiana

Posted on 2011-09-20
4
1,295 Views
Last Modified: 2012-05-12
Hello,
I would like to have log of my SSH server on my OpenIndiana. Unfortunatly there is zero auth log in the log file (/var/log/* or /var/adm/*)
So i have edit my /etc/syslog.conf :
#Default 
*.err;kern.notice;auth.notice                   /dev/sysmsg
*.err;kern.debug;daemon.notice;mail.crit        /var/adm/messages
# My add
*.info                                          /var/log/test.info
auth.*  /var/log/authlog.log

Open in new window

and here is my /etc/ssh/sshd_config
# Syslog facility and level
SyslogFacility auth
LogLevel info

Open in new window


I have then restarted the syslog daemon and my ssh server but still no log. No  /var/log/authlog.log and strangly /var/log/test.info , normally all bin sending INFO log should go into that file which is not yet created...I should miss something!
Thanks for help
0
Comment
Question by:numtech
  • 2
4 Comments
 
LVL 6

Assisted Solution

by:Tomunique
Tomunique earned 150 total points
ID: 36573912
I can't speak for your OS.  On our system (different flavor of unix), the output file must exist before syslog will write to it.

Try
touch /var/log/test.info

then restart your syslog deamon.
0
 
LVL 22

Accepted Solution

by:
blu earned 350 total points
ID: 36574434
You have two problems here, possibly three.

One, as noted above, the file must exist, syslogd will not create it.
Two, "auth.*" is not valid. You can not use an asterisk for the priority, only for the facility. The priority is specified by name, and that name says to log all messages of that priority and higher. So, to log all message priorities, use "debug".
Third, you may not have this problem but it often trips people up.  You cannot use spaces between the entries in the syslog.conf file, only tabs will work. Check to see if you have tabs or spaces.
0
 

Author Comment

by:numtech
ID: 36574680
It works!
First, i was using /lib/svc/method/system-log restart which actually dont restart anything! so using
svcadm restart svc:/system/system-log:default works better ;)
i have then remove the auth.* and replace it by auth.debug and created the file by touch.
Thanks again

0
 

Author Closing Comment

by:numtech
ID: 36574691
Simple and clear.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question