Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Logging - targets, retention etc

Logging - targets, retention etc

Scheduled Pinned Locked Moved Feature Requests
8 Posts 3 Posters 139 Views 3 Watching
  • 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.
    • C Offline
      C Offline
      charlesnw
      wrote last edited by
      #1

      I briefly searched the forum and didn't find anything on this topic. Feel free to point me to existing topics.

      1. Is off-box/remote logging possible? I presume I can drop to the root shell and tweak the (r)syslog configuration to send things to a remote target. I would prefer a UI/API way todo this task (to ensure it doesn't break anything).

      2. Same for other logging settings (retention/rotation).

      3. Integration of logwatch

      4. Is the /etc/aliases (root) alias setup to send to whatever Cloudron (SuperAdmin)(s) e-mail addresses?

      5. What about docker logs? (Targeting/retention)?

      Cloudron is wonderful and covers many of my needs. However I also have a Coolify server and it's running things like Graylog/Librenms and other infrastructure bits that Cloudron doesn't provide. For those of us with a bit bigger "enterprise" type setup/requirements, Cloudron could use some lightweight integration points/support.

      BrutalBirdieB 1 Reply Last reply
      2
      • C charlesnw

        I briefly searched the forum and didn't find anything on this topic. Feel free to point me to existing topics.

        1. Is off-box/remote logging possible? I presume I can drop to the root shell and tweak the (r)syslog configuration to send things to a remote target. I would prefer a UI/API way todo this task (to ensure it doesn't break anything).

        2. Same for other logging settings (retention/rotation).

        3. Integration of logwatch

        4. Is the /etc/aliases (root) alias setup to send to whatever Cloudron (SuperAdmin)(s) e-mail addresses?

        5. What about docker logs? (Targeting/retention)?

        Cloudron is wonderful and covers many of my needs. However I also have a Coolify server and it's running things like Graylog/Librenms and other infrastructure bits that Cloudron doesn't provide. For those of us with a bit bigger "enterprise" type setup/requirements, Cloudron could use some lightweight integration points/support.

        BrutalBirdieB Offline
        BrutalBirdieB Offline
        BrutalBirdie
        Partner
        wrote last edited by BrutalBirdie
        #2

        @charlesnw said in Logging - targets, retention etc:

        Is off-box/remote logging possible? I presume I can drop to the root shell and tweak the (r)syslog configuration to send things to a remote target. I would prefer a UI/API way todo this task (to ensure it doesn't break anything).

        For 1. and 2.
        Not from the UI, yet 😉
        Has to be done manually at the moment.

        3. Hmmm might be something to look at.

        4. I don't think so 🤔

        5.
        Not 100 % sure hmmm.
        Same as 1. and 2. I guess.

        Like my work? Consider donating a drink. Cheers!

        C 1 Reply Last reply
        0
        • BrutalBirdieB BrutalBirdie

          @charlesnw said in Logging - targets, retention etc:

          Is off-box/remote logging possible? I presume I can drop to the root shell and tweak the (r)syslog configuration to send things to a remote target. I would prefer a UI/API way todo this task (to ensure it doesn't break anything).

          For 1. and 2.
          Not from the UI, yet 😉
          Has to be done manually at the moment.

          3. Hmmm might be something to look at.

          4. I don't think so 🤔

          5.
          Not 100 % sure hmmm.
          Same as 1. and 2. I guess.

          C Offline
          C Offline
          charlesnw
          wrote last edited by
          #3

          @BrutalBirdie Thanks.

          I also notice that /etc/aliases isn't setup and no mail command exists.

          How is mail to/from root handled by Cloudron? That's particularly important for things like logwatch. Also what about cron jobs running as root etc?

          I realize that Cloudron is meant (and does a fantastic job) of abstracting away from the underlying VPS (essentially the VPS can be treated as "read only" after Cloudron install).

          Still, the OS may occasionally alert on something. Especially if say someone is running a RAID array and wants alerts or has smartmon setup etc. The default/easiest way most of those OS level tools work is e-mailing root , and the expectation is that any forwarding etc is handled by /etc/aliases and an OS level SMTP setup.

          I do see that docker is listening on 25:

          root@tsys-cloudron:~/.ssh# netstat -punta|grep 25
          tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 1192/dockerd

          Perhaps something like msmtp could be setup to listen to 127.0.0.1:25 and forward to the Cloudron SMTP instance?

          1 Reply Last reply
          0
          • BrutalBirdieB Offline
            BrutalBirdieB Offline
            BrutalBirdie
            Partner
            wrote last edited by
            #4

            I am using nullmailer for my systems, which is confiugred to use a Cloudron Server SMTP for sending.
            This might be something that could be setup by default in the future when Clouron is first setup.
            Since every domain in Cloudron, by default, can send mails, even if they might land in spam at first.

            @staff might interesting going further

            Like my work? Consider donating a drink. Cheers!

            necrevistonnezrN 1 Reply Last reply
            0
            • BrutalBirdieB BrutalBirdie

              I am using nullmailer for my systems, which is confiugred to use a Cloudron Server SMTP for sending.
              This might be something that could be setup by default in the future when Clouron is first setup.
              Since every domain in Cloudron, by default, can send mails, even if they might land in spam at first.

              @staff might interesting going further

              necrevistonnezrN Offline
              necrevistonnezrN Offline
              necrevistonnezr
              wrote last edited by
              #5

              @BrutalBirdie
              Can you share your config? I don’t get it to work:
              /etc/nullmailer/defaultdomain

              cloudron@mydomain.com
              

              /etc/nullmailer/remotes

              my.domain.com smtp --port=587 --starttls --user=user@mydomain.com --pass=apppassword                              
              

              Yet, mails are rejected as they are being sent as „user@cloudron“ instead of „cloudron@mydomain.com“

              1 Reply Last reply
              0
              • BrutalBirdieB Offline
                BrutalBirdieB Offline
                BrutalBirdie
                Partner
                wrote last edited by BrutalBirdie
                #6

                @necrevistonnezr my config, with redacted details
                /etc/nullmailer/remotes:

                mail.DOMAIN.TLD --port=587 --auth-login --user=sendernullmailer@DOMAIN.TLD --pass=that-is-one-secure-password --starttls
                

                /etc/nullmailer/adminaddr:
                note: this is the mailbox where to send the mailto

                nullmailer@safeserver.de
                

                /etc/nullmailer/allmailfrom

                sendernullmailer@DOMAIN.TLD
                

                restart the nullmailer.service after changing the files:

                systemctl restart nullmailer.service
                

                From https://wiki.debian.org/nullmailer

                Check the configuration by sending a test email.

                echo "hello" | NULLMAILER_NAME="Testsytem check" mail -s "This is just a test with nullmailer" "target-email-address@your-domain.net"
                

                Like my work? Consider donating a drink. Cheers!

                1 Reply Last reply
                1
                • necrevistonnezrN Offline
                  necrevistonnezrN Offline
                  necrevistonnezr
                  wrote last edited by
                  #7

                  Thanks! I didn’t have /etc/nullmailer/allmailfrom even after sudo dpkg-reconfigure nullmailer and it’s not mentioned on the debian site?

                  BrutalBirdieB 1 Reply Last reply
                  0
                  • necrevistonnezrN necrevistonnezr

                    Thanks! I didn’t have /etc/nullmailer/allmailfrom even after sudo dpkg-reconfigure nullmailer and it’s not mentioned on the debian site?

                    BrutalBirdieB Offline
                    BrutalBirdieB Offline
                    BrutalBirdie
                    Partner
                    wrote last edited by
                    #8

                    @necrevistonnezr uhhhmmm
                    Since I set up everything with ansible, I once found this out, put in my playbook and forgot about it.
                    That it does not exist in the deb doc is questionable. 😄

                    Like my work? Consider donating a drink. Cheers!

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search