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
1
vote
1 answer

Trouble filtering googlebot from apache access log

Though it seems like it should be pretty straightforward, I have been unable to configure apache so that googlebot's requests are not stored in the access log. I've tried the following lines: SetEnvIfNoCase User-Agent googlebot…
1
vote
2 answers

Multiple Apache error logs for one virtual host

I have poorly written PHP application that produces a lot of E_NOTICE and E_WARNING messages to error log. I can't do much about it, but it's hard to keep track of those real errors like E_ERROR and worse. The question is: Can I have multiple error…
ioku
  • 13
  • 2
1
vote
1 answer

Runit logging not working

I created a service with runit. Service starts and falls without logging. I need information about STDOUT of service for error detection (service starts without runit properly). I created a directory /etc/sv/service_name/log, created run executable…
Somewater
  • 11
  • 3
1
vote
1 answer

systemd logcheck rule not working

given is this logcheck rule: ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ systemd-logind\[[[:digit:]]+\]: New session [[:digit:]]+ of user [^[:space:]]+\.$ and this log entry: Mar 19 09:16:09 horst kernel: [3257039.867032] <38>systemd-logind[193047]:…
vautee
  • 495
  • 3
  • 11
1
vote
2 answers

Ubuntu 14.04.2 LTS - RSysLog 8.8.0 - omusrmsg not working

I have been trying for two days to get RSysLog to alert all [or specified] users of certain Facilities/Priorities hitting RSysLog. rsyslog.d/50-default.conf: ... *.emerg :omusrmsg:* ... the command # logger -p emerg…
t3chguy
  • 11
  • 1
  • 4
1
vote
1 answer

Read only permissions on some Linux logs

I would like to limit a certain user (let's call it logger) to be able to only read some (not all) logfile (web, php framework, radius,etc).I am not sure how to do it the "best" way. So far I have a chrooted sftp account for my user and I bind mount…
Nesousx
  • 11
  • 1
  • 3
1
vote
0 answers

Fortigate 60D - Empty log and report

Environment: Fortigate 60D Forti OS 5.0 I can not see any log or report in the firewall. I have already activated forticloud and I recieve empty reports. Is there something that we have to activate in the firewall?
Joe
  • 121
  • 7
1
vote
1 answer

Possible to have FQDN in Debian Logfiles?

Is it possible to have instead the hostname the fqdn inside debian log files? Example: Now its: Mar 2 18:00:12 www rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="2442" x-info="http://www.rsyslog.com"] start Should be: Mar 2…
fips123
  • 361
  • 1
  • 5
  • 17
1
vote
2 answers

Lighttpd error log increases too fast

I am using lighttpd v1.4.35 and I have developed a simple web page with some links to test. After some clicks I have noticed the error log is increasing too fast. In /etc/lighttpd/lighttpd.conf I have the server.errorlog path set as: server.errorlog…
aloplop85
  • 113
  • 1
  • 5
1
vote
0 answers

Flush IIS7 logs manually on remote machine

I know how to flush IIS7 logs when I'm logged on some machine: netsh http flush logbuffer How can I do it on another machine?
Kamarey
  • 377
  • 3
  • 4
  • 10
1
vote
3 answers

Log which combines log files from three different servers

We have a three-server config with each server running nginx, and rails via Mongrel. Each rails installation has its own set of log files, in it's own 'log' folder, which is just a regular folder on the server. The log file i'm interested in is…
Max Williams
  • 237
  • 1
  • 3
  • 14
1
vote
1 answer

Drupal application load troubleshooting

I'm receiving some sporadic high server load on a Drupal application (really high. 8 cores, load average of 50). The load is normally sitting between 5-10. The Drupal application sits behind a separate Varnish server, which keeps things looking…
rca86
  • 11
  • 2
1
vote
1 answer

Nginx Access.log status results according to different file

nginx access.log, I want to do status="200" access_log /var/log/access.log main; status="444" access_log /var/log/access444.log main; status="401" access_log /var/log/access401.log main; this can be done? Thnx server { listen 5026; server_name…
1
vote
2 answers

Elasticsearch index much larger than the actual size of the logs it indexed?

I noticed that elasticsearch consumed over 30GB of disk space over night. By comparison the total size of all the logs I wanted to index is only 5 GB...Well, not even that really, probably more like 2.5-3GB. Is there any reason for this and is there…
Christopher Bruce
  • 339
  • 2
  • 4
  • 14
1
vote
1 answer

Fluentd not writing apache access log to mongodb

I'm following the instructions from this link to write apache access logs to mongo db- http://docs.fluentd.org/articles/apache-to-mongodb. But nothing is getting written to mongo DB. I'm checking using db["access"].findOne();. Contents of my…
ksrini
  • 121
  • 5