Questions tagged [logs]
Configuring or analysing log files (text files where programs output error and informational messages, useful for debugging and troubleshooting).
1,988 questions
-3
votes
1
answer
43
views
All Logs written in /dev/null
I have a few Server hosted by x and y. How can Id deactivate anything about logs. I will connect via a VPN Service like OpenVPN or Wireguard. Also I want to connect to the Server with SSH. On this ...
0
votes
0
answers
27
views
Apache 2.4 keeps writing in old log file despite logrotate restart
I am using logrotate on RHEL 9 to rotate access logs of an Apache 2.4 (actually IBM HTTP Server) running as root.
The config I use is a series of the following for each access.log file:
<HTTPServer ...
0
votes
1
answer
41
views
Is there a linux kernel interface (/proc) that counts kernel error log messages?
The comand dmesg --level=emerg,alert,crit,err lists all error messages with a high severity.
I wondered for monitoring purposes whether the count of messages is somehow exposed in the /proc filesystem....
0
votes
0
answers
22
views
How to increase the number of log files: /var/log/mail.log* on macOS?
On my actual macOS, there are every day 7 flat files in /var/log of name mail.log* rotating at 23:00:
### 18:20 milky-way:/etc/asl # ls -al /var/log/mail.log*
-rw-r-----@ 1 root admin ...
0
votes
1
answer
12
views
the kubernetes promtail did not send logs to loki service
I have deploy the loki service and using this command to check the service deploy:
curl -H "Content-Type: application/json" \
-s -X POST "http://139.14.166.24:3100/loki/api/v1/push&...
0
votes
1
answer
25
views
How to view real-time log of all varnish cache evictions (lru nuked, purged, banned, expired, etc)
How can I view the objects that are removed from the varnish cache in real-time?
I know that I can monitor for PURGE events using varnishlog, and I know that I can monitor varnishstat to see the ...
0
votes
1
answer
19
views
How to log which application process removes a file from the server?
I have a situation and have described it here .
In short: Images from WP are randomly missing from the server while being kept in the database. I am confident that this is done through application and ...
1
vote
0
answers
24
views
Process under systemd (journald) doesn't log stdout?
I have a process that I've written that logs several lines to stdout on startup:
Remote Input Daemon starting...
Creating evdev device... done.
Filling keys list array... done.
Setting up listening ...
0
votes
1
answer
32
views
how to make the systemctl status output auto wrap
I am using this command to show status info:
[root@iZm5e2jhfbrshckqh6qdbuZ system]# systemctl status kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/usr/lib/systemd/...
0
votes
1
answer
58
views
Cause of abnormal laptop shutdown? Could ACPI Errors cause Overheating?
My well cooled laptop surprisingly shutdown at about 5 am local time, when I was sleeping. If anyone could help me decipher from logs or whatever below, what was the real cause, I would appreciate it ...
0
votes
1
answer
72
views
Get output into journal in a C written service
I have a small service written in C on Debian.
This service automatically starts with Linux and does some file operations and other things as expected.
The service prints some informational messages ...
1
vote
0
answers
14
views
Debian - help with debugging / unstability issue
i am running debian on google vmare
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)&...
0
votes
1
answer
95
views
dmesg log being flooded by audit, can I somehow prevent it?
I'm torrenting with Transmission GTK. My dmesg log is being flooded by audit, and without knowing what good it is for, I do not even care much, I cannot use dmesg for other purposes. It floods so fast ...
0
votes
0
answers
41
views
How to continuously log process changes on a Linux system using built-in tools?
I have root access to a Linux system and need to log processes without installing any additional software, using only built-in tools like top. However, I want the process to run in the background ...
0
votes
1
answer
45
views
Why doesn't Journald store kernel messages for as long as other messages are kept?
I have a computer running Fedora Workstation 40 and Systemd 255. For some reason kernel log messages are available in the Journal for much shorter time than other log messages.
user@host:~ $ ...
0
votes
0
answers
21
views
Centos Firewalld - Disable logging for a single role
Been through the firewalld documentation trying to figure out how not to log rejected packets for a single rule. I have a host that keeps trying to connect to my Centos machine. The log file on the ...
0
votes
0
answers
30
views
Hyper-V hosted 6.9 Centos sshd and httpd services stopped at the same time 2 Saturdays in a row
It happened on August 3 and July 27 both times at 1:00 am. Here are the httpd logs.
[Sat Aug 03 01:00:01 2024] [notice] caught SIGTERM, shutting down
[Sat Jul 27 01:00:01 2024] [notice] caught ...
0
votes
1
answer
102
views
atop is not logging daily
I installed atop on Rocky 9 to monitor CPU spike issues. On 2/8/2024 (2 days ago) I enabled and started atop:
systemctl enable atop
systemctl start atop
Thus, a file was created in /var/log/atop ...
2
votes
1
answer
108
views
How to suppress output for set +v / set +o verbose (disabling verbose flag) in bash?
Script
#!/bin/bash
set -v
echo "verbose echo"
{ set +v; } &>/dev/null
echo "non verbose echo"
gives the following output:
echo "verbose echo"
verbose echo
{ set +...
0
votes
0
answers
52
views
Monitoring start and stop processes
Im trying to monitor the start and stop of processes on a server with auditd, using the following rule
-w /usr/bin/ -p x -k T1569.002
However, when raising an event to generate the log and searching ...
0
votes
1
answer
35
views
Understanding Log Management on a Linux Server
I'm trying to get a better understanding of how log management works on a Linux server. When I install a Linux server, I notice that there are many log files and directories in /var/log.
My concern is ...
0
votes
1
answer
35
views
what log files in Linux to search for hardware errors
As an administrator what other log files, besides /var/log/messages, can you look through to see if there are any hardware errors or anomalies happening?
For example, you power on a Linux server at ...
2
votes
1
answer
134
views
Shell/bash: Can I create a file descriptor to an existing file without emptying the file? [duplicate]
Context: I have cursory bash experience. I do not fully get file descriptors, just some basic usage. Trying to create a setup script. Most done, but a few "kinks" remain.
So here is a newbie ...
19
votes
1
answer
3k
views
Proper way to write C code that injects message into /var/log/messages?
In Linux, RHEL-8.10 or later if it matters, I would like to write some C code that takes in various parameters and upon a certain condition issues a system("init 0") to shutdown the system. ...
0
votes
1
answer
79
views
Get a log of everything GParted does when re-sizing a btrfs filesystem
When I use GParted to do some complicated partition and file system manipulation it gives the option to see the details of what steps it took. But this does not give all the details of what underlying ...
0
votes
1
answer
74
views
How can I get nftables to log the data transferred per session?
With a standard log rule "ct state new" we get the details about a new session, however, we only get the data size of the first packet looking in LEN i.e.
2024-06-15T10:11:31.829667+00:00 ...
0
votes
1
answer
34
views
Persisting Docker container logs in Kubernetes?
We have an application running in a Docker container, within Kubernetes, but because of certain limitations we can't change the application to log to stdout & stderr. This means when the app fails ...
0
votes
1
answer
139
views
adding date and variable name to log file and generate a new one
I am trying to run a bash script on daily basis which generates a log file.
#!/bin/bash
exec 3>&1 4>&2
trap 'exec 2>&4 1>&3' 0 1 2 3
exec 1>logfile.output 2>&1
(
...
0
votes
0
answers
50
views
Missing kernel logs for system crash
I'm using Debian 12.2 as a headless server, installed on a laptop (Dell Latitude E5450, i5 CPU) with external SSD (always plugged in).
I noticed that I couldn't connect to the server in the evening ...
0
votes
1
answer
189
views
rsyslog variable from mmnormalize as part of omfile filename
I have a log line that looks like this:
May 20 10:25:42 192.168.20.100 Timestamp="2024-05-20 10:25:42",LogId="535666280",NodeId="192.168.1.100",Facility="Packet ...
0
votes
1
answer
48
views
Is there a way to find out which process is writing to a file on a server with restricted permissions?
Let's say I have a file named "app.log" and I want to find out which process is writing the log, but I have restricted permissions, I have tried the following:
lsof /path/to/file, which I ...
0
votes
0
answers
34
views
AuditD - tuning out parent and children
I'm reading over the AuditD readmes and I see how you can use filters but is there a way that you can tune out a parent and any activity they create along with their children processes?
For example, I ...
0
votes
0
answers
40
views
Logging commands are successfully logging the script, but it is preventing the commands from outputting to the user
I'm very new to bash scripting. I have a script that I have been working on, everything is working so far but when I include the following section of logging, it doesn't out put commands to the user, ...
0
votes
0
answers
96
views
+200
mod_deflate Logging on Apache/2.4.62 (Debian) does not work
Basics
I am running the Apache/2.4.62 on my Raspberry Pi 4B (ARM64/AArch64) with the Debian GNU/Linux 12 (bookworm).
Some HW/OS info:
# neofetch
_,met$$$$$gg. root@rpi4
,g$$$$$$$$...
1
vote
1
answer
60
views
Does an echo to network command exist in debian?
Does some sort of command like:
echotonet "this"
or
cat file.txt > echonet
that could allow one to easily paste text document data to a service like paste.debian.net ?
I often use ...
0
votes
1
answer
39
views
Duplicate kernel logs during boot on Debian trixie
On Debian testing/amd64 (future version trixie) with Linux kernel 6.6.15-amd64, during the boot, I have duplicate kernel messages on my console:
"normal" logs prefixed with timestamp
some ...
0
votes
0
answers
134
views
Change log file for php-fpm
In order to have only one .log file related with php issues, I want to force php-fpm to write errors in /var/log/php-fpm/error.log instead of /var/log/php-fpm/www-error.log.
I just updated /etc/php-...
2
votes
0
answers
47
views
Add user or process information in nftables logs
Hy,
Is it possible to customize nftables log's to add more informations ?
For example, it could be interesting to get users ( id, gid, ... ) or processes informations that try to out.
Example of ...
0
votes
1
answer
373
views
gpg-agent is not logging to file specified in `gpg-agent.conf`
Below is my gpg-agent.conf file, the log-file option specifies where to put log however even though gpg-agent works fine the log has never been created.
I'm thinking either the option is ignored or I'...
-1
votes
1
answer
173
views
What is the scope of /var/log/user.log file?
/var/log/user.log
What's the scope of this log file?
Is it related only to currently logged in user or to multiple users and which ones?
What this log file is about and when should I look into it?
0
votes
0
answers
53
views
What killed my process? No relevant entries seen via dmesg or journalctl on Rocky Linux 9.2 (Blue Onyx)
A program from a vendor gets killed instantly. I need to know why. Log shows nothing relevant. Any advice? I looked into OOM killer etc. Added tons of swap. Did not specify log in journalctl so I ...
1
vote
1
answer
92
views
How to know when a following tail moves from old file to the new one
So, I am working with tail -F ( or tail --follow=filename). Now it works as advertised and when a rollover occurs it will move to the new file.
This is great and helps me keep track of my logs. The ...
0
votes
1
answer
41
views
Detecting the renaming of a directory containing my log-file
We have a C++ program, that logs its messages into a file. Every once in a while the directory containing this log-file is renamed (or even deleted), and a folder with the same name is created anew.
...
0
votes
1
answer
523
views
How to get a log from Proton when not running in Steam
The Proton README says that setting the environment variable PROTON_LOG=1 will create files at ~/steam-*.log with debug information. However, when running Proton without the Steam client (for example, ...
1
vote
0
answers
51
views
Error messages at shutdown of Dell laptop with Mint 21.3 and kernel 5.15.0-101 [closed]
For about a week or two I see some error messages at the shutdown of my Dell Inspiron 7577 laptop with Linux Mint 21.3 and kernel 5.15.0-101-generic. I have no idea where or if they are logged ...
1
vote
1
answer
82
views
system logging other than journalctl
I've been assuming that journalctl is comprehensive aggregator of system logs but I find out this is incorrect.
For example dmesg provides logging of system before systemd is fully activated and ...
1
vote
0
answers
54
views
Systemd logging to journal stops after service outputs very long lines
I have a process that outputs its logs to standard error, and I'm running it as a systemd service with Type=simple. I have left the StandardError and StandardOutput fields at their default values (...
0
votes
0
answers
50
views
Ubuntu 24.04 Container generating excessive logs
I am building a workflow that uses containers and Cloud Batch.
My current container is created from a Docker file:
FROM ubuntu:latest
ENV CONTAINER_NAME="python3"
RUN apt-get update &&...
1
vote
3
answers
180
views
How to tail continuously a log file that is being deleted and recreated?
I need to extract information from a log file that is deleted and recreated every time a program runs. After detecting that the file exists (again), I would like to tail it for a certain regexp.
The ...
0
votes
0
answers
48
views
TACACS+ accounting using linux client
Is it possible to log all commands executed in the Linux machine to a TACACS server?