Questions tagged [logs]

Configuring or analysing log files (text files where programs output error and informational messages, useful for debugging and troubleshooting).

Filter by
Sorted by
Tagged with
3
votes
2answers
4k views

Log the output of Expect command

I have made the below expect script and I need to log the output of that script. SOURCE_FILE=`ls -l *.txt --time-style=+%D | grep ${DT} | grep -v '^d' | awk '{print $NF}' ` if [ -n "${SOURCE_FILE}" ] ...
1
vote
1answer
70 views

Analyze “a stop job is running” for 1 minute 30 seconds during shutdown, on Debian 10

I have installed Debian 10 Desktop. I notice shutdown is frequently delayed, by 1 minute 30 seconds. I do not have this problem on my Debian 9 install. (Or at least, not nearly so often). I can ...
17
votes
9answers
9k views

How to read the shut down messages afterwards?

I'm using Lubuntu 11.10. Every time I shut down I can read FAIL in red letters, but I can not read more. So, how to read the log messages and try to solve the problem?
0
votes
1answer
2k views

Grep /var/log/maillog for email to a certain user, based only on his linux username

I have a learning environment, based on Linux CentOS, with Postfix and SquirrelMail running, but my assignment is more in general. I need to find in the maillog e-mails received by a certain user ...
0
votes
0answers
19 views

How to mute syslog from console, without using actual syslog daemon?

I usually switch between Xorg and (framebuffer) text console a lot. But every time I switch to text console, I got a message like this on the text console: acpid: client 7251[0:0] has disconnected ...
3
votes
2answers
1k views

Log crontab shell script errors with error occurred time?

A common way to log crontab errors looks like below: 1 */8 * * * sh /pseudo_path/test.sh 2>> my_err_log It's a concise command, but it can't record the error occurred time, and the path of ...
0
votes
1answer
4k views

Cron stopped logging to /var/log/cron.log

A month ago I set cron to log to /var/log/cron.log by modifying /etc/rsyslog.d/50-default.conf. Logging worked great until I changed permissions on /var/log (by easing permission restrictions), and ...
1
vote
2answers
36 views

how to get packets log which are dropped by rp_filter=1

I do need a log of packets which are dropped by rp_filter ... how to do this logging ? which logs how to enable.
0
votes
0answers
21 views

Incoming and outgoing traffic from kernel service from lan router connecting to internet

I have kali linux. I have outgoing on for ufw for port 53, https, http. All outgoing and incoming (all protocols) blocked by default. I am still getting incoming traffic from my lan which connects ...
-1
votes
0answers
19 views

Cron job running but script not producing output

I have a python script that I need to run continuously even if the system reboots. I have put it in the crontab as: @reboot sleep 60 && python /home/user1/Documents/process.py --save_dir=/...
2
votes
1answer
43 views

How to configure auditd to collect logs from /proc

I've been looking for this for about 2 days and have come up empty-handed. I am looking for a way to build a threat alert for Linux-based credential dumping in Splunk. To do this, I need to be able ...
0
votes
1answer
20 views

Limit file size for FFMPEG AV Stats

I'm doing this with ffmpeg... nohup ffplay -reorder_queue_size 0 -nostats -i /tmp/stl-app/stream.sdp -protocol_whitelist "file,http,https,tcp,tls,udp,rtp" -nodisp -af astats=metadata=1:reset=1,...
1
vote
1answer
155 views

Airflow log rotation

