• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How can I get remote logging to work with a syslog server?

Scheduled Pinned Locked Moved General pfSense Questions
16 Posts 5 Posters 3.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • -
    -flo- 0
    last edited by Jun 14, 2015, 11:32 AM

    Hi,

    I’m having problems with logging from pfSense to a syslog server. I use an old Mac mini (running OS X Leopard) as syslog server. This works partly: I only seem to get some of the log entries from pfSense into the Mac. There are some log messages from the sender „filterdns“ of level „Notice“ in the log files, also some entries of level „Error“ from syslog on pfSense itself („exiting on signal 15“). The source host of the entries is shown just fine. However other log entries from the pfSense system log or the firewall log do not appear to arrive on the Mac syslog.

    The system log on the pfSense does not show any entries indicating a concrete problem. (The „exiting on signal 15“ message has been there occasionally before).

    Is pfSense expected to be compatible with older syslog implementations at all? Getting a current syslog-ng onto this old Mac is probably a major hassle …

    If this setup should work, what can be the problem here?

    -flo-

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Jun 14, 2015, 12:53 PM

      I assume you have the log settings set to send all logs top the syslog server?

      Run a packet capture on the on the interface the macmini is attached to, filter by it's address and port 514 (unless you're using a different port). You should see the syslog traffic there. If you open it in Wireshark you can read the messages being sent.

      Steve

      1 Reply Last reply Reply Quote 0
      • -
        -flo- 0
        last edited by Jun 14, 2015, 7:03 PM

        I have indeed activated all topics. I checked the result of this in the pfSense /etc/syslog.conf file. Looks ok to me.

        Packet Capture: I will try that.

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Jun 14, 2015, 10:12 PM

          I'm not aware of any issue with using external logging. I have seen one instance where some log entries were truncated but they all still made it to the server.

          Steve

          1 Reply Last reply Reply Quote 0
          • T
            tim.mcmanus
            last edited by Jun 14, 2015, 10:17 PM

            Are there any additional messages on the Console.app?

            1 Reply Last reply Reply Quote 0
            • -
              -flo- 0
              last edited by Jun 20, 2015, 1:02 PM

              @tim.mcmanus:

              Are there any additional messages on the Console.app?

              Messages which the Mac receives are logged in system.log, however Console.app shows these plus some more received via syslog from the pfSense. Where these are logged and why they are not logged in the system log also I do not understand.

              I checked a package dump and there seem to be log messages which do just not show on the Mac.

              So this most probably is a Mac issue. I wanted to avoid to get a new device for logging to save money and time and used my old mini. But at least regarding the time this seems a bad investment for this purpose. I better get something else for that.

              So slightly off topic question: Is there a recommendation for a cheap and simple syslog target? I thought of a Pi, does anyone use one of those for logging and if so which operating system?

              -flo-

              1 Reply Last reply Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator
                last edited by Jun 20, 2015, 1:18 PM Jun 20, 2015, 1:15 PM

                Raspberry pi running just plain old https://www.raspbian.org/ with syslog-ng is more than capable of being a syslog server.

                Can't you just run esxi on your mac mini, and then whatever linux/bsd/other distro you want to be your syslog?

                Pretty sure esxi 6 works out of the box for mac mini, before you had to do a bit of tweaking and hacking to get it all working.. But with 6 pretty sure its OOTB ready..

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                1 Reply Last reply Reply Quote 0
                • T
                  tim.mcmanus
                  last edited by Jun 21, 2015, 12:08 AM

                  There is a paid version of ESXi for the Mac under the name VMware Fusion.  You can run one or multiple VMs on it while the MacOS is running.  I use it and it works like a charm.  I think it retails for $70, and it's on sale 25% off right now.

                  1 Reply Last reply Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator
                    last edited by Jun 21, 2015, 3:05 PM Jun 21, 2015, 3:01 PM

                    Well you can get esxi for FREE - so why would you run fusion?  Fusion is more the workstation version for mac, well not even that to be honest - its designed to run windows on your mac.  This is is mini that I take it he uses as server, so just put esxi on it for free and run whatever vms you want.

                    Fusion is great if you want to run that windows game on your mac, or you really like some windows app like note++ or something that only comes for windows and don't want to boot into windows like bootcamp and want to use that windows app like its a mac app. But if what your running is going to be on 24/7/365 as a server type server - like a syslog server.. Then that would be better suited as vm under esxi if you ask me.

                    Fusion is not what he would want to run a linux distro to be a syslog server.

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                    1 Reply Last reply Reply Quote 0
                    • T
                      tim.mcmanus
                      last edited by Jun 21, 2015, 8:15 PM

                      Works either way.  One way it's a dedicated ESXi host with the hypervisor is the primary OS.  The other way the Mac is the primary OS with a hypervisor running on top of it.  Both work just fine, but if you're primarily a Mac person, running Fusion is easier than installing and setting up ESXi.  Additionally, you need Windows to support ESXi because there is no Mac client (well, you can sort-of with Fusion, but it's not the same).

                      IMHO, both work reasonably well for this kind of application, and each has it's pros and cons from a support perspective.

                      1 Reply Last reply Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator
                        last edited by Jun 21, 2015, 8:28 PM

                        well if he is going to buy fusion, I would use it on his desktop..  And install esxi on his mini - fusion can be used to manage esxi host.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                        1 Reply Last reply Reply Quote 0
                        • T
                          tim.mcmanus
                          last edited by Jun 21, 2015, 10:19 PM

                          Could do that, but then he'd have to buy a Windows license.  :)

                          1 Reply Last reply Reply Quote 0
                          • J
                            johnpoz LAYER 8 Global Moderator
                            last edited by Jun 22, 2015, 6:52 AM Jun 22, 2015, 6:47 AM

                            Says who??  Fusion can manage esxi – you don't need to run windows to run the vclient.

                            You can even create your vms in fusion, and then upload them to the esxi host.  Once they are on the esxi host you can edit their settings, start and stop them, etc.

                            https://derflounder.wordpress.com/2014/11/23/managing-esxi-hosted-virtual-machines-using-vmware-fusion-professional/

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                            1 Reply Last reply Reply Quote 0
                            • T
                              tim.mcmanus
                              last edited by Jun 22, 2015, 1:04 PM

                              Very, very different experience than the ESXi client for Windows.  You have to create the VM on the Mac first and then move it to ESXi.  The vast majority of features aren't available on the Mac client.

                              And the irony is that most EMC/VMware guys I know all use Macs but run Windows in Fusion to access their products.  I run a 100% Mac shop with the exception of my ESXi node and pfSense.  I personally prefer using the Windows VMware client, but, yes, you are correct, you get get by with using the Mac client.

                              1 Reply Last reply Reply Quote 0
                              • D
                                doktornotor Banned
                                last edited by Jun 22, 2015, 1:11 PM

                                @tim.mcmanus:

                                I run a 100% Mac shop

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Jun 23, 2015, 12:03 AM

                                  Ha!  ;D

                                  Somewhat off topic but amusing anyway.

                                  1 Reply Last reply Reply Quote 0
                                  16 out of 16
                                  • First post
                                    16/16
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                    This community forum collects and processes your personal information.
                                    consent.not_received