本文にスキップ

syslog-ng Integration

Overview

syslog-ng is an enhanced syslog daemon with advanced filtering and routing. KYRA MDR can receive logs from syslog-ng or use it as an intermediary forwarder for aggregating logs from multiple sources.

Prerequisites

  • A KYRA MDR Collector installed and running
  • syslog-ng installed on the log aggregation server
  • Network connectivity from syslog-ng to the collector
  • syslog-ng 3.x or 4.x

Configuration

Configure syslog-ng to forward logs:

/etc/syslog-ng/syslog-ng.conf
destination d_kyra {
tcp("<collector-ip>" port(514)
template("$ISODATE $HOST $MSGHDR$MSG\n")
);
};
log {
source(s_local);
source(s_network);
destination(d_kyra);
};
# Optional: filter specific sources
filter f_security {
facility(auth, authpriv) or level(err..emerg);
};
log {
source(s_network);
filter(f_security);
destination(d_kyra);
};

Restart syslog-ng:

Terminal window
sudo systemctl restart syslog-ng

Collected Log Types

Log TypeDescriptionSecurity Use
System LogsOS and service eventsHost security monitoring
Auth LogsAuthentication eventsAccess monitoring
Network DeviceForwarded device logsInfrastructure monitoring
ApplicationCustom application eventsApplication security
Security EventsFiltered security eventsThreat detection
Audit LogsSystem audit trailCompliance monitoring

Troubleshooting

No logs forwarded: Verify configuration with syslog-ng --syntax-only.

Duplicate logs: Use syslog-ng as the single forwarding point.

Performance: Increase log-fifo-size and use disk-buffer for high-volume environments.

Contact kyra@seekerslab.com for support.