OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • Problem with settings up Opnsense & Graylog
« previous next »
  • Print
Pages: [1]

Author Topic: Problem with settings up Opnsense & Graylog  (Read 7884 times)

gizm0

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Problem with settings up Opnsense & Graylog
« on: July 21, 2019, 11:30:49 pm »
I have Opnsense 19.7 installed on APU2 board. I have also setup working Graylog 2.4.7 server, which I have used to log all messages from different servers for many years.

I now tried to get opnsense to send logs (settings ->logging->remote logging options) to graylog, but it doesn't seem to be sending any logs at all. All other servers are working as expected and those can send logs to graylog, but opnsense doesn't. I have setup opnsense to send logs to syslog UDP input, but nothing is coming in. Any suggestions what I'm doing wrong in here? I also checked opnsense firewall log, but nothing is being sent out to graylog according to those logs.

Logged

gizm0

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Problem with settings up Opnsense & Graylog
« Reply #1 on: July 22, 2019, 02:12:54 pm »
I just tested the setup with older version 19.1.x and it seems to be working ok. When i upgrade the system to version 19.7 it stops sending logs to graylog.

Also I noticed that there is new logging section in opnsense called "Settings" -> "Logging / targets", but there is no guide/manual about that part. Is that something that needs to be set in version 19.7?
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Problem with settings up Opnsense & Graylog
« Reply #2 on: July 22, 2019, 02:35:56 pm »
This is the new remote logging which should be the one you want to configure
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

gizm0

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Problem with settings up Opnsense & Graylog
« Reply #3 on: July 22, 2019, 02:49:41 pm »
so i don't need to setup that "logging" section for graylog at all? I should only configure "logging /targets" section and disable remote logging in "logging" section?
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Problem with settings up Opnsense & Graylog
« Reply #4 on: July 22, 2019, 04:39:58 pm »
Via console:

opnsense-patch 398e00c
service configd restart


Then you need to stop/start loggin/targets entry and it works.
Will be fixed in next version.
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

lfirewall1243

  • Hero Member
  • *****
  • Posts: 1386
  • Karma: 45
    • View Profile
Re: Problem with settings up Opnsense & Graylog
« Reply #5 on: July 23, 2019, 08:32:15 am »
Hello,

i treid the patch above and it works.

But on the graylog server i see that messages are incoming but they aren't showing in the search. Maybe the timestamp have changed after 19.7?

Thanks.
Logged
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Problem with settings up Opnsense & Graylog
« Reply #6 on: July 23, 2019, 09:44:50 am »
No idea, maybe you create a new input in Graylog and compare them?
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

lfirewall1243

  • Hero Member
  • *****
  • Posts: 1386
  • Karma: 45
    • View Profile
Re: Problem with settings up Opnsense & Graylog
« Reply #7 on: July 23, 2019, 11:33:28 am »
a reboot of the graylog server did it :)

But it seems that the new logging feature is buggy.
Suricata Logs aren't working anymore, squid logs etc. are shown.

But even logs are shown that aren't selected.

Is it possible to use the old loggin version?
Logged
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Problem with settings up Opnsense & Graylog
« Reply #8 on: July 23, 2019, 02:06:48 pm »
Should be possible, just enable it and disable tagets section.
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

GLR

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
    • Tech blog
Re: Problem with settings up Opnsense & Graylog
« Reply #9 on: July 23, 2019, 10:47:34 pm »
Quote from: lfirewall1243 on July 23, 2019, 11:33:28 am
But it seems that the new logging feature is buggy.
Suricata Logs aren't working anymore, squid logs etc. are shown.

But even logs are shown that aren't selected.
According to what I observed on the opnsense logs, it seems the logging configuration changes (applications, levels, facilities, transport...) are not correctly taken in account when saved (even with the patch applied). I had to disable the "Logging / targets" feature and enable it again to get the changes applied.

Once that set, the new syslog forwarding feature works correctly including in TCP mode (sent here to a Filebeat/Elastic/Kibana).
And even without using the new "Logging / targets" page, the legacy forwarding feature works now correctly, being compliant with the syslog standards (especially hostname present). In my understanding, syslog-ng is now also involved when using the legacy log forwarding UI / feature.
« Last Edit: July 23, 2019, 10:50:17 pm by GLR »
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6767
  • Karma: 494
    • View Profile
Re: Problem with settings up Opnsense & Graylog
« Reply #10 on: July 24, 2019, 05:53:18 am »
There will be a fix for Save/Apply actions tomorrow :)
Logged
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • Problem with settings up Opnsense & Graylog
 

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