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
13
votes
5 answers

How to Enable IPtables TRACE Target on Debian Squeeze (6)

I am trying to use the TRACE target of IPtables but I can't seem to get any trace information logged. I want to use what is described here: Debugger for Iptables. From the iptables man for TRACE: This target marks packes so that the kernel will…
bernie
  • 385
  • 1
  • 3
  • 12
13
votes
7 answers

How to log every linux command to a logserver

I want every single command typed to go to a logserver. Already configured is the syslog-ng to send all logs to the logserver. I'm interested in any and all methods to do this. I would expect some discussion of rogue users and security but the…
Leo
  • 1,038
  • 1
  • 8
  • 13
12
votes
3 answers

How can i send /var/mail/root again?

Through some misconfiguration I've a lot of emails in /var/mail/root and /var/mail/www-data How can I "loop" over these files and send each mail another time?
Max
  • 465
  • 2
  • 6
  • 11
12
votes
7 answers

Is there a web-based log-tailing application?

I have been using BareTail for low-footprint log reading, and it works wonderfully. In particular, I like that it can consume very large large files, detect changes to those files, all without consuming much memory at all. I'd like to know if there…
marc esher
  • 287
  • 1
  • 4
  • 9
12
votes
3 answers

Can nginx log time in ISO 8601 format, but include milliseconds?

We have Nginx as a reverse proxy in front of Tomcat. Both of them log access with ISO 8601 timestamps, but tomcat adds in milliseconds (which is part of the standard). So if Nginx gets a request and passes it onto Tomcat, the Nginx log might have…
SamBarham
  • 143
  • 1
  • 1
  • 4
12
votes
1 answer

How to share nginx log's without sudo to another user?

I have 2 users on my server. One with sudo access another without. How can i give access to nginx logs /var/log/nginx/error.log To another user without sudo permission to use cat /var/log/nginx/error.log ? Can i create something like a symlink to…
Alexander Kim
  • 597
  • 3
  • 8
  • 21
12
votes
3 answers

Good Free Tomcat Log Analyser?

Could someone recommend a good and free program for analysing Apache Tomcat logs. I don't need real-time analysis or anything like that. I have a log and I just want a quick and easy way to get some usage statistics from it. The stats don't even…
Bart B
  • 3,457
  • 6
  • 31
  • 42
12
votes
1 answer

logstash (or graylog?) vs nxLog to collect event logs and csv logs

I am current investigating the possibility to consolidate logs from multiple servers using logstash (or graylog2). I am still a bit confused about the difference logstash and graylog. So far I appreciated the ease of use of logstash, but I would be…
E. Jaep
  • 293
  • 1
  • 3
  • 14
12
votes
4 answers

How can I make syslogd email certain log messages to me?

I'd like to be able to get an email notification whenever syslogd logs something of, say err priority or higher. Assume this is a BSD compatible syslog daemon. Can this be accomplished? Should I use a named pipe to a shell script? What other…
jason
  • 222
  • 1
  • 2
  • 7
12
votes
2 answers

Is there a compression format that supports tail operations?

I'm looking for a compression format that supports being tailed. Meaning you dont have to read the entire file to get the last X uncompressed bytes. Is this possible with any of the formats like bzip2, xz, lzma, etc? I once coded something using…
phemmer
  • 5,909
  • 2
  • 27
  • 36
12
votes
4 answers

How to have daily error and access logs on Apache (for Windows)?

We're running Apache 2.2.9 (Win32) with a few virtual hosts configured on the one server. Each has it's own ErrorLog and CustomLog settings which are in the format of "logs/[domain name]-error.log" and "logs/[domain name]-access.log". Unfortunately…
Pauk
  • 372
  • 2
  • 6
  • 15
12
votes
4 answers

Is it possible to create Custom Error Log in Apache 2.2?

I'd like to prepend the vhost name in my ErrorLog and then pipe it into a program I wrote. Is it possible to write Custom Error log format as it is with Access log?
JohnT
  • 145
  • 1
  • 1
  • 4
12
votes
5 answers

linux LVM mirror vs. MD mirror

I think I remember making some mirrors years ago with LVM, and I don't remember this "log" thing. Or maybe I made the mirror with mdadm and put LVM on top. That must be it. What is the LVM log for if it is just a mirror? What is stored there? What…
d-_-b
  • 1,124
  • 3
  • 11
  • 23
11
votes
2 answers

How to add a prefix / label for services to supervisor stdout output

I'm using supervisor in docker images when I have to run multiple services in one image e.g. postfix and other mail services. When I redirect the stdout/stderr from all services to supervisor and supervisor does also log to stdout/stderr I would…
Konstantin
  • 171
  • 1
  • 4
11
votes
1 answer

How to determine what traffic is being dropped / blocked base on iptables log

I have followed the example for iptable logging from https://help.ubuntu.com/community/IptablesHowTo#More_detailed_Logging sudo iptables -I INPUT 5 -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7 I get log entries like…
forestclown
  • 945
  • 4
  • 15
  • 25