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
0
votes
1answer
19 views

Can not log permission denied errors using auditctl [closed]

I try to create an auditctl rule for the following situation: There is a file created by root, owned by root, and with chmod 700. So no other user except root can read or write to it. When I then try ...
1
vote
2answers
86 views

How to grep the string right after given string

I have a log file myfile.log which is having below content Thu Jun 04 09:02:05 2020 Closing scheduler window Closing Resource Manager plan via scheduler window Clearing Resource Manager plan at ...
0
votes
0answers
13 views

curl print download progress in a log file suitable format?

If I do curl -o whatever.zip http://example.com/whatever.zip, curl will download to the filename, and display the download progress in the terminal. with -s I can turn that progress off. But I am ...
-1
votes
1answer
32 views

How to search in Ubuntu/Linux using two different date?

Please assist. I am trying to search few events in Ubuntu from auth.log and syslog in /var/log/ folder using two different date range, how can I do it? My Code is like below with only one date range ...
0
votes
1answer
35 views

Temporarily disable all kernel logging?

I know it's generally a bad idea to disable all kernel logging and in any other situation I would not be attempting to do this, but for my current applications having a period of time where the kernel ...
1
vote
1answer
28 views

When using kill -CONT, where will the process pick back up?

I'm planning on using to kill -SIGSTOP and kill -CONT to pause data collection over a given time frame. I'm wondering if when I invoke kill -CONT, will the data collection start from when I stopped ...
0
votes
0answers
10 views

Dell latitude restarts unexpectedly ubuntu 20

I'm having this issue of random restarts and I can not find the cause easily. The output of last reboot corresponding to the undesired reboot reboot system boot 5.4.0-33-generic Tue Jun 9 16:16 ...
1
vote
2answers
43 views

Grabbing chunks of log files that have multiple matching criteria, but the matching criteria is not on the same line

