9 Nov
2004
9 Nov
'04
16:39
On Tuesday 09 November 2004 16:04, Eric Scott wrote:
Yo peeps; I'm trying to set up some simple TCP connection's logging on my Linux box. Is there a simple script or something I can write and execute that will do something like execute "date >> html_logs/ssh.log && netstat -a | grep tcp
html_logs/ssh.log" every ten seconds or so?
Doesn't that work? I assume from the file name that you want to log incoming ssh connections. sshd already logs connections to the syslog, so you get the log messages in /var/log/messages, and the suse firewall logs the incoming connections to that file as well if you start it. That would be the simplest way to log, IMHO, just use what is already there.