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

    Logs - Log Details

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 523 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.
    • penguinpagesP
      penguinpages
      last edited by

      I have a cluster, it was using DHCP as resource to allocate from DHCP, but was shutdown for maintenance for a few days.. When it came back up, vms got different IPs from DHCP server. But cluster won't substantiate itself unless the IPs go back to what they were. My bad.. sure.. BUT... I figured I could go into DHCP server lease logs and review lease logs, filter by MAC, to find its old lease and convert to static reservation.

      Issues:

      1. Logs only went back four or so days. I have to imagine the data is there, just not within current log (Disk space currently used by log files: 6.3M Worst case disk usage for base system logs based on current global settings: 58.11 MiB) So not for lack of disk space.
      2. When I try to set reservation, it must be outside DHCP scope (Error: The IP address must not be within the DHCP range for this interface."), which is not goal, but more of pinning what is current DHCP lease to be permanent

      Questions:

      1. How to I export more detail logs and logs that go farther back?
      2. Can I redirect logs to NFS mount that logrotate runs out and would then save to NFS path? (only option I see is to use forking to syslog)
      3. How can I bind what is an IP lease within DHCP scope range to set to static
      NogBadTheBadN 1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad @penguinpages
        last edited by NogBadTheBad

        @penguinpages said in Logs - Log Details:

        How to I export more detail logs and logs that go farther back?

        Set up a syslog server and point the logs to that.

        I use my Synology NAS.

        Screenshot 2023-05-08 at 19.49.26.png

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          You should see old leases in /var/dhcpd/var/db/dhcpd.leases if they still exist anywhere.

          Though if clients are getting a new lease they may not.

          You can choose to backup the leases in Diag > Backup > Backup extra data.

          Steve

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