OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • [SOLVED] syslog-ng legacy configuration
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] syslog-ng legacy configuration  (Read 2798 times)

gothbert

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 7
    • View Profile
[SOLVED] syslog-ng legacy configuration
« on: July 05, 2021, 07:54:43 am »
Hello,

I am currently using OPNsense 21.1.7_1-amd64.

A few weeks ago I migrated the LAN of my OPNsense box from 192.168.31.0/24 to 192.168.11.0/24, thereby dropping the remote syslog server 192.168.31.2. Though, syslog-ng still tries to connect to 192.168.31.2. Since I did not find any trace of this setting in the GUI, I browsed through the config files and found /usr/logal/etc/syslog-ng.conf.d/legacy-remote.conf dated Apr 24 2020 still containing the entry.

Can I safely delete both legacy.conf and legacy-remote.conf in that directory? Is this a leftover from a previous update?

Kind regards
Boris

« Last Edit: July 05, 2021, 07:25:31 pm by gothbert »
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
Re: syslog-ng legacy configuration
« Reply #1 on: July 05, 2021, 10:14:31 am »
Export your conf file and grep for 31.2. If it's not there, it's not part of the configuration.

System, Configuration, Backups

Bart...
Logged

gpb

  • Full Member
  • ***
  • Posts: 234
  • Karma: 13
    • View Profile
Re: syslog-ng legacy configuration
« Reply #2 on: July 05, 2021, 04:21:18 pm »
It may be related to this: https://github.com/opnsense/core/issues/4121

I had to do something similar when OPNsense moved to logging targets...that was quite a while back.
Logged
HP T730/AMD  RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT

gothbert

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 7
    • View Profile
Re: syslog-ng legacy configuration
« Reply #3 on: July 05, 2021, 07:23:41 pm »
Quote from: bartjsmit on July 05, 2021, 10:14:31 am
Export your conf file and grep for 31.2. If it's not there, it's not part of the configuration.

Thanks, Bart, that´s a remarkable trick!

Indeed, the rsyslog host is not in the configuration.

I moved the legacy* files away and rebooted. It worked, no more complaints about the non-existant syslog remote host.
Logged

gothbert

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 7
    • View Profile
Re: syslog-ng legacy configuration
« Reply #4 on: July 05, 2021, 07:25:18 pm »
Quote from: gpb on July 05, 2021, 04:21:18 pm
It may be related to this: https://github.com/opnsense/core/issues/4121

I had to do something similar when OPNsense moved to logging targets...that was quite a while back.

Yes, looks like an related or even the same issue.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • [SOLVED] syslog-ng legacy configuration
 

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