Questions tagged [logs]

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

341 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
3answers
393 views

Linux system time temporally jumps

I saw a strange system time changing behavior in some (hardware) servers: in /var/logs/syslog, the date time preceding each log message sometimes change to a random one and gets back to normal in the ...
5
votes
2answers
354 views

linux mint hangs - how to find a reason?

My Linux Mint system (17 Cinnamon, lenovo g565) hangs up frequently during work (say, 2-4 times a day). It usually looks like a white or black screen (or off if the lid was closed). CPU seems to be a ...
4
votes
0answers
174 views

Notification when someone is accessing my Samba/CIFS share

Is there any way I can get notification (preferably Gnome notification) when someone (privileged) is accessing my Samba/CIFS share? If there is no such a tool, I need to implement one. It's important ...
4
votes
0answers
1k views

Limit Openldap Transaction Log Disk Usage

Openldap (specifically version 2.4) stores transaction history in log files by default in the ldap data directory (so /var/lib/ldap/log.###########). Currently these log files take up a lot of space, ...
3
votes
1answer
663 views

iptables: LOG is not a valid target

I'm learning to configure firewall rules using iptables. For some reason, iptables does not recognize LOG as a valid target: ○ sudo iptables -A INPUT -p icmp -j LOG iptables: No chain/target/match by ...
3
votes
0answers
260 views

sda:sda1 keeps showing up in dmesg

dmesg logs is 'filled with' the following : [613051.997981] sdf: sdf1 [613052.068773] sdf: sdf1 [613352.060804] sdc: sdc1 [613653.176468] sdc: sdc1 This just continues on and on about every 300 ...
3
votes
0answers
399 views

Where is ssh dynamic tunnel traffic log?

If a client established a ssh dynamic tunnel to a Ubuntu server, is there a log file on the server that records all the detailed traffics (client’s browser, etc.) on that tunnel? If there is, where is ...
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.
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}" ] ...
3
votes
1answer
1k views

systemd, rsyslogd - where are the logs?

I got a Fedora 23 Server edition installation which I have done pretty much nothing with admin-wise besides setting up ssh, fail2ban, samba, and users. The other day I was completely locked out of my ...
3
votes
0answers
2k views

How to capture tail -f output from remote host indefinitely

I am trying to monitor a remote, embedded host that is writing output to a file: /var/log/myapp.log This host may lose power for hours. The app may be killed and restarted. On my local machine, I ...
3
votes
1answer
74 views

How do I process new additions to logs

I know that I can use a few tools like tail and less to view the newest additions to a growing log file. What I want to do, though, is run some sort of script at regular intervals (like cron) on the ...
3
votes
0answers
2k views

How can I monitor the interactions of an application with dbus?

I have a set of applications, I want to montior any and all interactions of the applications with dbus. The things I've played with don't seem to have a way of focusing on just one application. ...
3
votes
0answers
703 views

Logstash: Handshake failed i/o timeout

I have a problem between logstash-forward and logstash, i have installed correctly the SSL certificate but i have this error: Failed to tls handshake with 111.111.111.111 read tcp 111.111.111.111:...
3
votes
0answers
1k views

Should I use separate log files or log everything to the journal?

On my personal server I currently have multiple services (web server, mail server, etc) and some of them have their own log files while others log everything to stdout and that gets picked up by the ...
3
votes
0answers
501 views

Is there way to print the entered password in PAM?

We are using CentOS 6.5. We have a perl script for our automation testing. One of the script login to the user as non-root user and test "su -" command. This test case passes most of the times but ...
3
votes
0answers
54 views

Log if no network

I have a router with OpenWRT. I noticed that sometimes (during night time) I have no internet connection. How can I log when this happens?
3
votes
0answers
402 views

Use dedicated per-user log file for cron and?

On Ubuntu 12.04 how can I configure cron to log to a particular file when it runs jobs as a particular user? I am interested in redirecting both the messages that go into auth.log and those going into ...
2
votes
0answers
58 views

Why doesn't “systemctl status” show anything (“journal has been rotated”), while journalctl shows entries dating back to March?

There are two failed systemd units: ~: systemctl --failed UNIT LOAD ACTIVE SUB DESCRIPTION ● shadow.service loaded failed ...
2
votes
0answers
24 views

Removed debug.log, and it is not generating again

Using RHEL 7.2, due to larger file size I've removed debug.log (from /var/log/debug.log). And after that debug.log file is not generating automatically. I've checked "messages" log it's working fine.
2
votes
0answers
25 views

extract last 5 mins of information from the log file

system date format: Thu Jun 13 12:55:18 EDT 2019 My log format: 193.118.26.141 - - [01/May/2019:00:08:49 -0400] "GET / HTTP/1.1" 200 27 can someone please help me, how to get last 5 minutes of ...
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 ...
2
votes
1answer
70 views

Why are my visits logged under differing IPs?

I have seven websites hosted with the same provider, all part of the same hosting plan. Yesterday I visited all my sites one after another and looked at the Apache access logs. At that time, several ...
2
votes
0answers
2k views

Print only timestamp and message in journalctl

I'm trying to get the last few lines from journalctl so I can feed them into my conky. However journalctl by default provides too much crap that wastes space: With journalctl -u PROCESS -n 5 --no-...
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 ...
2
votes
1answer
180 views

Where are pptp logs in openSUSE 42.2?

I trying to set up pptp vpn connection in openSUSE Leap 42.2, but I got an error VPN connection failed.. I can't see nothing in dmesg and I have no /var/log/messages file I've installed rsyslog but ...
2
votes
1answer
30 views

Systemd logs only 3 lines of errors

I have an error when running command assert.js:81 throw new assert.AssertionError({ ^ AssertionError: APP_API env var not set at Object.<anonymous> (/opt/offero-html-server/src/routes/...
2
votes
0answers
417 views

Client FTP log to include commands sent from session via KSH script

I'm trying to get my ftp log to include the commands I'm pushing in as well as the output it receives as the session proceeds. I have the following so far: /bin/echo '***** START OF FTP PROCESS *****'...
2
votes
0answers
451 views

Linux mint 18.1 does not boot. Shows error log always ending with end trace

After this login prompt: It should go to the user login menu, but instead it shows this log: Always ending with an end trace line.
2
votes
0answers
720 views

Where LSI MegaRAID log files stored on Linux

I'm trying to figure out where all the logs are stored for a LSI MegaRAID controller on a Linux system. I know how to query, dump, and clear the logs using storcli. However, even if the logs are ...
2
votes
0answers
626 views

dhclient logs flooded with useless information

I am using dhclient on Debian (isc-dhcp-client, isc-dhcp-common). The logs that dhclient is logging are flooded with copyright information and other useless stuff ("please consult README", "please ...
2
votes
0answers
744 views

Find out what's causing random restarts if /var/log/syslog is empty

I'm dealing with a server that randomly reboots every once in a while. Checked the power and nothing is wrong there. However the syslog is alway completely empty when it comes to the reboots, see the ...
2
votes
0answers
56 views

Difference between “install” and “installed” in dpkg.log

Some recently installed packages appear like so: [date] [time] install [package name] [date] [time] installed [package name] but some packages (e.g. man-db which I haven't manually installed) appear ...
2
votes
0answers
124 views

Paging with follow less +F and colorize with awk

I would like to paginate a file with follow, i.e. $less +F and also colorize the output on the screen. I want to use less because I can leave the follow mode, browse the file and then re-enter the ...
2
votes
1answer
862 views

Apache Log file - Referer URL that doesn't exist

After recently having my shared-host linux server hacked (~25 WordPress installs, malicious code spidered throughout), I've started looking through my access log files to see where my traffic is ...
2
votes
0answers
121 views

Program/script to limit cronjob output

Short version: Is there an off-the-shelf program to avoid being pinged repeatedly be frequent cron jobs in periods when they fail? I have a custom implementation but it seems like something someone ...
2
votes
1answer
258 views

linux unbuffered compression options

I'm working on a embedded system and due to persistent memory restrictions, I need to compress a log file "on the fly". My objective is to have a one liner inside a script, which would look like this:...
2
votes
0answers
6k views

logrotate works when run manually, doesn't when run with cron

This is on Ubuntu Server 14.04, but I think it's applicable to all OSes. I'm running logrotate as a cron job, cron settings are the defaults (logrotate exists in /etc/cron.daily). I'm running a ...
2
votes
0answers
109 views

Detect which program is blocked by firewall

The linux firewall can show a lot of information in the LOG target, for example via --log-uid. How can the executable doing the network call be logged, too? I did not find anything in the FAQ, the ...
2
votes
0answers
55 views

How to keep a log about when screen has been locked/unlocked

I would like to keep track of the times when I locked/unlocked my computer. I'm running RHEL 6.6 with gnome 2. But maybe there is 'general' solution? Are there any commands, files or something which ...
2
votes
0answers
97 views

How to determine what event is disabling Sticky Keys?

I have an ongoing problem with Kubuntu 14.10, when using the computer I find that Sticky Keys is suddenly disabled. I reenable the feature, but in after some time (measured as three minutes to days) ...
2
votes
0answers
273 views

Is it possible to query messages that were sent with notify-send?

I want to query the messages that were already sent with notify-send in the running session from within a script. Is that possible?
2
votes
0answers
1k views

Logrotate archive old log files which has date extention

Everyday a log file is created in my directory. But with time, there tend to be a lot of log files. I want to keep the latest 4 log files in .log format, and compress the rest and copy the compressed ...
2
votes
0answers
65 views

Why when I press bloc num, my linux writes on disk?

When I enable or disable the Bloc Num, my Archlinux writes something on disk. I can't understand what it saves, probably it's logging, but I can't find nothing in logs. And also, why should it log ...
2
votes
1answer
733 views

Which log files do I look at to debug copy/paste and Klipper?

Short Version What log files do I look at to monitor copy/paste actions? And what logs do I look at to monitor all Klipper actions? Long Version After using my desktop for a while (could be a few ...
2
votes
1answer
478 views

To be SOX compliant I need to keep years worth logs

My company is going through an audit and I have taking over the role of Linux systems administrator unofficially. I see our current logging system has it to were we basically keep a months worth of ...
2
votes
0answers
519 views

CentOS invalid system activity files

CentOS 6.5 server has a cron job that converts system activity files to system activity reports once per day. Periodically, sometimes as a one-off, sometimes every day for a week or more, the cron job ...
2
votes
0answers
908 views

disable Xserver logging

Is there a way to disable Xserver logging entirely? My Xserver is set up fine, everything is working, I don't need to troubleshoot it and the logfile is absolutely useless for me. The logfiles are ...
2
votes
1answer
63 views

Send cron mails to root bundled every hour

Sometimes when there's a problem on my server, I get hundreds of emails in my root account which are caused by cron. I want to be notified about those problems but isn't there a way to bundle those ...
2
votes
1answer
29 views

How to execute a script at the start and end of every application?

I am trying to log the applications that a user opens/closes. Is there a way to execute a script (Java,Python,etc) everytime an application (like firefox) is opened and closed?