1
vote
1answer
40 views

When cron is completed How to get email notification and log in a file (both)

I am a Newbie to linux. I'm trying to figure out things. Can someone kindly help me how to combine these two commands? (1) Normally cron can results can be directed to a log file by editing crontab ...
0
votes
0answers
63 views

Setup CENTOS Centralized AUDIT and RSYSLOG server

Attempting to use these links: Sending audit logs to SYSLOG server or http://wiki.rsyslog.com/index.php/Centralizing_the_audit_log I have been unable to get centralized AUDIT logging to work on my ...
0
votes
1answer
39 views

How to best monitor/log problems on eth0?

I have manually configured an email server - very simple config and I have done no fancy networking. I simply opened up only the relevant ports via iptables. Once every 10-15 days however, eth0 ...
0
votes
1answer
15 views

Log not readable after rotation by daemontools

I have a log, which looks perfectly fine. However, after the log rotation by daemontools, it is no longer human readable. What could be the problem?
1
vote
0answers
122 views

How to configure nDPI for iptables

I am new to nDPI, I have installed nDPI but when I add rules like; iptables -I OUTPUT -m ndpi --http -j REJECT it shows error iptables v1.4.7: Couldn't load match ...
1
vote
1answer
89 views

How do I configure Linux to log when ulimits are hit?

For example, say I'm hitting nproc. I would expect a log message to appear /var/log/messages or similar, but it looks like that needs to be configured. How do I do that? I can't find anything relevant ...
0
votes
1answer
25 views

Disabling sentbox in postfix over Squirrelmail

I have installed POSTFIX over Squirrelmail on CentOS Linux... The services I have ran are: service httpd service ssl service mysql service postfix service saslauthd service dovecot I have ...
0
votes
1answer
57 views

mysql.slow.log is not created even though it's configured in /etc/my.cnf , what could be the reason?

This is the relevant section from /etc/my.cnf: [mysqld] slow-query-log = ON long_query_time = 2 log_slow_queries = /var/log/mysql-slow.log The problem is that file is ...
0
votes
1answer
398 views

What is the function of the cimserver daemon?

I noticed in /var/log/messsages a process 'cimserver' was logging some interesting messages: Nov 27 15:33:37 lb-web-standby cimserver[2250]: Failed to deliver an indication: Cannot connect to ...
2
votes
1answer
651 views

How to install auditd on CentOS?

How to install auditd on CentOS 6.4 x64 ? I want to Log all commands run by admins Log all commands run by admins on production servers Edit: I can't run aduditd service I did with this tut enter ...
0
votes
3answers
378 views

Why does MySQL Slow Queries Log not exist?

I was looking today on my CentOS server for a MySQL Slow Queries Log, but have had no luck finding the log. I even did a "SELECT SLEEP(2)" test in hopes to have this file created. Take note, I am not ...
0
votes
1answer
86 views

Possible conflict in log rotate files with vhost? (CentOS)

I'm a little new to this, but our previous developers didn't set up the vhost logs to rotate (or Apache was configured wrong) so while the default logs rotate, the vhost ones do not. I was reading ...
0
votes
0answers
120 views

what does “logging” status represent in apache mod_status output?

We have an issue where Apache will lock up with all threads in locking state until restarted. I don't know and can't find out what "Logging" actually means? Does it just mean the process is writing ...
1
vote
2answers
346 views

What do these entries in my SSH logs mean? [duplicate]

I recently noticed that I have entries from an unknown IP address in my SSH logs. I performed a grep to extract all entires that didn't contain my own IP address. I was presented with this: Jul 24 ...
0
votes
3answers
597 views

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 ...
0
votes
2answers
64 views

Which logs will Plesk deal with? [closed]

I'm about to move to a VPS server running CentOS 6 and the latest version of Plesk. I've been told to look into logs and log rotation - which I know Plesk supports - but it has been mentioned that ...
0
votes
1answer
199 views

Centralized apache logging with rsyslog

I maintain many virtualhosts (over 60) hosted on a Centos server running Apache. The virtualhosts gets created using Plesk, which creates separate log files for each domain using the following pattern ...
1
vote
0answers
415 views

