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
20
votes
1 answer

How to limit nginx access log file size and compress?

I'm hoping to get some direction on how to set up truncating and gzip'ing on my domains' access logs. I notice that the core nginx access logs get split and compressed by default, yet my individual access logs continue to grow. Is this something…
Draculater
  • 313
  • 2
  • 3
  • 9
19
votes
4 answers

nginx / php-fpm error logging

I'm trying to figure out where the PHP errors are going in my setup. I'm running nginx as the reverse proxy to PHP-FPM, but I'm not seeing the various E_NOTICE or E_WARNING messages my app is producing. The only reason I know they're happening is…
Jeremy Wilson
  • 311
  • 1
  • 3
  • 12
19
votes
4 answers

Nginx 400 errors due to random encoded string starting with "\x" from random IP addresses

I assume these are some sort of bots, but would like to know what are they trying to do to my server. The logs in questions are below and the IP address has been changed from the original. 12.34.56.78 - - [18/Oct/2012:16:48:20 +0100]…
adnans
  • 293
  • 1
  • 2
  • 5
19
votes
1 answer

Apache: Configure "LogLevel debug" for certain modules only?

I want to debug some authentication & authorization issues on my webserver, particularly with mod_authnz_ldap and other mod_auth* modules. So I set LogLevel debug in the Apache configuration, either globally or for a single VirtualHost. This…
Stefan Lasiewski
  • 23,667
  • 41
  • 132
  • 186
19
votes
4 answers

Which program defaults uses syslog local[0-7] facilities?

As well as the common system facilities (mail, news, daemon, cron, etc), syslog provides a series of "local" facilities, numbers 0 to 7: LOCAL0, LOCAL1, ..., LOCAL7. Which ones are program defaults for common applications? I'm looking to find out…
Jonathan Clarke
  • 1,667
  • 2
  • 11
  • 25
18
votes
4 answers

How to view mariadb log?

I am using new relic to monitor the performance of my server. Recently I noticed a very strange problem where for every 3 hours, the server will be down for 1 minute. And in the new relic report, during the server down time, there were sudden spike…
dev-jim
  • 313
  • 1
  • 2
  • 8
18
votes
4 answers

Haproxy not logging requests?

So, I configured Haproxy so the logging would go through rsyslog and, for now, be all dumped in one file. It's definetly logging, as I get those "starting" messages on startup, but no HTTP requests logging at all. What is wrong with my…
Silver Quettier
  • 513
  • 2
  • 6
  • 14
18
votes
4 answers

HAProxy logging to syslog

I installed HAProxy 1.5 via apt-get on ubuntu 14.04 via ppa:vbernat/haproxy-1.5 as per this Debian repository selection tool. The problem is it logging to /var/log/syslog instead of /var/log/haproxy.log The setup is basically the…
Petah
  • 650
  • 2
  • 13
  • 24
18
votes
3 answers

How do you set a DATE variable to use in a log for crontab output?

I was playing aroudn with some variations of date like DATE = $(date) but that didnt work either crontab -e CRONLOG=/tmp/log/crontab.log DATEVAR=`date +20\%y\%m\%d_\%H\%M\%S` * * * * * echo $DATEVAR >> /tmp/log/crontab.log */2 * * * * echo…
qodeninja
  • 2,753
  • 10
  • 32
  • 33
18
votes
12 answers

How to watch logs in real time via Terminal?

This is a basic question - in the movie "The Social Network" there are several scenes when the young Facebook staff is watching the PHP/Apache server logs on in their TERMINAL in real time. I'm familiar with how to do this in a RUBY/RoR environment…
Jamison
  • 289
  • 1
  • 2
  • 4
18
votes
11 answers

Any freeware IIS log analyzer?

It would be nice to use ASP.NET, but PHP is ok too, and should be hosted in IIS6. EDIT: the logs are from our intranet site.
alexandrul
  • 1,435
  • 2
  • 19
  • 25
17
votes
5 answers

Need a technique to coerce sysadmins to log the reason for accessing a prod server

My company requires that any time a user logs into a production server the reason that person logged in and the changes the user intends to make must be logged. My team wants to do this, but its easy to forget. I'd like to help them remember. I…
user253833
17
votes
4 answers

Apache CustomLog to log full URL

I'd like to add a CustomLog directive to my apache configuration to log the full URL requested (or at least the host portion of the URL). I have several domains being handled by the same instance of apache, and would like to be able to distinguish…
jrdioko
  • 567
  • 5
  • 9
  • 18
17
votes
5 answers

How to see activity logs on a Linux PC?

I want to find out everything possible about how the PC was used in the past few days. Like who logged in, for how long was the PC was locked and any other information about user activity that is logged on the PC. I know that last command can be…
Rohit Banga
  • 584
  • 2
  • 5
  • 16
16
votes
2 answers

No more logging after upgrade to Debian Wheezy

Syslog, auth.log, kern.log and messages log files are not updated anymore after upgrading to Debian Wheezy (Debian Squeeze was previously running). How could I fix it?
Th. Ma.
  • 525
  • 1
  • 4
  • 14