All Questions
235
questions
12
votes
4
answers
24k
views
logrotate unable to rotate logs, getting "No such file error"
logrotate is unable to rotate my logs. I have checked the file permissions, they are fine.
I have even tried by putting "su root root" in the configuration file, still I am facing the same issue.
...
1
vote
0
answers
313
views
ufw logs BLOCKS from 2 sites while BLOCK logging is completely disabled for ALL sites
Logging is enabled. Only allow rules are logged. The very last line of my firewall rules is:
Anywhere DENY Anywhere
No logging is asked for, however two IPs repeatedly show ...
69
votes
8
answers
52k
views
How can I log all process launches in Linux?
I would like to get a log of all processes that are launched with the time that they were launched and the arguments they were launched with. Is this possible in Linux?
39
votes
7
answers
72k
views
Remove first N lines from an active log file
Is there a way to remove the first N lines from a log that is being actively appended by an application?
0
votes
1
answer
151
views
Debian 10 - OpenSSH-Server How to redirect user login info to a different logins file?
Debian 10 + OPENSSH-SERVER 7.9
I have a remote server that connect to my local server every minutes and in the local server's syslog, every minute I have:
Oct 11 18:22:01 localhost systemd[1]: Started ...
3
votes
1
answer
2k
views
How to enable systemd's journal audit transport?
I have been studying logging on Linux but I have come to a road-block that's got me stuck for the past few days. My goal is to forward logs from two raspberry pi 3's running OpenSUSE Tumbleweed (...
1
vote
0
answers
2k
views
How to find out what killed my desktop environment (and possibly X Server)?
I ran into a problem this morning. I have a computer that is used for machine learning and nothing else. I use python to run tensorflow to train some models that I made.
The problem is that I couldn'...
1
vote
1
answer
11k
views
How to read from syslog?
I can write to syslog via:
logger "foo bar baz"
but how do I read from syslog? my only guess is:
tail -f /var/log/syslog
but that doesn't seem right from my testing.
Note: also looking for a way ...
2
votes
1
answer
1k
views
Configuring journald.service to log its own debug_log messages
I have a Linux server that is rotating its logs every hour or so, and I'd like to understand why.
I noticed that journald itself contains debug logging, like this, that might explain it. But I checked ...
1
vote
1
answer
589
views
how to get print of ssh user logged in by password?
I want to know if it is possible to get the hash key fp from the ssh diaries for the ssh user login with a password, not a key. I see public key login keyprints recorded in the file, but no passwd ...
0
votes
1
answer
92
views
What could be a list of important configuration files and logs file on a Linux system that deserve to be monitored by a SIEM? [closed]
I am not a system engineer and not a security expert (I am more a software developer) but I am working on a project related to a SIEM installation (Wazuh). At the moment this installation have only a ...
42
votes
4
answers
221k
views
Where Linux places the messages of boot?
I want to find place to where Linux writes all boot messages. You know:
facility one [STARTED]
facility two [STARTED]
facility three [FAILED]
I searched with
find . -print0 | xargs -0 grep -...
5
votes
3
answers
11k
views
How can I get log messages from the LAMP server on Ubuntu 10.04?
How can I get log messages from the LAMP server on Ubuntu 10.04?
Should I install some good program on Ubuntu for that purpose?
0
votes
1
answer
1k
views
prevent kernel message which appears on terminal screen /dev/tty1
Kernel debug level message
watchdog : BUG: soft lockup - CPU#0 stuck for 22s!
appears in my console(/dev/tty1) and I am trying to prevent it.
I tried following 3 methods but none of them worked:
I ...
0
votes
0
answers
104
views
How to edit file inplace
I am writing some logs in a file using logging module
#filename : demo.py
import logging
#other imports as well
logging.basicConfig(filename="myfile.log",
format='%(...