Skip to content

Virtual machine log permissions #19

Closed

Description

@amkgi

There is a need to collect logs of virtual machines in Elasticsearch, but the logs are created with 0600 privileges.

[pid 2898957] open("/var/log/libvirt/qemu/instance-00053eff.log", O_WRONLY|O_CREAT|O_APPEND, 0600) = 48
[pid 2898957] open("/var/log/libvirt/qemu/instance-00053eff.log", O_RDONLY) = 52

This is a problem, we collect logs not from the root user. I searched the section on flexible logging in qemu.conf, but I couldn't find it. I started looking for this in source codes (src/qemu/), but it is difficult for me. Tell me where in the code you can change the setting of the permissions to log files.

Activity

  1. repo-lockdown commented on Aug 31, 2020

    @repo-lockdown

    Thank you for your interest in the libvirt project.

    Since this repository is a read-only mirror of the project's master repostory hosted on GitLab, issues opened here are not processed.

    We kindly request that new issues are reported to

    https://gitlab.com/libvirt/libvirt/-/issues/new

    Thank you for your time and understanding.

  2. locked and limited conversation to collaborators on Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions