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
8
votes
3 answers

To use syslog or not

Can someone make a decent case here: I want to use syslog so logging is integrated and so I can direct it based on severity etc not to mention log rotate, but at the same time I like the idea of having a dedicated log file for my application so if…
Atomiklan
  • 549
  • 1
  • 8
  • 16
8
votes
4 answers

Is there any logs in Linux which tells if some port has been denied

Suppose in i have the firewall active or any other security like SE linux etc. Now suppose user wants to connect to port 21 and Iptables does not allow it. Now when users gets denied is that message logged any where so that i can see what the…
MOtaro Site
  • 213
  • 2
  • 4
  • 13
8
votes
1 answer

logging http POST in apache?

We've got a django webapp running that receives http POST submissions from a variety of clients. We'd like to be able to have apache log the specific http POSTs coming in before they reach our web app. We see this is an insurance against anything…
dmyung
  • 223
  • 2
  • 3
8
votes
1 answer

How can I automatically delete old apache error log files?

My /var/log/apache2 folder is getting out of hand. It has loads of old compressed error.log files that I want to get rid of before my server runs out of space and explodes. Firstly - Is it safe to manually delete: error.log.1 error.log.2.gz --->…
Bob Flemming
  • 1,245
  • 3
  • 14
  • 17
8
votes
4 answers

Should a foreground program invoked by a daemon split logging between stderr and stdout based on severity levels?

Usually log messages are written to stderr. I'm wondering if it is a good idea/practice to split log messages so that errors and warnings go to stderr while debug/informational/notice messages go to stdout instead? Or is this irrelevant given that…
Rio
  • 335
  • 2
  • 11
8
votes
2 answers

disk space keeps filling up on EC2 instance with no apperent files/directories

How come os shows 6.5G used but I see only 3.6G in files/directories? Running as root on an Amazon Linux AMI (seems like Centos), lots of free memory available, no swapping going on, no apparent file descriptors issue. The only thing I can think of…
sasher
  • 103
  • 1
  • 1
  • 5
8
votes
2 answers

How can I get logrotate dateext to reflect the log date rather than the rotation date?

My Apache logrotate config looks like this: /var/log/http/*log { monthly dateext dateformat .%Y.%m [... rest stripped for brevity ...] } This works great, except that the date on the rotated filename is one period later than the…
Adam
  • 361
  • 1
  • 3
  • 9
8
votes
2 answers

How to block Nginx access log statements from specific user agents

I am looking to turn off logging in the Nginx access log file from specific requests from http user agents. Basically from the Amazon ELB Health Check and our external (Pingdom) monitoring. Since these come every few seconds, makes testing hard to…
briannyc
  • 83
  • 1
  • 4
8
votes
4 answers

Separate Nginx access log file for certain requests only

As far as I can see Nginx supports by default 2 log files: error_log (tracks issues related to the Nginx server itself) and access_log (tracks requests processed by Nginx). Whilst it is possible to control the format of access_log with the…
Max
  • 3,523
  • 16
  • 53
  • 71
8
votes
6 answers

Log through a FIFO, then redirect to a file?

I have an application that must log each transaction. Every log message is flushed because we need to have a record of what occurred leading up to a crash. My colleagues and I were curious about how to achieve the performance effects of buffering…
chrisaycock
  • 133
  • 1
  • 1
  • 10
8
votes
2 answers

Where are the ntpd log file located, and how can we configure the ntpd log file path?

I deal with that, ntpd as a daemon on my linux server by default configuring, but where should we look up the log file? Is there any log file normal, and if not , how can we configure that?
aboutstudy
  • 967
  • 3
  • 10
  • 11
8
votes
3 answers

How do i view / enable kernel logs on centos / red hat linux?

Possible Duplicate: How do i view / enable kernel logs on an ec2 instance (amazon linux)? I've got a centos server that i'm playing around with TCP settings in the sysctl.conf to increase the number of concurrent TCP connections it can handle,…
Chris
  • 1,261
  • 5
  • 15
  • 17
8
votes
2 answers

How to log all the MySQL queries that waited for a table lock?

We are trying to diagnose a deadlock problem MySQL 5.0. Currently all the tables are MyISAM tables and so all the locks are table locks. We have a good table_locks_waited to table_locks_immediate ratio (lower than 1:1000), but within a couple of…
netvope
  • 2,123
  • 5
  • 25
  • 35
8
votes
7 answers

BASH shell session logging on remote host

What's the best method of logging a BASH shell session to a file on the host machine? The preferred output format would be equivalent to PuTTY's "printable output" log setting, as viewed by the user inclusive of input and exlusive of ncurses control…
Andy
  • 5,230
  • 1
  • 24
  • 34
8
votes
2 answers

List top 404 URLs in Apache access_log

I'm looking for a command to list the 10 or 20 top 404 error URLs out of my apache access_log. Can anyone help me with this? thanks
tykho
  • 81
  • 1
  • 2