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

    After upgrade to 23.05 RELEASE, Syslog-NG won't start

    Scheduled Pinned Locked Moved pfSense Packages
    16 Posts 5 Posters 1.6k 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.
    • provelsP
      provels @keyser
      last edited by provels

      @keyser
      Running

      service syslog-ng onestart 
      

      generates a more readable error.

      [23.05-RELEASE][root@fw.workgroup]/root: service syslog-ng onestart
      Starting syslog_ng.
      Error parsing pragma, syntax error, unexpected invalid token, expecting LL_EOL in /usr/local/etc/syslog-ng.conf:3:13-3:14:
      1       # This file is automatically generated by pfSense
      2       # Do not edit manually !
      3-----> @version:4.1.
      3----->             ^
      4       destination _DEFAULT { file("/HDD/data/var/syslog-ng/default.log"); };
      5       log { source(_DEFAULT); destination(_DEFAULT); };
      6       source _DEFAULT { internal(); syslog(transport(udp) port(5140) ip(127.0.0.1)); };
      
      Error parsing config, syntax error, unexpected LL_ERROR, expecting end of file in /usr/local/etc/syslog-ng.conf:3:1-3:2:
      1       # This file is automatically generated by pfSense
      2       # Do not edit manually !
      3-----> @version:4.1.
      3-----> ^
      4       destination _DEFAULT { file("/HDD/data/var/syslog-ng/default.log"); };
      5       log { source(_DEFAULT); destination(_DEFAULT); };
      6       source _DEFAULT { internal(); syslog(transport(udp) port(5140) ip(127.0.0.1)); };
      <snip>
      /usr/local/etc/rc.d/syslog-ng: WARNING: failed to start syslog_ng
      

      but I don't understand the complaint.

      EDIT - OK, I got it to start by editing /usr/local/etc/syslog-ng.conf and deleting the period at the end of line 3. Service will start then. HOWEVER, I still cannot do a save from the syslog-ng config page w/o seeing the same error. Likely an upstream problem in the prog that generates the "don't edit" config file.
      Go figure, I'm just a hack.

      3-----> @version:4.1.
      3----->             ^
      

      EDIT 2 - I think line 3 should be @version:4.1.1
      EDIT 3 - The manual edit does not survive reboot.

      Peder

      MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
      BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

      keyserK 1 Reply Last reply Reply Quote 0
      • keyserK
        keyser Rebel Alliance @provels
        last edited by

        @provels Good finding. I will create a redmine on the issue to see if there is a developer that can upstream a fix. I have no idea who maintains this package.

        Love the no fuss of using the official appliances :-)

        provelsP 1 Reply Last reply Reply Quote 0
        • provelsP
          provels @keyser
          last edited by

          @keyser Cool. But even after the edit, it will quit after a while. Dunno, I'm just a shoemaker.

          Peder

          MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
          BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

          1 Reply Last reply Reply Quote 0
          • C
            Cylosoft
            last edited by

            I was just looking for showstoppers on 23.05 for me. Looks like you found the only one for most of our boxes. Thanks for the post.

            J 1 Reply Last reply Reply Quote 0
            • J
              JonH @Cylosoft
              last edited by

              Thanks for posting here. I simply removed the package because I could not figure out "expecting LL_EOL". I plan to reinstall hoping that since the .conf is auto generated that it might work correctly. Maybe I'll wait awhile longer to see what other posts are made.

              1 Reply Last reply Reply Quote 0
              • C
                Cylosoft
                last edited by

                Getting a little annoyed this isn't getting more high priority love from Netgate. We get told pfsense has limitations on log viewing because it's a firewall and to send logs elsewhere. The native syslog only supports UDP and remote logging basically requires TCP/SSL. So syslog-ng is a must. We upgraded a dozen boxes, but anything of any importance is stuck on 23.01 because of this. We need @jimp or someone from Netgate in this thread.

                M keyserK 2 Replies Last reply Reply Quote 1
                • M
                  michmoor LAYER 8 Rebel Alliance @Cylosoft
                  last edited by

                  @Cylosoft I know Jim is going to ask for a Redmine to be open if it hasnt been already so get that ready.

                  Firewall: NetGate,Palo Alto-VM,Juniper SRX
                  Routing: Juniper, Arista, Cisco
                  Switching: Juniper, Arista, Cisco
                  Wireless: Unifi, Aruba IAP
                  JNCIP,CCNP Enterprise

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    Cylosoft @michmoor
                    last edited by

                    @michmoor https://redmine.pfsense.org/issues/14407

                    provelsP 1 Reply Last reply Reply Quote 0
                    • keyserK
                      keyser Rebel Alliance @Cylosoft
                      last edited by

                      @Cylosoft Yeah would be good to have it fixed soon. I too have a lot of boxes i cannot upgrade because I need secure TCP syslog collection from those boxes (and the other networking devices on the same site that forwards to SYSLOG-NG)

                      Love the no fuss of using the official appliances :-)

                      J 1 Reply Last reply Reply Quote 0
                      • provelsP
                        provels @Cylosoft
                        last edited by

                        @Cylosoft said in After upgrade to 23.05 RELEASE, Syslog-NG won't start:

                        @michmoor https://redmine.pfsense.org/issues/14407

                        Also https://redmine.pfsense.org/issues/14389

                        Peder

                        MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                        BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

                        1 Reply Last reply Reply Quote 0
                        • J
                          JonH @keyser
                          last edited by

                          @keyser said in After upgrade to 23.05 RELEASE, Syslog-NG won't start:

                          Yeah would be good to have it fixed soon.

                          Both of the Redmine links are showing this fixed. Looks to me like it's avail in packages.

                          keyserK 1 Reply Last reply Reply Quote 0
                          • C
                            Cylosoft
                            last edited by

                            Thanks @jimp !!! I upgraded a couple of boxes and the syslog-ng 1.16 you just released is working great. Much appreciated.

                            1 Reply Last reply Reply Quote 0
                            • keyserK
                              keyser Rebel Alliance @JonH
                              last edited by

                              @JonH Thank you @jimp Excellent and very fast work. Works beautifully again :-)

                              Love the no fuss of using the official appliances :-)

                              1 Reply Last reply Reply Quote 0
                              • provelsP
                                provels
                                last edited by

                                @jimp Yes, great work as always. All it takes is another one of us mooks to run your code and it's, "Oh, yeah, that..."!

                                Peder

                                MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                                BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.