New answers tagged logging
0
votes
What is the meaning of these HAProxy configuration lines?
/dev/log is local e.g. syslog address. You could send logs to a remove rsyslog server using:
global
log 10.0.0.1:514 local0
local0 is a "standard" syslog facility, where supported ...
0
votes
Delete all of /var/log?
With these two commands, you can delete old log files.
First, cd /var/log and use the commands below.
sudo find /var/log -type f -regex ".*\.gz$" -delete
sudo find /var/log -type f -regex &...
1
vote
Cannot add Kubernetes metadata as label to Loki container logs in FluentBit
My bad, I should have increased log verbosity to debug. There was a permission right issue to the "apiextensions.k8s.io" API Group, so I had to create service account, RBAC role and do the ...
0
votes
How to find "growing" files inside a linux system
You can use tree, which can be found in most distros provided by a package with the same name.
Usage:
tree -h -x / > my_current_tree
-h shows dimensions in a human readable way (Kilobytes, ...
0
votes
Accepted
nginx custom log format to log header value when exists
That's should be as simple as one map:
map $upstream_http_x_real_status $real_status {
# use $upstream... by default
default "$upstream_http_x_real_status";
# but if it's empty, just ...
0
votes
Nginx not logging after Logrotate
Check that /var/log has execute permissions for "other" users.
Try replacing the postrotate.d command with
service nginx reload >/dev/null 2>&1
Top 50 recent answers are included
Related Tags
logging × 2890linux × 417
apache-2.2 × 360
log-files × 234
nginx × 183
syslog × 167
rsyslog × 164
ubuntu × 126
windows × 104
apache-2.4 × 104
mysql × 103
security × 102
centos × 100
ssh × 95
monitoring × 88
iis × 79
logrotate × 79
php × 70
debian × 66
iptables × 53
windows-event-log × 52
tomcat × 50
postfix × 45
bash × 45
cron × 45