Hello, I'm here again...
I did some test, but results are not so clear...
At bottom you'll find:
1 the current rsyslog.conf (I hope I did understand correctly your suggestions... if not pls tell me)
2 a text file with 3 records from 'test.log', those are as follow:
the first record comes from the 'SNARE' agent, his name is bl6.istge.it (correct), but I don't see the IP...
the second is a local msg (from the same ubuntu server where rsyslog is running)
the third comes from the 'not joined' server, (with Purdue EventLog agent) where the only info on the sending server is "???" (neither name nor ip)
Another thing I don't understand is: why only 'security' evt log record are coming from Purdue? Is it any change I shall do on that machine to make it send ALL event logs? I didin't find any config option... maybe I shall install Snare also on this?
Thx again for your precious help
Luigi
------------------------------ rsyslog.conf ----------------------------
# /etc/syslog.conf Configuration file for syslogd.
#
# For more information see syslog.conf(5)
# manpage.
$ModLoad immark.so # provides --MARK-- message capability
#$ModLoad imudp.so # provides UDP syslog reception
$ModLoad imtcp.so # provides TCP syslog reception and GSS-API (if compiled to support it)
$ModLoad imuxsock.so # provides support for local system logging (e.g. via logger command)
$ModLoad imklog.so # provides kernel logging support (previously done by rklogd)
$ModLoad ommysql.so # provides mysql writing support
# UDP Syslog Server:
$ModLoad imudp.so # provides UDP syslog reception
$UDPServerRun 514 # start a UDP syslog server at standard port 514
#
# Copiati dal sito rsyslog.com/doc-ommail.html
#$ModLoad ommail
$ActionMailSMTPServer mailcluster.istge.it
$ActionMailFrom
rsyslog@istge.it$ActionMailTo
giovanni.depascalis@istge.it;
visintin@inrete.it$template mailSubject,"test del subject sulla macchina %hostname%"
$template mailBody,"RSYSLOG Alert\r\nmsg='%msg%'"
$ActionMailSubject mailSubject
# make sure we receive a mail only once in six
# hours (21,600 seconds

)
$ActionExecOnlyOnceEveryInterval 600
# the if ... then ... mailBody mus be on one line!
if $msg contains 'service entered the stopped state' then

mmail:;mailBody
#
# formato log da Windows 2003
#$template remote_default, "%timegenerated% %fromhost% %syslogtag%%msg:::drop-last-lf%\n"
#$template WinSyslogFmt,"%HOSTNAME%,%timegenerated:1:10:date-rfc3339%,%timegenerated:12:19:date-rfc3339%,%timegenerated:1:10:date-rfc3339%,%timegenerated:12:19:date-rfc3339%,%syslogfacility%,%syslogpriority%,%syslogtag%%msg%\n"
#
$template test, "TIME GEN: %timegenerated:::date-rfc3339% HOSTNAME: %hostname% FROMHOST: %fromhost% FROMIP: %fromhost-ip% FACILITY: %syslogfacility% PRIORITY: %syslogpriority% TAG: %syslogtag% MSG: %msg%\n"
#----------------------------------------------------
# da mail forum
#*.notice;authpriv.info;kern.debug;lpr.info;mail.none
#
*.* -/var/log/test.log
# |
# | #
# | #
# | # First some standard logfiles. Log by facility.
# | #
# |
# | auth,authpriv.* /var/log/auth.log
# | *.*;auth,authpriv.none -/var/log/syslog
# | #cron.* /var/log/cron.log
# | daemon.* -/var/log/daemon.log
# | kern.* -/var/log/kern.log
# | lpr.* -/var/log/lpr.log
# | mail.* -/var/log/mail.log
# | user.* -/var/log/user.log
# |
# | #
# | # Logging for the mail system. Split it up so that
# | # it is easy to write scripts to parse these files.
# | #
# | mail.info -/var/log/mail.info
# | mail.warn -/var/log/mail.warn
# | mail.err /var/log/mail.err
# |
# | # Logging for INN news system
# | #
# | news.crit /var/log/news/news.crit
# | news.err /var/log/news/news.err
# | news.notice -/var/log/news/news.notice
# |
# | #
# | # Some `catch-all' logfiles.
# | #
# | *.=debug;\
# | auth,authpriv.none;\
# | news.none;mail.none -/var/log/debug
# | *.=info;*.=notice;*.=warn;\
# | auth,authpriv.none;\
# | cron,daemon.none;\
# | mail,news.none -/var/log/messages
# |
# | #
# | # Emergencies are sent to everybody logged in.
# | #
# | *.emerg *
# |
# | #
# | # I like to have messages displayed on the console, but only on a virtual
# | # console I usually leave idle.
# | #
# | #daemon,mail.*;\
# | # news.=crit;news.=err;news.=notice;\
# | # *.=debug;*.=info;\
# | # *.=notice;*.=warn /dev/tty8
# |
# | # The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
# | # you must invoke `xconsole' with the `-file' option:
# | #
# | # $ xconsole -file /dev/xconsole [...]
# | #
# | # NOTE: adjust the list below, or you'll go crazy if you have a reasonably
# | # busy site..
# | #
# | daemon.*;mail.*;\
# | news.err;\
# | *.=debug;*.=info;\
# | *.=notice;*.=warn |/dev/xconsole
# |
--------------------------------------------------------------------------
------------------------------ test.log ---------------------------------
2008-08-29T12:06:06+02:00 bl6.istge.priv MSWinEventLog#0111#011Security#011912097#011Fri Aug 29 12:06:06 2008#011540#011Security#011MONDOEDP$#011User#011Success Audit#011BL6#011Logon/Logoff#011#011Successful Network Logon: User Name: MONDOEDP$ Domain: ISTGE Logon ID: (0x6,0x93AF88FB) Logon Type: 3 Logon Process: Kerberos Authentication Package: Kerberos Workstation Name: Logon GUID: {7cfc5f52-ce3d-328b-5f68-349b03fbaca9} Caller User Name: - Caller Domain: - Caller Logon ID: - Caller Process ID: - Transited Services: - Source Network Address: 10.1.0.153 Source Port: 0 #011910865
2008-08-29T12:17:01.364375+02:00 ubuntu CRON[26101]: pam_unix(cron:account): account root has password changed in future
2008-08-29T12:27:05.541984+02:00 ??? Security: 592: NBVISINTIN\Administrator: È stato creato un nuovo processo: Nuovo ID del processo: 4468 Nome del file immagine: C:\WINDOWS\system32\cmd.exe ID del processo creatore: 3716 Nome utente: Administrator Dominio: NBVISINTIN ID di accesso: (0x0,0x30B97)
----------------------------- END ---------------------------------------