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.
Questions tagged [logging]
2851 questions
10
votes
1 answer
How to filter journalctl output by process name?
When a process logs to systemd, its process name is recorded and displayed as identifier in the journalctl output.
$ systemd-cat echo "test"
$ journalctl -f
-- Logs begin at Sat 2018-02-24 12:13:24 CET. --
...
Jul 25 13:52:26 mycomputer echo[25098]:…

Merlijn Sebrechts
- 469
- 1
- 5
- 16
10
votes
3 answers
Disable Nginx Logging for "forbidden by rule"
In my Nginx config I have some IP blocks in place, to fight off spammers & bots.
This is very effective, but as a result, my error logs get filled up super fast with error messages like these:
2015/12/16 00:56:28 [error] 27748#0: *120462 access…

Mr.Boon
- 1,471
- 4
- 24
- 43
10
votes
3 answers
How do you configure runit logging
I am having trouble setting a service with logging using runit. Here is a brief overview of files and scripts I created according to runit's documentation and other resources I found on the internet:
I am using runit under debian,…

oz123
- 1,258
- 5
- 17
- 34
10
votes
2 answers
Is there a Midnight Commander log or history file?
Sometimes I have to track down user activity on remote machines. Linux audit and messages log are of course a great help; .bash_history is also very helpful, but it's not very verbose as a lot of people here just use Midnight Commander for running…

akalenuk
- 543
- 2
- 6
- 17
10
votes
1 answer
Windows 7 and print jobs logging
Is it possible to log the print jobs in Windows 7? I can only enable the PrintService log that does not have the print jobs events.

robob
- 213
- 1
- 2
- 6
10
votes
3 answers
*nix convention for storing user logs?
What’s a conventional log location for processes that run on behalf of users?
~/.foo/logs/ — my top choice but not super awesome
/var/log/foo.uid/ — Non-system users can’t create directories here, needs cooperation to create in the first place.
A…

s4y
- 231
- 2
- 7
10
votes
1 answer
Rotating logs generated by a process that logs to stdin
I have a long running process, that writes its log file to stdout. I would like to save this output to different files, automatically maintain these files (like deleting/archiving the old ones), without restarting the main process.
On solution would…

SztupY
- 265
- 3
- 13
10
votes
4 answers
Can I delete error log files in apache. Will it cause an issue?
Possible Duplicate:
Logrotate configuration for httpd (CentOS)
can I delete error log files in apache. Any issue? Because it eats my server space
user1010966
10
votes
2 answers
How to debug Samba authorization (authentication) procedure
I'm running a small home network linux-based server which acts as an internet router, torrent client and file server. I have problems connecting Windows clients to server Samba shares ('user name or password is invalid'). How can I enable logging of…

mbaitoff
- 355
- 2
- 3
- 9
10
votes
5 answers
How to log the URL scheme (http / https) in Apache?
nginx has the $scheme variable usable in its log_format lines.
%H is the request protocol (e.g. "HTTP/1.1").
How can I do the same with Apache?

Vladimir Panteleev
- 1,737
- 5
- 20
- 34
10
votes
2 answers
Can postgres internal log rotation mechanism delete log files older than a certain time?
I am using posgtres' internal log rotation mechanism. I would like log files older than 30 days to be deleted. How do I get postgres to do this? If postgres does not support it, can I set logrotate to just delete logs older than 30 days?
My current…

Freiheit
- 201
- 1
- 2
- 15
10
votes
3 answers
NginX Log Rotation
I am serving a couple different domains through NginX on the same server and they each log to their own file. I need to set up a script to rotate, and compress these files and add it to cron.
I know I have to do something to get NginX to open a…

John F. Miller
- 201
- 1
- 2
- 6
10
votes
3 answers
Can I log vi activity?
Is there any method to log vi activities? I suspect that another user is issuing commands by going into the shell inside the vi editor, apparently those command doesn't record into history.

vnix27
- 886
- 2
- 11
- 19
10
votes
8 answers
The most powerful open source web analytics tools?
Need some advices on choosing open source web analytics tools, including both of page tagging and log file analysis type. I know some of them: piwik, open web analytics, awstats and more... what are the best ones among them(page tagging type and log…

Mickey Shine
- 939
- 4
- 17
- 33
10
votes
9 answers
Colour tail of Apache logs
Monitoring apache logs with tail –f tends gets very frustrating for the eyes after a while. Are there any tool/options to colorize the log outputs? Maybe signal FATAL with red, etc...

Cherian
- 791
- 1
- 6
- 13