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

Storing username in nginx logs

Is there a way in which user-name or user-id can be stored in nginx logs. I tried inserting $remote_user in the log_format directive but it doesn't seem to work.
nishant
  • 113
  • 1
  • 4
11
votes
2 answers

how to prevent cron logs from registering in syslog?

I have separated my crontab logging into /var/log/cron.log by uncommenting the below line in /etc/syslog.conf, but it still writes to /var/log/syslog too! cron.* /var/log/cron.log How can i prevent it from writing…
shgnInc
  • 1,804
  • 3
  • 22
  • 29
11
votes
1 answer

Is there a way to view an HP ProLiant server IML log from within ESXi?

I'm investigating a system outage on an HP ProLiant DL360 G7 server running VMware ESXi 5.1. While I'm a huge advocate of installing the HP-specific management agents for ESXi or using the customized .ISO image, I never noticed that a few…
ewwhite
  • 197,159
  • 92
  • 443
  • 809
11
votes
4 answers

Which logs to track regularly

I run my own server at home for my personal website running Ubuntu Server with Apache, Bind9 and Django. What logs would you suggest are best to keep track of on a regular basis? (rather than on a basis of reading when something goes wrong). I'm…
Elliot Hughes
  • 253
  • 1
  • 2
  • 7
11
votes
4 answers

Is there anyway to get msiexec to echo to stdout instead of logging to a file

As part of a continuous delivery pipeline I'd like to install an msi on a given machine. msiexec plus psexec does this perfectly, but it seems that msiexec can only log to a file and I need it to log to stdout/stderr. Right now, to get the output…
mrmrcoleman
  • 111
  • 1
  • 4
11
votes
1 answer

How to configure PHP-FPM over NGINX to write in per-virtualhost log files

I have Fedora 16 with Nginx and PHP-FPM. Everything is working very good. All logs with PHP notices, warnings, errors etc. are in /var/log/php-fpm/www-error.log. Is there a way to configure PHP-FPM to write errors in proper log files configured as…
B14D3
  • 5,188
  • 15
  • 64
  • 83
11
votes
1 answer

Empty/Null Apache request entries in access log

This entry got logged in a Apache access log: IP ADDRESS - - [00/00/0000:00:00:00 -0000] " " 301 - "-" "-" It was detected by LogWatch as a null HTTP Response and also got marked as a successful probe.. I am curious about how this request about made…
elle
  • 123
  • 1
  • 6
11
votes
1 answer

Newsyslog wildcards - rotate all logs in a directory

I am running FreeBSD 8.1. I am trying to make newsyslog rotate logs defined by a dynamic path: # logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] /path/logs/*.log 644 7 100 $D0 J /path/logs/*/*.log …
Richard Knop
  • 1,149
  • 2
  • 20
  • 34
11
votes
4 answers

Sending logs to Graylog2 server

I have just setup a Graylog2 server and I am looking to send all logs from my main server to the graylog server. I have enabled logging for the main server and am sending logs to my graylog server by adding *.* @logs.example.com:1337 to…
user44923
11
votes
3 answers

Logging a "persons" activity in Linux

So I've read many of the posts related to this and have just come up more confused than before. There are recommendations for various tools including ttyrec, snoopy, acct, rootsh, sudosh, ttyrpld, unix auditing and more. In my case, I want to be…
Ashimema
  • 213
  • 2
  • 6
11
votes
2 answers

Apache error log with PHP errors

I just set up PHP and Apache and would like to find where the errors are going. What is the default path of the error logs in apache for PHP?
Genadinik
  • 1,103
  • 4
  • 19
  • 39
11
votes
2 answers

What to do if wget's progress:mega doen't cut it anymore?

I have script for downloading large files in a queue. Now I would really appreciate it, if I had a decent log. Specifying the -o or -a option is apparently specially made for that, however as of the time I am writing this "very large files", as the…
niklasfi
  • 459
  • 1
  • 8
  • 16
11
votes
7 answers

Hacking prevention, forensics, auditing and counter measures

Recently (but it is also a recurrent question) we saw 3 interesting threads about hacking and security: How do I deal with a compromised server?. Finding how a hacked server was hacked File permissions question The last one isn't directly…
tmow
  • 1,227
  • 9
  • 20
11
votes
2 answers

Why are external domains appearing in my apache logs?

I've got several log entries that refer to an external domain - mainly a Russian search engine (http://www.yandex.ru/) How are these appearing in my logs? 82.146.58.53 - - [10/Jun/2010:00:49:11 +0000] "GET http://www.yandex.ru/ HTTP/1.0" 200 8859…
Johan
  • 367
  • 5
  • 12
11
votes
3 answers

Is SSH logging capabilities equivalent to su logging for private/public key authentication?

Here at work, we have a non-root shared login account on UNIX that is used to admin a particular application. The policy is to not allow direct logins to the shared account; you must login as yourself and use the "su" command to change over to the…
David I.
  • 211
  • 1
  • 4