The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [logs]

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

344 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
2k views

disk or partition log history

Is there any way to find the disk status log or disk free space history. How can I show the disk status of my partition table? Scenario is I have to provide the status of the disk status which is ...
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 ...
1
vote
4answers
519 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! ...
0
votes
1answer
25 views

How to copy log of backup activity?

I'm very new to shell scripting and to Linux, and I need help with an assignment. The task is to write a shell script to help user backup their folder/files. But this task also needs us to show what ...
0
votes
1answer
27 views

Tomcat Access Log understanding like Logs like failed Access or attemps logs from User

I installed Apache Tomcat on my Ubuntu server. The next step is, I want to interpret the access logs. However I didn't really understand the logs. Like POST / GETS, what do they mean? I really want to ...
0
votes
0answers
25 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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
15 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 ...
0
votes
1answer
25 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,...
0
votes
0answers
15 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
44 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 ...
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
57 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 ...
0
votes
0answers
40 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
27 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 ...
0
votes
0answers
12 views

How to setup Simple Event Correlator (SEC) to analyse a multi-line input as a single entry

I have this rule that feeds the result of an external program back to SEC every 5 minutes, but the output is multi-line. My current SEC rules handle each line of the output separately, and I need ...
0
votes
1answer
65 views

Split large log file based on date criteria, while logging facility is running

the log file is /var/log/dovecot.info, >4GB, with date format: 2019-07-01 01:07:40 My objective is: have the /var/log/dovecot.info which starts with 2019-01-01 00:00:00 and contains up to now log ...
0
votes
1answer
79 views

How to detect and examine recent changes in a text file?

How to get last changes in text file on Linux? Example: text1 text2 text3 and then a programme adds another line to the text file: demo1 If the last change was the addition of demo1, print in ...
0
votes
0answers
92 views

Strange wpa_supplicant logs about SIOCSIWAP and SIOCSIWENCODEEXT

I am interested in strange log entries and I would like to understand their nature. Why there are ioctl errors when using the r8188eu driver? Can I resolve these errors? Logs Jul 09 02:34:00 tower ...
0
votes
0answers
7 views

Window minimizing when ROS checking log directory for disk usage

I would like to have a window maximized 24/7 but it is minimizing every time when the ROS log directory is checked for disk usage. Getting message Checking log directory for disk usage. This may ...
0
votes
0answers
13 views

send log to another servers simultaneously

I wanna send my application logs to other servers in other zones simultaneously that when I tail on all server's log file see the same log. Which technique suggest?
0
votes
0answers
29 views

Redirect output of a long running process to a new log file each day

