New answers tagged

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 ...
Tombart's user avatar
  • 2,193
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 &...
CodeRed's user avatar
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 ...
Balint Laszlo's user avatar
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, ...
F. Alessandro's user avatar
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 ...
Alexey Ten's user avatar
  • 8,697
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
Jimmysnowman's user avatar

Top 50 recent answers are included