XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Retention for log files and audit logs

    Scheduled Pinned Locked Moved Xen Orchestra
    6 Posts 4 Posters 855 Views 4 Watching
    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.
    • ForzaF Offline
      Forza
      last edited by

      Is there a way to define the maximum retention on audit logs (the audit plugin in XOA) and the general XOA and XCP-ng application logs?

      Bastien NolletB 1 Reply Last reply Reply Quote 0
      • olivierlambertO Online
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi,

        That's 2 very different things. Ping @julien-f for audit logs (or @Bastien-Nollet if he's around). For XO logs, same people to ping. For XCP-ng log rotation, it's another completely different story. Have you took a look at https://docs.xcp-ng.org/guides/logs/#logrotate?

        ForzaF 1 Reply Last reply Reply Quote 1
        • ForzaF Offline
          Forza @olivierlambert
          last edited by

          @olivierlambert thanks! Logrotate seems easy enough to understand and adjust if needed. It's the audit and XOA logs that I need help understanding.

          1 Reply Last reply Reply Quote 0
          • Bastien NolletB Offline
            Bastien Nollet Vates 🪐 XO Team @Forza
            last edited by Bastien Nollet

            Hi @Forza,

            This is not possible at the moment. The XO log retention is set to 20,000 entries.

            About audit logs, we have a task planned for the following months to try to add retention configuration. It's a bit complicated as deleting old audit logs interferes with audit log chain verification, so I don't think we can expect this feature to be released before a few months.

            ForzaF 1 Reply Last reply Reply Quote 0
            • ForzaF Offline
              Forza @Bastien Nollet
              last edited by

              @Bastien-Nollet Thanks for checking. At least I know it is set to 20000 entries at the moment. Thank you.

              1 Reply Last reply Reply Quote 0
              • eveaneE Offline
                eveane
                last edited by

                I would like to suggest to configure a remote syslog server.

                it centralizes all the log s and give you full control over the retention.

                It would also avoid situation where a disk full would impact your logging as well XCP-ng or XOA host operations.

                For your XCP-NG host go to you POOl, select Advanced tab and configure the Remote syslog host section to point to your syslog server.

                For XOA, you can follow the instruction here :
                https://docs.xen-orchestra.com/backups#send-xo-logs-to-an-external-syslog-server

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post