Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I want the sshd log to be explicit!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fisherking
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2003
Posts: 111

PostPosted: Sat Nov 26, 2005 10:58 am    Post subject: I want the sshd log to be explicit! Reply with quote

I am writing a small utility to monitor my /var/log/sshd/current log!

I have a problem thou. If the log message is repeated, the logger removes the repeated lines and puts a message that tells me that the

Code:
- Last output repeated 2 times -



This make my code unnecessary complicated. Is there anywhy to remove this and make the logger write everything, even if it is repeated?
Back to top
View user's profile Send private message
kamikaze04
Guru
Guru


Joined: 28 Mar 2004
Posts: 366
Location: Valencia-Spain

PostPosted: Sat Nov 26, 2005 11:12 am    Post subject: Reply with quote

Which logger are you using?
_________________
Todo lo que quisiste saber sobre google en: www.noticiasgoogle.es
Back to top
View user's profile Send private message
mordredP
Apprentice
Apprentice


Joined: 17 Oct 2005
Posts: 155
Location: bari.italy.€urope.earth

PostPosted: Sat Nov 26, 2005 11:13 am    Post subject: Re: I want the sshd log to be explicit! Reply with quote

fisherking wrote:
I am writing a small utility to monitor my /var/log/sshd/current log!

I have a problem thou. If the log message is repeated, the logger removes the repeated lines and puts a message that tells me that the

Code:
- Last output repeated 2 times -



This make my code unnecessary complicated. Is there anywhy to remove this and make the logger write everything, even if it is repeated?


how are you writing the logger? scripting it or coding it in some language? and i have sent you a pm..
_________________
People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110
Back to top
View user's profile Send private message
fisherking
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2003
Posts: 111

PostPosted: Sat Nov 26, 2005 11:37 am    Post subject: Reply with quote

I know there are simpler solutions to this problem than my solution, but this is more fun!

I have a lot of bashing on my ssh port, and I am writing a utility (in C) that denies a certain IP to connect after three 'invalid user' connections

It works ok now (not finished yet) , but there is a problem with the log, as I am describing above.


It is not a logger, it just monitors a log.



(my systemlogger is metalog)
Back to top
View user's profile Send private message
mordredP
Apprentice
Apprentice


Joined: 17 Oct 2005
Posts: 155
Location: bari.italy.€urope.earth

PostPosted: Sat Nov 26, 2005 11:43 am    Post subject: Reply with quote

edit: i had not read your post carefully.. i don't know about this metalog issue..
_________________
People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Sat Nov 26, 2005 1:01 pm    Post subject: Reply with quote

Try upping logging level of sshd in sshd_config to verbose.
Back to top
View user's profile Send private message
fisherking
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2003
Posts: 111

PostPosted: Sat Nov 26, 2005 1:41 pm    Post subject: Reply with quote

aah, thanks!

Logging is perfect!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum