Recording activity on the system (or of a particular program) for later reporting and analysis. Logins, logouts, web server page requests, etc might all be logged.
Questions tagged [logging]
2851 questions
42
votes
4 answers
In tail -f, how do I filter out stuff that has certain keywords?
I want to tail -f my logs. However, I want to filter out everything that has the words:
"ELB", "Pingdom", "Health"

Alex
- 8,471
- 26
- 75
- 99
41
votes
6 answers
Reduce SNMPd logging verbosity
SNMPd on my CentOS systems is sending log messages to syslog every time it receives a query from my monitoring tools. Is there a way to lower the verbosity of SNMPd? It adds a lot of clutter to the logs.
Sep 12 13:05:40 myhost snmpd[7073]: Received…

wjimenez5271
- 729
- 2
- 6
- 16
40
votes
10 answers
Delete all of /var/log?
Can I delete everything in /var/log? Or should I only delete files (recursively) in /var/log but leave folders?
Does anyone have a good rm command line? (My admin skills leave me nervous.)
Note: I am using Debian. I am not sure what version.
user274
38
votes
6 answers
How to enable MySQL logging?
I am running MySQL 5.0.45 on OS X 10.6.1 and I cannot get MySQL to log anything. I am debugging an application and need to see all queries and errors.
I added to the etc/my.cnf:
[mysqld]
bind-address = 127.0.0.1
log = /var/log/mysqld.log
log-error =…

ryonlife
- 491
- 1
- 4
- 8
38
votes
2 answers
Get notification from supervisord when a job exits
Is there any way supervisord can automatically restart a failed/exited/terminated job and send me a notification email with a dump of the last x lines of log file?

Sebastian Hoitz
- 3,169
- 3
- 24
- 19
37
votes
1 answer
Nginx log entries to multiple files
I'd like to log the same access.log entries to separate files, so when a request comes in it should populate a.log and b.log. Is there any way to do this with nginx?

Zoltan Zaikosz
- 473
- 1
- 4
- 4
34
votes
9 answers
Clearing/Deleting Docker Logs
On our docker implementation on GCE, we are running out of space on the root file system.
Since images themselves are stored on a separate 1TB volume, the images themselves shouldn't be the problem.
One candidate are the centralized logfiles that…

mgmonteleone
- 463
- 1
- 4
- 7
33
votes
3 answers
How to get php-fpm to log to stdout / stderr when running in a docker container
I have php-fpm in a docker container and in the Dockerfile I edit the fpm config file (/etc/php5/fpm/pool.d/www.conf) to set up access logs to go to /var/log/fpm-access.log and error logs to go to /var/log/fpm-php.www.log:
# Do some php-fpm config
#…

Tom
- 4,277
- 11
- 42
- 52
31
votes
2 answers
What is the SHA256 that comes on the sshd entry in auth.log?
When logging in via ssh, it can be seen the following on auth.log:
Dec 14 16:29:30 app sshd[22781]: Accepted publickey for dev from XXX.XXX.XX.XXX port XXXXX ssh2: RSA SHA256:pO8i...
I've been trying to figure out what is this SHA256 information,…

Márcio Jales
- 413
- 1
- 4
- 4
31
votes
1 answer
How can I let nginx log the used SSL/TLS protocol and ciphersuite?
My goal is to ensure proper security for clients connecting to my nginx. I'm following Mozilla's guide to configure TLS properly on my nginx installation, but I don't have an overview of the actual protocols/ciphersuites being used in practice.
What…

gertvdijk
- 3,504
- 4
- 30
- 46
31
votes
3 answers
Is it possible to get OpenSSH to log the public key that was used in authentication?
I have a production system where several different people are allowed to log in to a single account - the account is for the application and not for the person as we don't have personal accounts on production servers.
For auditing purposes I want to…

Guss
- 2,670
- 5
- 34
- 59
31
votes
2 answers
How do you disable SMB printing support?
I'm running CentOS on a storage server that has to do file sharing for with Windows machines. SMB version is smbd version 3.5.5-68.fc13
I'm getting a lot of error messages in /var/log/messages regarding failed attempts to connect to a CUPS server.…

evilpenguin
- 781
- 3
- 9
- 16
30
votes
4 answers
How to find error messages from Linux init.d/rc.d scripts?
In Linux, I've written some scripts to be executed during boot and played around with the various ways of installing them. For larger scripts I'll put in /etc/init.d and link the appropriate /etc/rc.d/rc?.d runlevels. For smaller scripts, I'll…

McKAMEY
- 635
- 1
- 6
- 14
29
votes
6 answers
Log MySQL login attempts
From time to time there are failed login attempts in our MySQL production server (MySQL dashboard alerts us). Is there a way to log every single success and failed login to the MySQL server without enabling general_log?
We think general_log is not…

CarlosH
- 423
- 2
- 5
- 10
29
votes
2 answers
Who restarted my Windows server?
Is it possible on Windows Server 2000/2003/2008 machines to see which user rebooted the server?
I have found the shutdown event in the System event log, but it does not show which user initiated the reboot.

joar
- 911
- 1
- 8
- 13