We have a long running process1 whose output is captured into a log file based on when the process is started: export LOG_FILE=${LOGS_DIR}/$LOGNAME/${LOGNAME}-`date +%Y%m%d-%H%M%S`.txt ... ${...
0
votes
0answers
42 views

Comparing Timestamps

My users sometimes get alerts with a timestamp, (from another system, via email) but no hostname. I want to give them a function that can compare timestamps in my system that's designed like this: /...
0
votes
0answers
36 views

run script continuously and check for error

I have written below script and it reads the file and when ever there is any 400* or 500* word it will give me error message, and now I want to add two more functionality to my script. I added the ...
0
votes
0answers
31 views

Can I redirect logs from journald inside container to docker logs?

I have a container using systemd inside it. The command into the container is /usr/sbin/init. This is a requirement so I cannot change that. I also have a custom service running inside that container ...
0
votes
0answers
121 views

USB disconnect and new USB device using xhci_hcd

/var/log/messages kernel: usb 3-7.3:USB disconnect, device number 69 kernel: usb 3-7.3:new low-speed USB device number 70 using xhci_hcd kernel: usb 3-7.3:new USB device found, idVendor=0461, ...
0
votes
0answers
21 views

/var/log/warn and messages get written full with io/hpmud/musb.c 997: invalid bulk out endpoint [SLES11]

A couple of month ago I installed a HP LaserJet P3015 and some days ago even tho the printer worked it flooded my /var/log/warn and /var/log/messages files with the same message over and over again ...
0
votes
0answers
28 views

Is there a tool that feeds journalctl log updates to the program of your choice?

I have a log processing tool that takes lines in stdin and does some sort of processing that I need. Currently my application does log rotation so that it archives log file according to certain ...
0
votes
0answers
239 views

Monitor SSH attempts in Windows Subsystem Linux

I am trying to look at failed SSH attempts, which I could do on a regular ubuntu machine by looking at /var/log/auth.log. I've taken a look at Debian - auth.log missing from /var/log and the WSL has ...
0
votes
0answers
16 views

What does journal hostname field refer to?

I have a question about hostname field that journalctl displays. From journalctl documentation I know that _hostname= is displaying the name of the originating host. So in that case this log: march ...
0
votes
0answers
300 views

How do I forward particular logs under a directory using rsyslog?

Trying to froward following logs from /home/ddlog/ms/logs/execution_logs/_abc-xyz-ms_* to VMware vRealize Log Insight using rsyslog. For some reason that does not seem to be working. I have tried ...
0
votes
0answers
23 views

Monitor Apache Selectively

I am working to parse apache logs in Common Format in realtime so that I monitor them while I work. "tail -F /var/log/apache2/access.log" works but provides more than I need. "awk '{print $1 " " $2 " "...
0
votes
0answers
70 views

Fedora server reboot

I'm having an issue on a fedora server running on my laptop. I would like to get to the root of why Fedora decides to reboot automatically after a certain error: Apr 10 06:14:33 Leviathan.mendelev....
0
votes
1answer
27 views

A log of when the machine and/or monitor was turned on?

Does GNU/Linux keep a log of when the machine and/or monitor was turned on? I wish to limit my screen time by telling the machine to automatically hibernate 90 minutes after the last startup or awake....
0
votes
0answers
37 views

how to update the log message about failure of service

I configured the service - calc_mem.service as the following Restart=on-failure RestartSec=5 StartLimitInterval=400 StartLimitBurst=3 the configuration above should do the following the service ...
0
votes
0answers
100 views

How do I save the putty screen with python?

i write sth on putty screen with python. But i can not save this screen. i have opened putty (logging >> log file name). Then i start the python. after python finnish. then i can open this putty ...
0
votes
0answers
31 views

Reusing the last N lines in terminal

I'm writing a Bash script that makes a series of build commands visiting each of subdirectories. It mainly prints the logs from the build command, but it occasionally prints logs by itself, like what ...
0
votes
0answers
162 views

Logging Chrooted Users SFTP Activity

So I'm having the issue where I can't seem to log users SFTP activity. I can see when a new session was created by a specific user, but can't see where they've been or what they may have dropped ...
0
votes
0answers
33 views

Packet capture with iptables/rsyslogd?

The usual way I know of capturing packets is with iptables/NFLOG/nflog-group and ulogd with libpcap.so built in. It's a simple matter to enable packet capture in the ulogd.conf file and all rules that ...
0
votes
0answers
14 views

How to use the 2nd monitor to only show textmode vt1 with critical log info?

I have one graphics card with 2 OUTPUT ports: VGA and HDMI and 2 led monitors. On the 1st monitor, the HDMI one, I use the graphical environment (Unity/KDE/Gnome etc). Using NVidiaSettings, I can ...
0
votes
0answers
39 views

xscreensaver - how to log successful logins

I would like to log successful login attempts from screensaver. Running xscreensaver with xscreensaver -verbose -log ... does give me something usable: input finished. pam_conversation (...) ==&...
0
votes
0answers
25 views

Command to append new logs content, generated in a directory to the end of a file

I've got an IDS which creates log files inside a directory. These logs all start the same ie, IDS_log_XXXXX. I have a perl script setup which would email me when these logs would contain certain ...
0
votes
1answer
68 views

Script “7 days log tar and then remove the 7 days logs and exclude the tar file after next 7 days”

I am trying to create a script such that it could tar.gz all the previous log of per 7 days log and exclude the tar file in next run. Is the script ok or should I have to make a change find /home/...
0
votes
1answer
74 views

How to writes the log on the screen during shutdown and startup (after grub)

As we know, when we startup the system (after grub) and when we shutdown the system, many logs will be printed on screen. I know that the kernel would write some logs of the kernel. But how about the ...
0
votes
0answers
26 views

Get output of server crash from server re-spawning script

I currently have Homebridge set up on my raspberry pi. When the pi boots, it starts a script which attempts to keep homebridge alive. I originally took the script from this answer which walks you ...
0
votes
0answers
230 views

Why does fail2ban not trigger my custom filter?

fail2ban-regex verified that my filter matches Jan 14 07:39:41 myhost01 sshd[26433]: Connection closed by authenticating user root 127.0.0.1 port 56216 [preauth] 68 times inside auth.log, but fail2ban-...
0
votes
0answers
25 views

`screen` not creating log file when run inside tmux/byobu?

When we use screen command with -L option, it creates log files of the session with names like screelog.0, screenlog.1 and so on. These log files are created inside the directory in which the screen ...
0
votes
0answers
97 views

rsyslog: send logs to different file by filtering syslogs

I have a CentOS based rsyslog server which have the below settings, where it's getting all the remote NATing events from multiple hosts. $template TmplcpFW, "/var/log/%HOSTNAME%.log" if ($hostname == ...
0
votes
0answers
50 views

change maillog default path in rsyslog

I am using redhat linux and the default location of my postfix is /var/log/maillog . I am trying to change maillog location to /app/log/maillog. I have tried to update rsyslog.conf mail.* ...
0
votes
0answers
65 views

User entries not deleting in lastlog file in Solaris

I am deleting a user in Solaris 10 and 11.  If I delete a user using the command userdel -r test1 and then check my lastlog file /export/home/ch185140/lastlog, I get output like this: 1 tj100201 ...