Timzone incorrect for log files only?

I have a small server running centos 6.4 and it is working quite nicely for some time. One thing that still bugs me is that the time in my log files is different then the time the 'date' command ...
0
votes
2answers
404 views

centos cron logs are not executed

I have been trying to setup a cronjob on centos but doesn't seems to work. I have been deleting the crons logfile to see all newly created logs and I have been restarting crond but /var/log/conf ...
-3
votes
2answers
246 views

CentOS log high cpu usage [closed]

I have a CentOS server running on a VPS via Virtuozoo containers. I feel like there are high CPU usage spikes. Is there a way I can log every time CPU usage goes beyond a certain limit lets say 50%. ...
-1
votes
1answer
33 views

recently installed packages

Is there anyway in CentOS 6 to see the recent installed applications, at least those done by yum? Is there anything like a log-file by default? If it is not available/enabled by default, how can I ...
3
votes
2answers
324 views

Getting auditd to record the original user

This question is related to my previous question: Log all commands run by admins on production servers It is company policy for admins to login to the servers via a personal username, and then run ...
12
votes
5answers
4k views

Log all commands run by admins on production servers

It is company policy for admins to login to the servers via a personal username, and then run sudo -i to become root. Upon running sudo -i, sudo will create an environmental variable called ...
-6
votes
2answers
136 views

Someone is using a lot of bandwith through OpenVPN, how can I find out who?

I just checked bandwith usage on SolusVM and it was 250gb in 2 days, and I know it's one of my users through OpenVPN. I think it is a torrent because it is upload + download 24/7. I want to find out ...
-3
votes
2answers
407 views

random server reboots [closed]

Jan 6 22:43:27 HOSTkernel: [34400.406538] Firewall: *Port Flood* IN=eth0 OUT= MAC=00:25:90:33:2c:d4:00:12:7f:34:7d:bf:08:00 SRC=141.0.9.77 DST=SERVER IP LEN=60 TOS=0x00 PREC=0x00 TTL=59 ID=2055 DF ...
1
vote
1answer
130 views

Confusing traffic in netstat, nothing in logs

Just had a confusing couple of minutes! I was monitoring a screen (the gnu screen) running "netstat -a" and I noticed that there was one connection connected to http (port 80), fine. But when I ...
4
votes
4answers
889 views

CentOS centralised logging, syslogd, rsyslog, syslog-ng, logstash sender?

I'm trying to figure out the best way to setup a central place to store and interrogate server logs. syslog, Apache, MySQL etc. I've found a few different options but I'm not sure what would be best. ...
0
votes
1answer
94 views

Centos log stream for iptables failed

I am trying to block all connections to my pop3, imap server excepting my ip address and log dropped connections to a logfile /etc/sysconfig/iptables ... -N accept-n-log -A accept-n-log -j LOG ...
3
votes
3answers
297 views

Setting up logging for a remote backup script

So I wrote up a short script that I am planning to run via a cron job daily to package up my site files and send them to a remote location. I also plan to incorporate DB dumps, but I have not gotten ...
1
vote
1answer
1k views

Rotating Iptables logs with logrotate

I'm running CentOS6 and I configured rsyslog to monitor my iptables warning messages and dump them in /var/log/iptables.log. I went through my logrotate.d/syslog file and added iptables.log so ...
0
votes
2answers
50 views

Does Apache log each request? [closed]

How to tell Apache to log each request (visit)?? I'm looking for a bug in my code, and I have to track visitor.
-2
votes
4answers
3k views

Can I delete error log files in apache. Will it cause an issue? [duplicate]

Possible Duplicate: Logrotate configuration for httpd (CentOS) can I delete error log files in apache. Any issue? Because it eats my server space
1
vote
1answer
307 views

Rsyslog Central Server Log Rotation File/Folder Permission

I have setup a CentOS 6.3 box to collect logs from a few devices, I have log rotation setup for each host. Basically It rotates the log file by Year, Month, Day and the Host. Everything works great ...
3
votes
1answer
1k views