I am about to use logrotate for the first time, I went through man page and some web guides. I am trying to achieve rotation every week and deletion of the logs that are older than 7 days (I want to ...
1
vote
0answers
28 views

How to check for network issues? dmesg? and how to setup logging?

I'm pretty new to Linux but have worked with Windows servers and networks for 30 years so I understand the principles but am learning the 'Linux' way of doing things. I have setup a Centos 7.6 server ...
1
vote
1answer
1k views

Change timezone for logging

On a new server, I've changed timezone from UTC to my local timezone, Europe/London: sudo ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime That gives me the desired time when, for example, I ...
1
vote
4answers
499 views

How to keep an 'uptime record' log in Debian?

Currently, I have my server output my uptime to a HTML page using: TIME=$(uptime -p) echo ""${TIME}"!" >> /var/www/html/index.new Which generates an output of: up 1 day, 1 hour, 2 minutes! ...
16
votes
1answer
15k views

Listening for journalctl changes

Usually I use tail -f /var/log/messages to get updates if there are new lines. How to have the similar functionality for journalctl?
0
votes
4answers
3k views

How to extract log entries from the last hour?

I am looking for a one-liner command to extract log entries that have occurred within the last hour from a Postfix mail log file. Based on this question, I have attempted to manipulate the suggested ...
18
votes
1answer
16k views

Postfix mail logs keep showing “NIS domain not set”

I just set up a new email server using Postfix and Dovecot. I've been troubleshooting, and this line keeps appearing in my logs (specifically, mail.info and mail.log). What is a NIS domain, and how do ...
0
votes
1answer
31 views

Log files big size

I have log files for different services, those log files are taking up too much disk space, when I tried to truncate one of them with >run.log the file is truncated, but after some hours it got big ...
0
votes
0answers
13 views

Log connections of any process to a specific host:port

I would like to know which process connects from the local machine to remote host 1.2.3.4 in HTTP. To get this information about actual processes, the command is lsof -i@1.2.3.4:80 However, I ...
-2
votes
1answer
19 views

How can I tell why my logs stopped saving into var/log/messages?

I'm new with Linux. I've only been backing up logs for a few weeks. This week, I went into the messages and found that they'd stopped being saved last week, roughly since the last time they'd been ...
0
votes
1answer
60 views

Where does rasdaemon record its logs?

/var/log/syslog contains: Jul 31 13:45:01 ray-desktop CRON[5667]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jul 31 13:45:50 ray-desktop org.gnome.Shell.desktop[1689]:...
2
votes
1answer
1k views

Does journalctl give access to all logs?

In my university we studied about rsyslog, and how it stores logs and where it stores them (/var/log/), and how to configure it ... Now, I learned (by surfing on the internet) that a new way of ...
1
vote
1answer
1k views

ufw logs too much stuff, how can I disable that?

I happen to find out that syslog.1 takes 27 Gb and the logs in it have been inserted by the firewall ufw. How can I disable or reduce logging that much stuff into syslog by ufw?
2
votes
1answer
10 views

How to setup CUPS to keep a log of how many pages I printed?

I have a Debian computer setup with CUPS. I need to record how many pages I'm printing, for work. Is there a way to set up CUPS to store a log each time I print, with the quantity of pages printed?
1
vote
1answer
4k views

logrotate: error opening (No such file or directory)

I got an error message. This is sent to my mail box automatically. /etc/cron.daily/logrotate: error: error opening /var/log/apache2/access.log.1.gz: No such file or directory error: error opening /...
58
votes
3answers
35k views

Observe multiple log files in one output

Is there an easy way to do something like tail -f mylogfile but to have the changes of more than one file displayed (maybe with the file name added as prefix to each line)? Or maybe a GUI tool? I am ...
1
vote
2answers
1k views

Grep --line-buffered, can I search the same buffer with the results of the first grep?

I'm searching a log file in the following format <date> <connection from: ip> <new connection ID> <info> <date> <connection ID> <info> I'm using the ...
3
votes
2answers
3k views

How can I debug Nautilus crashes?

Is there a log file I can peruse, or settings somewhere that might give me a clue? I'm running GNOME nautilus 3.14.3 ("Files") in Ubuntu 16.04.
4
votes
1answer
2k views

Reloading systemd-journald config

Not sure why this is happening. I have a test service logging some arbitrary text to stdout every 10 seconds. Here is my service file /etc/systemd/system/samplego.service: [Unit] Description=Sample ...
0
votes
0answers
13 views

Why can't / doesn't U-boot log messages for us to view later

I have a problem whereby a remote BeagleBone device is taking hours to boot up. When it does, I don't see any problems in the kernel boot logs such as journalctl -b or journalctl -b -1 Without ...
0
votes
0answers
27 views

Apache2 ISPConfig - Fatal Error Unable to create lock file: Bad file descriptor (9)

I'm totally out of opinions. ISPConfig at Debian Our webserver works with no problem for a long time. We do not make any updates or upgrades. But today all websites got 500 error even ISPConfig ...
4
votes
2answers
1k views

Find IP owners from apache log file

I have the top 10 IPs making the most requests and the number of requests made from an Apache log file. I used this command to handle a request: cat access_log|cut -d' ' -f1|uniq -c|sort -r|head -n ...
0
votes
1answer
947 views

Logs of the command running in the remote machine using ssh

I am sshing into a remote machine and running a command there using sudo. I am using tt for TTY connection. I want to get the output (the console logs) of the command that I am running in my local ...
1
vote
2answers
39 views

rsyslog filter severity not working

I have following Rsyslog config to send logs to remote servers. Problem is its sending lots of INFO mesg to remote server and i don't want that noise. I am trying to configure filter so it send all ...
40
votes
8answers
64k views

How to find which process is regularly writing to disk?

How can I find which process is constantly writing to disk? I like my workstation to be close to silent and I just build a new system (P8B75-M + Core i5 3450s -- the 's' because it has a lower max ...
0
votes
1answer
75 views

`systemctl status atop` shows it has failed, but there is no error message

I installed atop, and then immediately upgraded from Fedora 29 to Fedora 30. Now atop failed to start during boot. But there is no error message. It only shows that atop exited with code 7. Why ...
3
votes
1answer
3k views

Why do some of my logs use Localhost and others Hostname - Different Servers

I am debugging something related to LDAP loggins, Ldap SSH Login not working - Same configs worked on 20+ other servers - Ubuntu and I noticed that in some servers, the logs use localhost and in ...
56
votes
3answers
47k views

grep inside less?

I'm currently sifting through a lot of unfamiliar logs looking for some issues. The first file I look at is Events.log, and I get at least three pages in less which appear to display the same event ...
1
vote
2answers
29 views

How to get rid of number suffix in rsyslog's own 'programname' ang 'syslogtag' property

I'm forwarding logs from local rsyslogs to central rsyslog and then to Elasticsearch. Everything works fine, but entries with severity error generated by rsyslog itself have property programname like ...
0
votes
0answers
17 views

is there a log/historic of all the file locks?

I recently had a server (Red Hat) that experienced a few minutes long slowness (involving mysql but anyway). After some investigations, I'm wondering if another background process (sa1 maybe?) could ...
0
votes
0answers
46 views

Apache log files rotation and webalizer

I have a default installation of Fedora 30 with httpd and webalizer. The webalizer is run in a cron job, but I have the problem that it seems that webalizer is not run regularly. Instead, there are ...
-1
votes
1answer
28 views

xdebug - remote log time is wrong

I noticed that the xdebug log time is always two hours too early. For example it says the log is created at 7:15 am even though it is 9:15 am. If I execute date in my terminal, then I get 9:15 am
39
votes
4answers
31k views

How can I write to dmesg from command line?

I'd like to write a statement to dmesg. [How] can I do this?
0
votes
0answers
35 views

Connecting the Wifi dongle is freezing the linux system?

I am a bit new to linux environment. My Linux System is freezing when I am connecting to wifi dongle. It works fine when I start the system without dongle, but the complete system hangs when I ...
0
votes
1answer
26 views

Logs for the last n minutes

I am looking for getting the logs for the last n minutes. I tried a few options but most of them didn't work if there are no logs specified for a particular timestamp. For example: The one worked ...
1
vote
1answer
1k views

How to log only iptables messages into my /var/log/iptables.log?

I want to log only iptables message into /var/log/iptables.log. Here is my way. sudo vim /etc/rsyslog.conf kern.* -/var/log/iptables.log sudo vim /etc/rsyslog.d/iptables.conf :msg, startswith, ...
1
vote
2answers
143 views

Get logs for last 30 minutes

I want to extract the logs between the current timestamp and 30 minutes before. I developed the below script but it's not working properly it shows only timestamp lines whereas I have to get ...
4
votes
3answers
389 views

How to extract only values greater than a threshold

I am new to bash scripting. Could someone help me with the following? I have a log file with output as shown below. I'm trying to grep for lines of an output with logDurationMillis>=950ms logAlias:...