View previous topic :: View next topic |
Author |
Message |
fisherking Tux's lil' helper
Joined: 12 Nov 2003 Posts: 111
|
Posted: Sat Nov 26, 2005 10:58 am Post subject: I want the sshd log to be explicit! |
|
|
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 |
|
|
kamikaze04 Guru
Joined: 28 Mar 2004 Posts: 366 Location: Valencia-Spain
|
Posted: Sat Nov 26, 2005 11:12 am Post subject: |
|
|
Which logger are you using? _________________ Todo lo que quisiste saber sobre google en: www.noticiasgoogle.es |
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Sat Nov 26, 2005 11:13 am Post subject: Re: I want the sshd log to be explicit! |
|
|
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 |
|
|
fisherking Tux's lil' helper
Joined: 12 Nov 2003 Posts: 111
|
Posted: Sat Nov 26, 2005 11:37 am Post subject: |
|
|
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 |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Sat Nov 26, 2005 11:43 am Post subject: |
|
|
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 |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Sat Nov 26, 2005 1:01 pm Post subject: |
|
|
Try upping logging level of sshd in sshd_config to verbose. |
|
Back to top |
|
|
fisherking Tux's lil' helper
Joined: 12 Nov 2003 Posts: 111
|
Posted: Sat Nov 26, 2005 1:41 pm Post subject: |
|
|
aah, thanks!
Logging is perfect! |
|
Back to top |
|
|
|