LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   How to configure virtual-manager to move virt-manager.log into the another directory? (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/how-to-configure-virtual-manager-to-move-virt-manager-log-into-the-another-directory-4175728971/)

IlyaShmel 09-15-2023 08:24 AM

How to configure virtual-manager to move virt-manager.log into the another directory?
 
Hello!
I run the virtual machines via Virtual Machine Manager 4.1.0 on Fedora 38 Workstation.

I ought to send virt-manager.log through the rsyslog service to a remote server.

But I can't because the logfile is located in the
Code:

/home/$USER/.cache/virt-manager/
directory. I'm positive that all logs must be in the
Code:

/var/log/
directory.

Where could I read the info abot the virt-manager configuration?

The current directory raises that error:

Code:

rsyslogd[2517]: imfile: on startup file '/home/ilya/.cache/virt-manager/virt-manager.log' does not exist but is configured in static file monitor - this may indicate a misconfiguration. If the file appears at a later time, it will automatically be processed. Reason: Permission denied [v8.2112.0]
.

wpeckham 09-15-2023 11:53 AM

virt-manager uses the libvirt/libvirtd backend management. That means you adjust the logging in the libvirt confd file. That said, I see no log location override in that file on my machine. You may have to actually read the documentation.

IlyaShmel 09-25-2023 02:23 AM

Quote:

Originally Posted by wpeckham (Post 6453886)
virt-manager uses the libvirt/libvirtd backend management. That means you adjust the logging in the libvirt confd file. That said, I see no log location override in that file on my machine. You may have to actually read the documentation.

The virt-manager's documentation is extremely poor: GitHub Docs, virt-manager.org.

As far as I understood the
Code:

libvirtd.conf
file can configure the
Code:

libvirt.log
. But I need the
Code:

virtual-manager.log
.


All times are GMT -5. The time now is 03:20 PM.