Score:0

Relocate logs in /opt/log to /var/log

cn flag

I want to save my logs into /var/log so that I can send them to the Siem platform, because the platform is unable to receive them from /opt/log. The logs are saved into /opt/log because I am using a third party application.

Bovine avatar
ru flag
Maybe create a [symbolic link](https://askubuntu.com/questions/56339/how-to-create-a-soft-or-symbolic-link) for `/opt/logs` that points to `/var/log`?
user535733 avatar
cn flag
Maybe the application has a setting log directory?
Score:0
ru flag

You could use a symbolic link to point the directory /opt/log to /var/log instead.

First make a backup copy of /opt/log:

sudo mv /opt/log /opt/log_backup

Then create the link:

sudo ln -s /var/log /opt/log
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.