Get varnishlog to log only 503 errors into file

I tried everything: service varnishlog start - logs everything varnishlog -D -c -m TxStatus:503 > /var/log/varnish/varnish.log - doesn't seem to be doing anything varnishlog -c -m TxStatus:503 ...
3
votes
1answer
656 views

Compress logs rotated with cronolog

I have a bunch of servers(Centos 5.x) with Apache that have their logs rotated with cronolog. What is the best strategy for compressing and deleting those logs automatically after a certain time? ...
1
vote
1answer
286 views

Mysql remote connections logging

I need to allow remote connections to my mysql server running on latest stable CentOS. I don't like this idea at all so I want at least to collect as much relevant information as possible. To be ...
0
votes
1answer
392 views

logrotate not rotates my logs

my logrotate works perfectly, except for this configuration: /var/awdata/awarchive.*.log /var/log/awstats.log { rotate 12 } this is my logrotate -d /etc/logorate.conf considering log ...
2
votes
0answers
67 views

How to disable access_log for DOMAINS? [duplicate]

Possible Duplicate: Disable access logging for domains. (Using CentOS & Apache) I can disable access_log for server BUT I can't disable access_log for domains. Do you have any solution? ...
1
vote
1answer
3k views

How do you set a DATE variable to use in a log for crontab output?

I was playing aroudn with some variations of date like DATE = $(date) but that didnt work either crontab -e CRONLOG=/tmp/log/crontab.log DATEVAR=`date +20\%y\%m\%d_\%H\%M\%S` * * * * * echo ...
2
votes
1answer
619 views

CentOS and iptables Logging

I am working with some CentOS rules and would like to be able to log the dropped items from iptables out to a separate file. What is the best way to setup CentOS to log dropped iptables matches to a ...
0
votes
3answers
11k views

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

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

Apache: Automatic log splitting per Virtual Host?

Whenever we create new Virtual Hosts on our dev servers, we always have to manually specify separate access and error logs: ErrorLog logs/mysite/dev1-error.log CustomLog logs/mysite/dev1-access.log ...
0
votes
2answers
839 views

PPTP traffic logging

I am running pptpd on a Centos 5 machine but I didnt set up any logging. In case of an abuse, I need to determine which of my users did the bad things, meaning I need to log all the traffic. I may ...
2
votes
2answers
627 views

save crontab output to a new file everytime?

I want to save my crontab output: 15 * * * * myscript.sh > ~/logs/log1.txt How do i make the crontab save to a new file everytime (i.e. log2.txt, log3.txt etc.) , instead of updating or ...
2
votes
2answers
205 views

phpmyadmin not opening

I have a Centos VPS 512 MB RAM 30 GB hard disk, When I goto to my phpmyadmin, the login page comes, when I enter my username and password, and hit enter, the same page comes, again the same login ...
0
votes
1answer
807 views

How to get perl stderr to httpd log file when using syslog

This question is about HTTPD (Apache) 2.? on centOS and modperl 1.7+ When I use the apache directive ErrorLog logs/error_log, my perl warnings show up in the error_log file. When I change this to ...
1
vote
1answer
311 views

Turn “log slow queries” ON

I'm trying to log mysql slow queries, but I can't turn it on. I will explain all my steps: Open and Edit my.cnf and add the following lines: long_query_time = 5 slow_query_log_file = ...
7
votes
3answers
6k views

How do you disable SMB printing support?

I'm running CentOS on a storage server that has to do file sharing for with Windows machines. SMB version is smbd version 3.5.5-68.fc13 I'm getting a lot of error messages in /var/log/messages ...
0
votes
1answer
233 views

Is it possible to filter exim_mainlog for emails that had attachments?

Is it possible to filter (grep) exim_mainlog for emails that had attachments? I'm looking through a really long log for an email of which I don't have any information about other than the sender and ...
1
vote
3answers
5k views

where are the ftp logs on an centOS machine?

where are the ftp logs on an centOS machine? I am having problem transferring files using filezilla. I can browse the remote site but can not make a transfer. Error: Could not connect to server ...