imunes / imunes

Integrated Multiprotocol Network Emulator/Simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syslog server

ArmandoGalea opened this issue · comments

Syslog Server

Hello, is there any way to enable a syslog on one of the IMUNES computers?
I want to record certain results.

Hi!

Sorry for the late response, I was on vacation. :)
What operating system and what version are you using to run IMUNES?

I tried it on my VirtualBox image (FreeBSD 11.0) and it works with the default configuration file /etc/syslog.conf. I run these commands on any node:

# touch /var/log/messages
# syslogd
# tail -f /var/log/messages

To test it:

# logger "test"

The output of tail should be something like:

Jan    2 07:14:46 server syslogd: kernel boot file is /boot/kernel/kernel
Jan    2 07:15:22 server root: test

You can try running syslogd with the -d flag (debug).

Hi, don't worry, I hope you had a good vacation.
The way you explain me using a messages file works, but I see that it doesn't record events like lifting or turning off an interface, for example. Happy New Year

I have a virtualbox image too, the operating system is freebsd 11.2

Interfaces in IMUNES nodes are implemented using netgraph kernel module on the host, so that's not visible from the jail.