LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-11-2008, 06:14 AM   #1
mantonr
LQ Newbie
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 20

Rep: Reputation: 0
Can't find my sshd log file...


I can't find my log file anywhere, I've looked in the normal places and tried using slocate to find it but can't find it anywhere. Does anyone know what has happened, is it possible that I just don't have one?
 
Old 08-11-2008, 07:30 AM   #2
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 40
I get my ssh connection attempts in /var/log/messages. Did you try grepping for 'sshd' there?
 
Old 08-11-2008, 08:48 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Post the contents of /etc/syslog.conf .

Have you tried looking at /var/log/authlog ?
 
Old 08-11-2008, 09:08 AM   #4
mantonr
LQ Newbie
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 20

Original Poster
Rep: Reputation: 0
Brilliant, thank you - the sshd log is in there.

Do you know how I can delete some of the log, get rid of the bits from a long time ago? Is there some kind of command that can do that or do I just have to sit and delete everything up to the date that I want to keep?

Thanks for the help
 
Old 08-11-2008, 09:35 AM   #5
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 40
If you turn logrotate on, it will automatically and periodically rename all your log files to logfilename.1, logfilename.2, etc. Mine does this weekly, and goes up to 4 (So after a month, the 4th one is bumped off). If you tweak the values, you can get rid of logs older than whatever date you want.
P.S. Remember to add logrotate to your cron jobs so it runs periodically by itself.
 
Old 08-11-2008, 09:41 AM   #6
junpa
Member
 
Registered: Aug 2008
Location: Northern Hemisphere
Distribution: Slackware, OpenVMS, fbsd
Posts: 51

Rep: Reputation: 16
afaik logrotation should be on by default.....


noticed you may be using gentoo, if that is the case you need to install logrotate:

Code:
emerge -av logrotate

Last edited by junpa; 08-11-2008 at 09:46 AM. Reason: Noticed OP is using gentoo
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Linux - Server 5 03-28-2008 04:59 AM
Find out log file who enter my pc shipon_97 Linux - Newbie 2 07-01-2006 01:03 PM
where can i find mysql log file myheart Linux - Networking 6 01-07-2005 04:36 AM
Where to find the proper log file? mykrob SUSE / openSUSE 1 10-27-2004 10:12 AM
Does Linux write what happens at boot to a file ? I can't find anything in var/log . lostboy Linux - General 8 05-07-2003 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration