The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
syslog messages. cabloy Red Hat 1 04-06-2009 09:54 AM
Getting error messages in syslog in HP-UX Mike1234 HP-UX 2 12-03-2008 10:28 AM
Help with separating syslog messages. raj_26apr Shell Programming and Scripting 2 11-18-2008 07:26 PM
syslog messages every minute hcclnoodles SUN Solaris 1 11-06-2006 10:20 AM
sort syslog messages 3Gmobile Shell Programming and Scripting 1 08-10-2006 11:00 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-01-2009
mahive mahive is offline
Registered User
  
 

Join Date: May 2009
Posts: 16
Filter syslog messages.

Hello,

How can we filter messages like :

indrh03 sshd[21250]: Accepted publickey for score from 192.168.18.47 port 51034 ssh2
indrh03 sshd[21250]: pam_unix(sshd:session): session opened for user score by (uid=0)
indrh03 sshd[21250]: pam_unix(sshd:session): session closed for user score



such that they are not written to log files (for exaple on system indrh03 in secure, sudolog, etc).

Thanks&Regards,
Mahive.


  #2 (permalink)  
Old 07-03-2009
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
You can decrease the level of verbosity given by the SSH daemon by altering the LogLevel directive in your sshd.conf. The possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2 and DEBUG3.
  #3 (permalink)  
Old 07-03-2009
s93366's Avatar
s93366 s93366 is offline
Registered User
  
 

Join Date: Apr 2002
Location: Sweden / Stockholm
Posts: 168
You could also replace the standard syslogd with syslog-ng if you need to filter.
  #4 (permalink)  
Old 07-03-2009
mahive mahive is offline
Registered User
  
 

Join Date: May 2009
Posts: 16
Hello,
Thanks a lot for your reply. Could you please let me know which sshd.conf are you referring to? I have tried to modify the value to QUIET under /etc/sshd/sshd_config and also commented the below mentioned lines under /etc/log.d/conf/services/sshd.conf to no effect.

LogFile = secure
LogFile = messages

Regards,
Mahive.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0