code: grep -rI --exclude=*_*.log -B20 -A1 "Status: Error" > /var/log/alertError.log Input log example: [06/07/20 20:38:53.911]:loopback ST: token-src-name() [06/07/20 20:38:...
1
vote
0answers
13 views

tmux logging for all windows and all panes

tldr;: I’m trying to figure out how to start logging in tmux and have it do it for every new window I create and for every pane within those windows. I just got into tmux and was looking for a way to ...
1
vote
1answer
11 views

Debian 10: Checking the Status of Services

I want to know if it is possible when checking the status of a service on the system with systemctl status application.service, see the full log lines, not only the first few log lines
0
votes
0answers
12 views

Debian syslog-ng TCP server and auth logs from CentOS

Update 1 Looks like rsyslog AND syslog-ng are running on the client. I kicked syslog-ng and configured rsyslog to send it's logs to the server via TCP and it works. So, looks ok with this solution --...
0
votes
1answer
18 views

How to list and put log's name to a file according to date

I have bunch of log files. And some of them are rotated. Say I want to put their name in a txt file. -rw-r----- 1 admin staff 5120126 Apr 20 14:29 access.log00071 -rw-r----- 1 admin ...
0
votes
1answer
13 views

Is there a tool like 'watch' that can view cyclical output given a repeat marker

This seems to come up a few times. I'll be trying to spot differences in logs with repeating cycles. For example: start 1 2 3 end start 1 2 4 3 end Rather than scrolling through pages of terminal ...
0
votes
0answers
16 views

Forward all Graylog logs to another Syslog collector

I am having a Graylog Syslog server v.3.3.0 which is collecting the logs of a couple of Linux machines. I want to forward all the captured syslogs to another syslog server. I was looking that in the ...
0
votes
1answer
37 views

Log from running script sometimes appears as if it is HTML

I have a script that starts either at 00:10 or on reboot, currently running on my NAS. To make sure it was doing what I wanted I have been logging the output. I've tried various methods of writing to ...
0
votes
1answer
16 views

searching logs for failures using grep with wordlist?

I am building a wordlist which will contain words like error,fail,kill,warn,out of,over,too.....etc. so that I can filter tons of logs for issues within seconds using grep. Especially, it's for ...
0
votes
0answers
18 views

How to determine which Linux job is hanging my machine at midnight

I have a job that is hanging my machine shortly after midnight (minutes). It doesn't happen every night, more like every 5-10 days. I have a few basic scripts that I have running, but none are set to ...
0
votes
1answer
13 views

How to make a logfile of the files being transferred to some other server

I have a scenario where I am receiving multiple files in a directory and I need to transfer those files received in 60 mins to some other server. So for that I use below command. { find -maxdepth 1 -...
0
votes
0answers
21 views

Why does journalctl for a service file running a shell script include more than is output to stdout?

In a unit-file for systemd (that is to say myservice.service file) I run a script that runs an infinite loop checking something on the system. It calls a function every 5 seconds or so and uses awk ...
0
votes
0answers
10 views

explanation of SAMBA 4 log level

in RHEL 7 having Samba-4.10 I am following https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html for understanding how to specify the log levels. It leaves a lot to be desired. I don't ...
0
votes
0answers
10 views

prevent sudo log_output from storing stdout

I am trying to log what users are doing wuth sudo. On the same time I do not want to record their passwords in normal situations. So using log_output seems like a good way and it basically does most ...
1
vote
1answer
21 views

How can I rotate old systemd journals to a different filesystem?

I want to limit the size of systemd journals (in /var/log/journal) by moving old journals to a different filesystem. I know of the setting SystemMaxUse in /etc/systemd/journald.conf which makes it ...
0
votes
0answers
26 views

Why is my Intel NUC dying when watching H265?

I've been using my BOXD34010WYKH1 Intel NUC for over 5 years now as my media center. It's been attached to my TV, running LibreElec (Kodi). I've watched many h264 1080p videos on it, streamed over the ...
9
votes
1answer
524 views

What is the difference between /proc/kmsg and /dev/kmsg?

I am learning about journald and rsyslog and while reading I saw that rsyslog reads from /dev/kmsg and that journald can read from both /dev/kmsg and /proc/ksmg. I know these are both kernel logs, ...
0
votes
1answer
37 views

Is UDP data lost when executing kill -HUP on rsyslog?

I am very new to rsyslog and I am going through the documentation as well as seeing examples of what other people have done with their configuration and a question came to mind when the topic of log ...
0
votes
1answer
39 views

Why am I still seeing old log files and not having new ones?

This is my setting logrotate /home/sy/logs/kitxit*/*/tend.log { daily rotate 10 dateext compress delaycompress copytruncate missingok ...
0
votes
0answers
29 views

How to diagnose crashing/freezing on Linux

I'm having issues with Zorin OS Ultimate where by the system will freeze/crash. I installed the OS last Friday 24th April and I have had four system crashes since. First one was when using Chrome, ...
0
votes
1answer
15 views

configuration of log file

For Solaris there is a file called /etc/default/su which tells where the sulog data is stored and the file name as well.. Like wise do we have any file on AIX, RHEL6 , RHEL 7 and HP-UX to identify in ...
-1
votes
1answer
22 views

bash won't exit on error if a program's output is redirected to log file

#!/bin/bash exec 200>/var/lock/scraper || exit 1 flock -n 200 || exit 1 cd /home/ubuntu/web_scraper /home/ubuntu/.nvm/versions/node/v13.12.0/bin/node mongo/scraper.js > logs/scraper.log ...
1
vote
1answer
35 views

have script triggered by udev that runs forever

I need to log output from /dev/ttyUSB0. This is how I start the start-log script on a connection pi@raspberrypi:/etc/udev/rules.d $ cat 50-text-log.rules ACTION=="add", SUBSYSTEM=="tty", ATTRS{...
0
votes
1answer
16 views

Save “unseen” output of command to file

I have a program that returns some content every time I run it. Some of that content may have already shown during the last run. foo bar baz and on next execution it might show two "old lines" and ...
3
votes
3answers
109 views

What is the command to copy, read and remove file in linux

I want to copy some files from root directory (/var/log/) to home directory(home/test/copyfromlogs/) and after that i want to remove those files from root directory. The files I want to copy are ...
2
votes
0answers
63 views

Rsyslog and Journald - Log processing in Linux

I do not really understand the forwarding from Journald to Rsyslog. Basically I understood it in the way that the 'pipeline' is built up as follows: Kernel logs through printk() → /proc/kmesg ← ...
0
votes
1answer
23 views

Any way to tell where log output is coming from?

On a unix system, I have a file in /logs which is being written to constantly by multiple sources. Is there a way, maybe with tail(?), to determine what processes are writing to this output?
0
votes
3answers
56 views

How can I use sed\awk to look for certain lines within a file, and then match all subsequent lines that match a different pattern?

I have found a similar topic but could not figure out how to implement it for my own use: grab multiple lines after a matching target line Here's the issue: I'm trying to implement it on a project ...
0
votes
1answer
19 views

Rsyslog not saving logs from another servers into custom directories

I am receving logs on UDP 514 from another server and i have configured rsyslog.conf to save the logs to another custom directory but i am unable to do so, i confirmed through tcpdump logs are getting ...
0
votes
0answers
12 views

Lines not being wrapped properly during shutdown

Whenver I shutdown my log lines don't appear to wrap properly, and there appear to be no new lines for the first few logs. I'm not sure where the shutdown log is saved. I've looked at journalctl -b -...
0
votes
1answer
32 views

what do I do if linux doesn't create the var / log / journal directory despite rebooting with systemctl?

I need help, the journal service was not configured correctly with systemctl restart systemd-journald.service, since I want to protect journal files with storage = persistent,but linux does not create ...
0
votes
0answers
4 views

Sync Logfiles Online in Real Time

Background: I have a smart home device (roborock) running linux. For some reason it triggers factory resets every odd weak, presumably during reboots. I need to find out why and how to prevent it. ...
0
votes
0answers
50 views

How to output only certain lines from a file having the line numbers in another file? [duplicate]

I have a file with desired line numbers: 4988 5008 5028 5050 5072 5094 5116 5138 5160 5182 5204 5224 . etc . These are line numbers indexes into a log file that I have: URL : https://dc4-...
-2
votes
1answer
46 views

tail -n 10 is truncating my entire file [duplicate]

I have these 2 scripts, one is writing to the file: #!/usr/bin/env bash while true; do sleep 1; echo "$(uuidgen)" >> /tmp/cprev.stdout.log done; the other is reading the last 10 lines ...
0
votes
0answers
24 views

Script to monitor log file for when something does not happen

I’m new to this scripting thing and need some insight on a script I need to write. The script needs to monitor a server’s auth.log file. Where I work, we have a setup we call a conveyor. We have ...
2
votes
1answer
43 views

How do I send output to both log file and console?

I used to put this on top of all my scripts, with regards to the output. The stopping and starting of the docker works as expected, and the log files contain what it should but the console does not ...
0
votes
0answers
94 views

Is there something that can be done about these WARN messages or should I not worry about them?

I was using zoom and these messages popped up on my laptop's /var/log/syslog. I am using Ubuntu 19.10 on a Lenovo Thinkpad X220i. My kernel version is: 5.3.0-42-generic Mar 16 14:45:07 a thermald[617]...
0
votes
1answer
85 views

How to redirect output to a log file from cron and prepend timestamp?

Most logs on my Mac have a time stamp before the output message like this: Nov 14 17:55:24 - SoftRAID Driver: SoftRAID driver loaded, version 5.8.1. I am running an executable in cron and instead of ...
0
votes
0answers
22 views

Centos 7 x64 Server Crash log

I have Centos7x64 server with directadmin installed, last night at around 12 my server crashed, I could not event restart the server with VNC and had to ask the support to restart it for me ... I am ...
0
votes
0answers
13 views

How to record terminal session's input and output including IPython and save log to text file [duplicate]

I want to record my work session that includes working in an IPython session. I've tried using script and then exit as other answers have suggested but this produces extremely jumbled up and unclear ...
0
votes
1answer
42 views

Bash command to count lines with matching substrings in two different positions

I'm trying to get some trivial statistics on some debug output. Each debug line is of the form(class name)(delimiter 1)(object ID)(delimiter 2)(method name)(delimiter 3)(log message) I want to get a ...
0
votes
0answers
70 views

I have “deleted” /var/log folder. What can I do to repare this mistake?

My / partition vas full, so I needed to make some free space... The quickest solution I've found was to "move" /var/log to another partition and make a symbolic link to it. In fact I did a cp of the ...
0
votes
0answers
24 views

How to debug Mate keyboard shortcuts?

I want to assign two keyboard shortcuts to "media next". An interesting idea I found was to create a custom shortcut that executes xdotool key XF86AudioNext, but that does absolutely nothing. I ...

1
2 3 4 5
32