11-13-2007 04:58 AM - edited 03-09-2019 07:21 PM
Hello there,
i hope you help find a resolution for this:
I have a MARS 50, and i tried to add a Linux to send syslog messages to it. I added it, i can see the linux int the topology window.
I run a nmap scan on the linux, i get a lot of syslog messages on the linux console because of the nmap scanning, but the MARS doesn't show me any incidents.
I added the Linux host under Admin->Security and Monitor Devices -> Add -> Device Type: Add SW security apps on new host. Then i configured the ip, i chose Linux as the operating system and "Rceive" at the Logging Info.
I also configured the Linux to send syslog messages to MARS:
i added in the /etc/syslog.conf file, the next line:
*.debug @mars_ip
Why don't i get messages from Linux?
Thank you for your time,
Costin
11-13-2007 05:55 AM
You don't mention which version of Mars you're running, but take a look at this bug:
Regardless, Mars does not parse Linux syslog all that effectively. Or Solaris for that matter. iptables entries, which I suspect is what you're referring to, are parsed as generic events.
11-13-2007 06:14 AM
Thank you for the reply,
The version is the last: 4.3.1
Generic events means that i shoul edit the /etc/syslog.conf file different that *.debug ?
something like *.event @ip_Mars ?
I don't really know the sintax for Linux, but from the Cisco point of view debug syslog massages include all other messages (informational, alert, warning etc) so i would expect that also for linux.
Again on the Linux console i see all the messges generated because of the nmap scan, but on the Mars, either they are not received or the Mars doesn't know to parse them
Or i am doing something wrong...
Thank you again,
Costin
11-13-2007 06:20 AM
I sounds like you're doing everything right, it's just that Mars hasn't been configured to parse and understand those particular log entires. They will get parsed as "generic linux event". If you aren't even seeing the events in Mars, then something else is going on and we can help you with that too, just let us know.
The way to test this is to run a "real-time" query in Mars for the Linux box(query type = all matching events). See:
11-13-2007 07:00 AM
Hi Matthew,
i did the real-time querry for the traffic from Linux to Mars: nothing
I will try this again tommorow with another linux box and let you know if something works.
Thanks again,
Costin
11-13-2007 07:18 AM
Nothing huh? Let's try this instead. Login as pnadmin on the MARS box and start a tcpdump to verify that you're at least getting some syslog from the Linux box:
tcpdump host linuxhost1 and port 514
Now login to the linux box and run the following bash script(this will create 20 syslog messages that should get forwarded to MARS):
#!/bin/bash
for ((i=1;i<=20;i++)); do
/usr/bin/logger auth.critical -d SYSLOG MESSAGE $i
sleep 1
done
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide