10
votes
3answers
195 views

*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, ...
2
votes
1answer
134 views

Find out what's running wget on my server

In my access.log I see requests coming from 127.0.0.1 and retrieving server's "/" and then all of graphics and CSS referenced in it. This happens regularly, every 5 minutes. I want to find out what, ...
2
votes
2answers
745 views

How do I disable command line history in Linux?

Right now, I'm aware that for all commands typed into the console, the Ubuntu system logs it somewhere. How can I disable logging of unix commands for all users?
0
votes
0answers
65 views

Prevent cronolog from splitting/cutting lines?

I'm using cronolog to dump my output into datetime stamped files (after asking here on SF). However cronolog will split a line in the middle and spread one line across multiple files if the input ...
20
votes
4answers
3k views

In tail -f, how do I filter out stuff that has certain keywords?

I want to tail -f my logs. However, I want to filter out everything that has the words: "ELB", "Pingdom", "Health"
0
votes
3answers
447 views

how to “batch” output of “tail -F” or output all data in a stream every X seconds?

I am trying to monitor a log file in real-time. Say I issue a command such as: tail -F mysystem.log|grep -i error|mail ... This is supposed to monitor my log file, every time it sees an error, email ...
0
votes
1answer
250 views

Filter out a facility in syslog-ng

Following are the some contents of my /etc/syslog-ng/syslog-ng.confrelated to logging in to the file debug.log source s_sys { file ("/proc/kmsg" log_prefix("kernel: ")); unix-stream ...
0
votes
2answers
188 views

Linux: Where are non-interactive commands logged?

As far as I know, when I SSH to a box, it will add my command history to something like .bash_history. But when I execute a command like rsync and it executes a remote SSH connection, rsync -avz -e ...
3
votes
5answers
1k views

Appending output to a file at the same time truncating it to N lines

I'm trying to find a simple way to append/write to a log, while at the same time keeping it the log trimmed to a reasonable size. I would prefer to not just append files forever, and then have to have ...
1
vote
4answers
1k views

Solaris/Unix equivalent of Event Log

What is the unix equivalent of the Windows Event Log - the tool that logs all processes that start and stop. Need not be exact - with the whole GUI and everything. Anything close would do.
3
votes
1answer
11k views

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, ...
1
vote
2answers
284 views

Top like viewer eating tail -f stream

Hi there I'm searching for a command line tool working with a stream of lines (tail -f typically) and counting them like : tail -f /var/log/apache2/access.log | cut -d' ' -f1 | SOME_COMMAND and ...
2
votes
2answers
448 views

How do I clear history of the bash logs? Also, do not log any of my users' bash logs?

How do I do that? I want to clear everything as well as not log anything from now on.
2
votes
2answers
570 views

Web Server Users - Best Practice

I was wondering what is considered best practice when several developers/administrators require access to the same web server. Should there be one non-root user with a secure username and password ...
7
votes
2answers
4k views

Better logging for cronjobs? Send cron output to syslog?

I am looking for a better way to log cronjobs. Most cronjobs tend to spam email or the console, get ignored, or create yet another logfile. In this case, I have a Nagios NSCA script which sends data ...
5
votes
6answers
4k views

Monitor the shell activity of a user on your Unix system?

Trust, but verify. Let's say I want to hire someone a sysadmin, and give them root access to my Unix system. I want to disable X windows for them, only allow shell usage (through SSH, maybe), so that ...
0
votes
1answer
49 views

In Linux/ubuntu hardy Apache2, how do I find where my default access logs and error logs are being kept?

I just installed Apache2 on my unix via aptitude. Where are the default logs kept?
1
vote
1answer
1k views

shell / ssh / tty session logger

Good day to you. I know there's some variations of my question here, but they are a bit different I assure you. We use terminal servers that our admins connect to and then establish ssh ...
5
votes
4answers
858 views

Log monitoring toolsets for Unix? [closed]

What are some good tools for monitoring logs on a system? I am currently using logsentry, which basically just runs grep on logs, ignores regexps I tell it to ignore, and mails me everything else, but ...
6
votes
3answers
1k views

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 ...
13
votes
4answers
2k views

Log transport and aggregation at scale

How're you analysing log files from UNIX/Linux machines? We run several hundred servers which all generate their own log files, either directly or through syslog. I'm looking for a decent solution to ...