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

    Size of logs not correct

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 372 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.
    • S
      Sessa45
      last edited by

      Hi guys!

      The size of my log files is set to default.

      If i use the WebGUI -> Status -> System logs and set the log size to 500 MB under the settings, the logfiles are almost 500 MB in size. How can it be that the files grow from 500 KB to 500 MB at once?

      Also, if I clean the logs via "clear log", for example, the system.log file is just under 500 MB in size. With wc -l system.log i also see that the log file is only 2 lines tall.

      How exactly does that happen?
      Regards

      dragoangelD 1 Reply Last reply Reply Quote 0
      • dragoangelD
        dragoangel @Sessa45
        last edited by dragoangel

        @Sessa45 build-in syslog is provision all space for all system logs. They not rotated. If you want you can install syslog-ng and configure receive of all logs or push all logs to remote syslog in LAN

        Latest stable pfSense on 2x XG-7100 and 1x Intel Xeon Server, running mutiWAN, he.net IPv6, pfBlockerNG-devel, HAProxy-devel, Syslog-ng, Zabbix-agent, OpenVPN, IPsec site-to-site, DNS-over-TLS...
        Unifi AP-AC-LR with EAP RADIUS, US-24

        1 Reply Last reply Reply Quote 0
        • S
          Sessa45
          last edited by Sessa45

          Sorry but i do not understand this prinzip.
          Every log has the same size. So far so good.

          But why has for example the systen.log file a size of about 500 MB Even though it contains only two lines? :)

          1 Reply Last reply Reply Quote 0
          • dragoangelD
            dragoangel
            last edited by dragoangel

            This is how syslog works on freebsd. As i said: enable checkbox: send all log to remote server and install syslog-ng and configure it like you like.
            I used this log haproxy logs, and all is good

            Latest stable pfSense on 2x XG-7100 and 1x Intel Xeon Server, running mutiWAN, he.net IPv6, pfBlockerNG-devel, HAProxy-devel, Syslog-ng, Zabbix-agent, OpenVPN, IPsec site-to-site, DNS-over-TLS...
            Unifi AP-AC-LR with EAP RADIUS, US-24

            1 Reply Last reply Reply Quote 1
            • DerelictD
              Derelict LAYER 8 Netgate
              last edited by

              https://docs.netgate.com/pfsense/en/latest/book/monitoring/system-logs.html

              https://redmine.pfsense.org/issues/8350

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

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