OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 24.1 Legacy Series »
  • syslog remote destination - possible to include system log?
« previous next »
  • Print
Pages: [1]

Author Topic: syslog remote destination - possible to include system log?  (Read 322 times)

guest43963

  • Guest
syslog remote destination - possible to include system log?
« on: July 06, 2024, 04:47:33 am »
I'm using OPNsense 24.1.9_4-amd64 and trying to include the /var/log/system/latest.log file in the files that syslog sends to a remote host.

In System > Settings > Logging > Remote > Applications, there does not seem to be an option that includes that file.

Is it somehow possible to manually include that file?
Logged

user944801

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: syslog remote destination - possible to include system log?
« Reply #1 on: July 06, 2024, 09:37:14 pm »
Another destination driver & log statement in a custom syslog-ng conf file can be used to accomplish this. It may not survive software updates though.

Ex: /usr/local/etc/syslog-ng.conf.d/syslog-ng-system-log-remote.conf

Code: [Select]
destination system_log_remote_syslog {
    network("IP Address Goes Here" port(514) transport(udp));
};
log {
    source(s_all);
    filter(f_local_system);
    destination(system_log_remote_syslog);
};
« Last Edit: July 06, 2024, 10:44:56 pm by user944801 »
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 24.1 Legacy Series »
  • syslog remote destination - possible to include system log?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2