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

    Moved server - transfer logs?

    Problems Installing or Upgrading pfSense Software
    3
    5
    935
    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.
    • H
      HCJ
      last edited by

      Hi,
      I've just moved Pfsense to a new server and also upgraded to latest version. All seems to be working ok.
      However, I do not have the old stats / logs.
      How do I go about transferring these over? for bandwidthd etc.

      Thank you

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Hi.

        Use this guide : https://doc.pfsense.org/index.php/Upgrade_Guide  :)

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • H
          HCJ
          last edited by

          i've already upgraded to 2.2 on a new server, and copied config across. I'm after the log files and I cant see that info in that guide ?

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by

            Log files (here: /var/log) have some kind of binary format.
            I don't know if these can be recopied from one install to another - it would be surprised me if an in-place upgrade wouldn't simply wipe them.

            They are NOT stored in the config.xml storage file.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

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

              There are at least thee different things, and different types of logs, that you may be talking about.  Can't tell without more info.

              Bandwidthd data files (*.cdf) are stored in /usr/pbi/bandwidthd-amd64/local/bandwidthd. (Adjust if needed for i386).  To move those, I first would install bandwidthd on the new server, then copy the old *cdf files as well as the old etc/bandwidthd.conf to the new system.  Files in htdocs should be created as needed.

              System log files are binary in a 'circular log'  format, and live in /var/log.  In a console you can generate plain text by using the clog utility, ie "clog /var/log/system.log |less".  No sense, IMHO, in copying these to a new system.

              The rrd data files are used to create the rrd graphs you may be referring to, and these live in /var/log/db.  I'm pretty sure there are ways to back up the rrd data, and I think they are moved automatically when upgrading a system, but I'm not sure of the correct way to move old data to a new install with a potentially different configuration.  They are binary, so if you are going i386 to amd64, they are not compatible.  There are ways around that, but require some manual intervention, essentially a dump & restore.  Maybe somebody can chime in with proper way to move rrd data.

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