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
0answers
37 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, ...
1
vote
1answer
35 views

screen logging - How to ommit interactive shell control characters and prompt?

One of my first questions. Please comment if further explanation or information is required or if the question is not like it's supposed to be here I'm using screen to automatically start servers (...
1
vote
1answer
25 views

Writing logs for openvpn in Ubuntu18

I've installed openvpn on Ubuntu18, and it works. I'd like to have a log containing only the times when users connect and disconnect. Found a hint how to do it at [https://github.com/furlongm/openvpn-...
0
votes
1answer
12 views

SMB Not Able to Use Date Command Substitution

smbclient //10.10.101.29/it -W WORKGROUP -U user --password pass -c 'put ./file_$(date +%Y_%m_%d).file ./folder/file_$(date +%Y_%m_%d).file' The above does not work & gives me an error stating: ....
0
votes
0answers
20 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
1answer
38 views

Question about /var/log files

I'm looking at the files under /var/log on CentOS 7... And many of the files have dates included in their names (i.e. secure-20190512)... but the date in their names don't correspond to either the ...
0
votes
2answers
75 views

Exit status of last command using PROMPT_COMMAND

I want to save the exit status of the last ran command (in a file, in a variable, it doesn't really matter), but this must be done automatically in an interactive shell, manually running something ...
0
votes
0answers
26 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
1answer
135 views

Advantage of elasticsearch over grep when trying to search keyword in logs files [closed]

I know elasticsearch is good for full text search but when it comes to analyze logs, say nginx logs what is the advantage of using it over grep (with tail, awk, etc.) ? Quite of often I dig through ...
2
votes
2answers
51 views

Automatic rmmod / modprobe based on dmesg parsing

I am using a MacBooPro10,1 Debian stable (default install with rsyslogd) system for which the trackpad eventually fails (pointer stop working) from time to time as can be seen : $ dmesg [...] [...
0
votes
1answer
25 views

How to operate on a directory with different owner from a script?

Few days ago i have installed elasticsearch, For diagnosing some problems on my elasticsearch setup, i have checked the logs files located in /var/log/elasticsearch and tailed them but apparently the ...
0
votes
0answers
127 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 ...
3
votes
1answer
82 views

Logging Shell Activity

Is there a way to produce a custom activity log in my BASH shell? It would save, in each row, the last command, the time when it was run, and the working directory from which it was run. Note: It ...
0
votes
0answers
15 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 ...
1
vote
0answers
141 views

How to monitor system with `snort` and send emails about `alerts`

PROBLEM: I have been configuring snort on my systems and would like to get emails from the systems if there are any alerts. What I have tried is swatch but I can't find much documentation on it, can ...
0
votes
1answer
65 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 ...
0
votes
0answers
185 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 ...
1
vote
0answers
46 views

How to see laptop camera logs on Ubuntu

I would like to know if it is possible to discover when my laptop camera was used over the past 7 days. eg. Is there a log for that? I am running on a Ubuntu 18 machine.
0
votes
1answer
97 views

Have logwatch send reports only once a week

I would like to lessen the noise from logwatch reports sent to my email on three systems. Is it possible by to configure logwatch to send only some days in the week, or once a week? More relevant ...
1
vote
0answers
39 views

Docker Debian, getting some specific syslog in the docker container log

I have been installing SSH in the Debian Docker. Since I wanted to have some extra log, I also installed the Rsyslog as described in this question. Result was that some extra logs are created e.g. ...
1
vote
0answers
41 views

Debug log for WiFi processing

I am trying to integrate WPA2 into open network in AP side, and I managed through quite good so far, I am now able to encrypt and decrypt live traffic. However, stations are ignoring my messages, ...
3
votes
4answers
330 views

How to grep and cut numbers from a file and sum them

I have a log file. For every line with a specific number, I want to sum the last number of those lines. To grep and cut is no problem but I don't know how to sum the numbers. I tried some solutions ...
1
vote
2answers
61 views

Combining two outputs using AWK

I have a bash command (on macOS High Sierra) as: sudo cat /private/var/log/system.log*| awk 'BEGIN {print "\n"} {print "Month\tDay\tTime\t\tSystemMessage"} /SHUTDOWN_TIME/{print $1,$2,$3,$8}'|sort -...
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
1answer
45 views

Viewing the system.log.0.gz under /private/var/log in macOS

Am trying to view the contents of a system log -system.log.0 ,system.log.2 using macOS terminal .The logs are located under /private/var/log (macOS) I have tried zcat,gunzip etc.but with no fruitful ...
1
vote
2answers
125 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 ...
0
votes
0answers
62 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
83 views

PackageKit logs a message about “only_trusted:0”

I ran pkcon update force. I noticed PackageKit is logging about only_trusted:0. That is, an operation where the only_trusted option is disabled. Even though I did not pass --allow-untrusted to ...
0
votes
1answer
40 views

awk filtering one column log file

I'm trying to use the following command to extract a time period forthe current day date and grep for the specific message as you can see below: awk -v date="$(date +%Y%m%d')" '$1="date" && $...
0
votes
1answer
25 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
1answer
49 views

Log ethernet in lan [closed]

It is planned to install a clean ubuntu server 18.04 on a machine with two network cards. One card will receive internet from the provider. The second is the local network through which users will ...
2
votes
3answers
327 views

Use sed to replace IP address with hostname in log output

I am trying to replace an IP address in a dnsmasq logfile with its hostname. The logfile is being 'watched' with the command 'tail -f /var/log/dnsmasq.log' on the console and I want to pipe the output ...
1
vote
0answers
20 views

systemd looking for update-rc.d when I try to enable redis service in Ubuntu 14.04

I was trying to install redis from source in Ubuntu 14.04 and Ubuntu 16.04. I did followed everything exactly from this tutorial. Only difference was that my logfile path was /redis/logs/redis-server....
0
votes
1answer
43 views

My Kali upgrade fails - location of the log to find out the problem

Where is the log that tells me where the upgrade got to before it failed. My current info: No LSB modules are available. Distributor ID: Kali Description: Kali GNU/Linux Rolling Release: 2019....
0
votes
1answer
94 views

Logrotate is not compressing

I need to compress the files in var/log/remots/*/* with the following logrotate rule /var/log/remots/*/* { rotate 178 daily maxage 178 compress } located in /etc/logrotate.d/remots. ...
1
vote
0answers
31 views

journald flooded by kernel messages

My journald log was at some point filled up with kernel messages like this. Mar 12 05:03:53 workstation.mydomain kernel: FAT-fs (sdd1): FAT read failed (blocknr 1785) Each followed by a message ...
-2
votes
1answer
20 views

I enabled iptables logging from the command line. How do I undo this logging configuration?

I ran sudo iptables -A INPUT -p udp -j LOG --log-prefix "udp:" How do I make it stop?
0
votes
0answers
36 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 ...
1
vote
1answer
83 views

Can't find SSHD/systemd socket-activated logs

I'm trying to view the logs for my SSH server (CentOS 7) but cannot seem to find them. It's configured to use the systemd socket activation. I normally expect to find them with journalctl -b -u sshd....
1
vote
1answer
96 views

bash + write standard output and error to both logs

in my bash script I use the following approach in order to write every thing from standard output and standard error to log.txt export LOG=/tmp/installation/log.txt exec > $LOG 2>&1 so ...
1
vote
1answer
43 views

Can be the journal path on a filesystem other than /?

I would like to store the default journal directory /var/log/journal/ on a mounted device, but I am not sure if I can do it due to the fact that journal is an important service which may already run ...
0
votes
2answers
71 views

shell - extracting date & time from logs

I have web server log files that look like this: 2001:67c:1220:80c:d4:985a:df2c:d717 - - [22/Feb/2019:07:49:01 +0100] "GET / HTTP/1.1" 200 58266 "-" "curl/7.61.1" 2001:67c:1220:80c:d4:985a:df2c:d717 -...
0
votes
1answer
178 views

How to keep kern.log out of syslog

I'm working on Ubuntu 16.04.3 and I found that I could get the log of kernel from two places: /var/log/kern.log and /var/log/syslog. /var/log/syslog contains other logs but I could find /var/log/kern....
10
votes
2answers
956 views

Why does cron require MTA for logging?

Why does cron require MTA for logging? Is there any particular advantage to this? Why can't it create a log file like most other utilities?
2
votes
0answers
19 views

systemctl echos prints interference from other unit

I am working on a service which runs just fine. My poblem (or rather a mild annoyance) is that when I run systemctl status foo.service or journalctl -u foo.service I will occasionally see error ...
1
vote
1answer
196 views

Getting systemd service logs faster from my service

I'm having a systemd service defined as follows, that works fine: [Unit] Description=my service After=network.target [Service] User=myuser Group=mygroup WorkingDirectory=/home/myuser/myapp ...
0
votes
1answer
127 views

how to use logger to write info to log

I want to use the logger command in order to write logs to /var/log/server.log NOTE: These examples use the FreeBSD version of logger. Your system may have different options, so read your local ...
1
vote
0answers
50 views

why messages logs are zero

we have linux machine: more /etc/redhat-release Red Hat Enterprise Linux Server release 7.2 (Maipo) all message files under /var/log are ZERO how it could be ? what is wrong here ? -rw-------. 1 ...
0
votes
1answer
34 views

logger + how to change the logger title instead user root

I want to use the log - /var/log/message for my logs my application name is - whatsapp_man for example I send the following warning to the log [root@worker01 ~]# logger "please noitce you are before ...
0
votes
1answer
90 views

Why is there Russian traffic in my web server's log files?

My family's business runs a website with GoDaddy for promotional purposes. I checked the logs the other day and found some really strange traffic that I don't exactly understand: 188.234.248.201 - - [...