Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin-vm: logging module to centralize logs collection #565

Closed
wants to merge 6 commits into from

Commits on May 17, 2024

  1. log-vm: VM to secure and centralize logs

    * Design https://ssrc.atlassian.net/wiki/x/GYA4Pw
    * log-vm scaffolding based on copy of net-vm
      - sets up systemd-journal-remote on default port 19532
    
    Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
    vilvo authored and vunnyso committed May 17, 2024
    Configuration menu
    Copy the full SHA
    7d0194c View commit details
    Browse the repository at this point in the history
  2. log-vm: module for systemd-journal-upload service

    * run service to upload journal to log-vm
      - tested only to start without errors
    * formatting (nix fmt)
    
    Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
    vilvo authored and vunnyso committed May 17, 2024
    Configuration menu
    Copy the full SHA
    0f30790 View commit details
    Browse the repository at this point in the history
  3. log-vm: starting systemd-journal-remote service in log-vm

    Without this patch if ghaf-host tries to do `systemd-journal-upload`
    there will be following error "Failed to connect to 192.168.101.66
    port 19532 after 0 ms: Couldn't connect to server".
    As there will be no listener running in log-vm to accept logs.
    
    With this patch we add listener in log-vm on 19532 port to accept logs.
    Logs will be stored at "/var/log/journal/remote" in log-vm.
    `ghaf-host` logs are getting stored in log-vm successfully.
    
    Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
    vunnyso committed May 17, 2024
    Configuration menu
    Copy the full SHA
    f98f70b View commit details
    Browse the repository at this point in the history
  4. log-vm: Extending upload.service and creating persistent storage

    This patch will extend support of logging of different vms such as
    gui-vm, net-vm and app-vms.
    Central logs will be stored `/var/log/journal/remote` on ghaf-host
    Same logs can be viewed in log-vm as well.
    App-vms logs will be saved as remote-192.168.101.1.journal.
    
    Journal logs will be persistent even after reboot.
    
    Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
    vunnyso committed May 17, 2024
    Configuration menu
    Copy the full SHA
    74e25fd View commit details
    Browse the repository at this point in the history
  5. rebase: sshkeys imports

    Signed-off-by: Ville Ilvonen <ville.ilvonen@unikie.com>
    Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
    vilvo authored and vunnyso committed May 17, 2024
    Configuration menu
    Copy the full SHA
    8464d31 View commit details
    Browse the repository at this point in the history
  6. fix: change service name

    Signed-off-by: Vunny Sodhi <vunny.sodhi@unikie.com>
    vunnyso committed May 17, 2024
    Configuration menu
    Copy the full SHA
    decf1a1 View commit details
    Browse the repository at this point in the history