logging to console / native systemd native logging facility
complete
Y
Yureka
The same feature the community edition received here, but for the advanced edition: https://github.com/pavel-odintsov/fastnetmon/commit/f6379e0360667d537874289eacdbca78d79495e9
F
FastNetMon
complete
F
FastNetMon
Thank you for your feedback.
We've added flag --log_to_console for FastNetMon daemon which switches from file based logging to stdout.
To switch systemd unit file to new logging system you need to adjsut systemd unit following way:
[Unit]
Description=FastNetMon - DoS/DDoS analyzer with sFlow/Netflow/mirror support
After=network.target remote-fs.target
[Service]
Type=simple
ExecStart=/opt/fastnetmon/app/bin/fastnetmon --log_to_console
# We may use very large number of threads and we need to have enough fds to spawn them
LimitNOFILE=65535
# Restart service when it fails due to any reasons, we need to keep processing traffic no matter what happened
Restart=on-failure
RestartSec=5s
# Disable logic which shuts service when we do too many restarts
# We do restarts from sudo fcli commit and it's expected that we may have many restarts
# Details: https://github.com/systemd/systemd/issues/2416
StartLimitInterval=0
[Install]
WantedBy=multi-user.target
Briefly, you need to switch Type to simple, remove --daemonise, add --log_to_console and then restart to apply all the changes.
This feature will be part of next release 2.0.343