[SOLVED] Check log of actions the machine has performed? (NUC nextcloud server on Debian 10)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Check log of actions the machine has performed? (NUC nextcloud server on Debian 10)
I'm running nextcloud (only I access it), and emby media server (again, only I access this). Yet sometimes when I'm not using it, I here the hard drive clicking as though it's reading or writing. Idk what it would be. Maybe backups but I have that set to once a week, and I hear noises nearly everyday even though I'm not using it.
Is there any log I can check to see what actions have been happening on the machine? So I can figure out what is reading and rewriting to the drive?
There are many background processes running on a Linux system (not different from Windows or any other OS, actually). I am sure Nextcloud and Emby also perform many tasks autonomously. It's quite normal to have occasional disk activity, even when you don't use them.
If you are worried, you could switch on auditing and measure all I/O-related system calls. I would start with read() and write(). Be prepared for an avalanche of data, though.
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803
Rep:
Quote:
Originally Posted by berndbausch
I would start with read() and write(). Be prepared for an avalanche of data, though.
Oy! I would start with open() and close(). Then dig deeper once you figure what files are being accessed. Even that's overkill.
To the OP: Just because you're not doing anything on the system, the system itself is dealing with housekeeping tasks at all sorts of odd hours as defined in root's crontab or the cron* directories under /etc.
@berndbausch how about from a security standpoint, is there a log of attempted and successful external connections to my machine, from outside my LAN?
There is a log of attempted and successful/unsuccessful logins (might be /var/log/auth.log on Debian; /var/log/secure on Centos/RHEL), but as far as I know, not generally connections.
I could imagine that you could create your own log with a smart iptables script, but perhaps you should look into an intrusion detection system like Snort.
Or you create firewall rules that block any connection attempts from external IP addresses.
Good luck troubleshooting these two applications and what they are accessing.
I think emby isn't even open source? And nextcloud is a multi-purpose monster... makes me wonder why you need a separate media server... anyhow:
I think it's normal, not likely to be a security problem or any problem at all.
Just to check I put an ear to my media server and it's whirring and clicking though I'm not using it atm.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.