Questions tagged [logging]

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.

2851 questions
9
votes
2 answers

Tomcat 9 - catalina.out log file missing and console printouts are not shown anywhere

Tomcat9 deployed on Ubuntu 18.04. This issue ONLY applies to Tomcat version 9. There is a catalina.date.log file present in the logs folder but it does NOT show any console printouts from our web applications. I've set the ConsoleHandler level to…
Lucian
  • 93
  • 1
  • 1
  • 4
9
votes
3 answers

Why are journald logfiles so huge?

When I do a journalctl --disk-usage it says something about 300MB size of the journal files but when I look at the actual text with journalctl | wc -c it's something about 28MB. Well, journald has compression and even considering the metadata like…
Smith_33
  • 93
  • 1
  • 4
9
votes
1 answer

How to disable logging for a particular systemd unit

I have a systemd unit, which creates a lot of useless log (around 1GB per day), so I want to disable logging for this unit. How can I manage to do this? Thanks
dynos01
  • 129
  • 1
  • 1
  • 4
9
votes
4 answers

Is it safe to remove the BIN files that are generated by MySQL?

They are taking up too much space: /var/lib/mysql/jiaoyou-slow.log: 53M /var/lib/mysql/mysql-bin.000005: 68M /var/lib/mysql/mysql-bin.000003: 1.1G /var/lib/mysql/mysql-bin.000007: 34M /var/lib/mysql/mysql-bin.000004: 225M
Mask
9
votes
1 answer

How can I get sshd to tell me why it's failing public key authentications?

I'm using OpenSSH 6.9p1 (on Lubuntu) as my SSH server. When trying to connect to it (using an SSH client in Cygwin), I keep being reverted to password authentication, despite having properly generated my keys, put them in the authorized key file on…
einpoklum
  • 1,652
  • 3
  • 21
  • 31
9
votes
2 answers

What should be the right logs permissions for NGINX on CentOS?

on /var/log/nginx/ I have access and error logs. Some are .log errors and others have .gz I think I messed up with the permissions. Some files are created by root/root, other files are created using the user configured in nginx.conf, etc. What…
Pikk
  • 339
  • 1
  • 6
  • 19
9
votes
1 answer

Show real server name in nginx logs and params passed to fastcgi?

I have configured my nginx vhosts with a regex in server_name. nginx shows the raw regex in logs and in params passed to php-fpm (I know there's $_SERVER['HTTP_HOST'] with a real value, that's not an issue). My question is how can I get nginx to put…
Aurielle
  • 91
  • 1
  • 1
  • 2
9
votes
1 answer

Why do Apache access logs sometimes have two host ip addresses?

I have been trying to parse apache access logs but for some reason there are two host ip addresses separated by a comma and a space. I am thinking of just removing the second ip address, does it mean anything? I would hate to remove something that…
cam
  • 91
  • 1
  • 3
9
votes
3 answers

script not found or unable to stat: /usr/lib/cgi-bin/php-cgi

I have just seen a new series of error in the /var/log/apache2/error.log [Thu Oct 31 06:59:04 2013] [error] [client 203.197.197.18] script not found or unable to stat: /usr/lib/cgi-bin/php [Thu Oct 31 06:59:08 2013] [error] [client…
John
  • 887
  • 4
  • 15
  • 25
9
votes
7 answers

Nginx not logging PHP errors

When accessing some PHP scripts on my website, I'm getting the dreaded 500 error message. I'd like to know what's wrong to fix it, but Nginx isn't logging any PHP errors in the log file I have specified. This is my server block: server { listen…
James Linton
  • 377
  • 2
  • 5
  • 7
9
votes
4 answers

Free-space driven log rotation on linux?

Someone just asked me 'how long should we keep logs for our application', and my answer was 'until the disk is full' as there's no reason to throw them away other than running out of space. However, standard logrotate wants us to specify a specific…
kdt
  • 1,400
  • 3
  • 22
  • 34
9
votes
1 answer

When does IIS log a request?

This sounds silly, but when do they log requests? I have a web application, and about 500 HTTP proxies that will load up that application. But problem is sometimes (and this morning a lot), the proxy (using php sockets) believes it connected and the…
Jeremy Boyd
  • 606
  • 1
  • 10
  • 17
9
votes
2 answers

Logging hurts MySQL performance - but, why?

I'm quite surprised that I can't see an answer to this anywhere on the site already, nor in the MySQL documentation (section 5.2 seems to have logging otherwise well covered!) If I enable binlogs, I see a small performance hit (subjectively), which…
James Green
  • 895
  • 1
  • 9
  • 23
9
votes
2 answers

Have Apache log requests when they come in, rather than when they finish

I'm trying to diagnose a bizarre server crashing issue (Server responds to pings, but won't accept SSH connections until reboot. 0% CPU) where rebooting the server gets everything back to normal. I'd like to have my Apache access logs (or some other…
Ben Dilts
  • 265
  • 4
  • 10
9
votes
4 answers

Specifying a log name for screen output without relying on .screenrc

In a Bash script, I use "screen -L" to log executed commands in color. For example: screen -L tree Then we read the logfile with less -R. When this script is executed, other screens are potentially running so we don't know which screenlog.*…
Philippe Blayo
  • 281
  • 1
  • 2
  • 10