log

  1. J

    Solved Log file rotation by size and time

    Logfile rotation, which is handled by newsyslog, can be done based on 1) max size of file, 2) at certain time. My questions is: how does it work when both the conditions are specified? I'd expect it'll rotate when any one condition is met. Is that correct? But for example, in my newsyslog.conf...
  2. C

    No log after crash

    Hello, I'm on FreeBSD 12, on a SuperMicro JBOD. We had a crash this morning and we found that after the server reboot we had lost all logs. Nothing in /var/crash..... Is there a way to prevent this behaviour? Thank you for your answer Chris
  3. G

    FreeBSD printing logmsg in cycle

    my mistake probably overload system. I configured syslog client (maybe server too). After boot on console in cycle printing "logmsg: pri 2, flags 17, from Device". How I must solve this problem? Thank so much
  4. erikw

    Shell znp: Wrap dangerous shell command in ZFS pre-post snapshots and log outputs

    EHLO, I just wanted to share a small but handy script with the community, as I think more people than me could find it useful! Use Case: You have some dangerous command which could alter your system in a bad way, e.g.: $ pkg upgrade $ portmaster -a $ some_cmd --force --overwrite...
  5. D

    Other Script for deleting Logs in the log folder

    Hi guys I need all of your help, Iam looking for a script for Cron, which can I use for automising the purifing of the DNS-logs in the log folder of my companies freebsd DNS server. Iam new to Freebsd coming from linux so please have some indulgence with me. :)
  6. blodan

    HOWTO: Stop nginx + php-fpm from truncating your stack trace/error message

    This one took me quite a while to figure out so hopefully someone will have use of this post. As you are here, you have probably already figured out that your stack traces/error messages are being truncated at 1024 characters/bytes and that the nginx recompile solution out there does not help...
  7. abdelilah

    Solved newsyslog delayed compression

    Hello everyone, How can I achieved delayed compression like the one existing in logrotate, here is my config (I did not find this in the man) : /var/log/apache24/httpd-access.log 644 52 * @T04 J /var/run/httpd.pid 30 I wish to delay the compression by one day : - Current log. - Rotated...
  8. sidetone

    How to contribute improvements to FreeBSD

    FreeBSD Mailing Lists: To send an email to the FreeBSD mailing list, make sure your email is sent in plain text, as HTML and attachments are filtered out. A subscription is not required, but it will have to be moderated. If you're having problems sending to the mailing list, please test your...
  9. J

    PF I can't log the blocked packets

    I'm trying to set up a pf firewall. I'd like to log all the dropped packets. Here's my pf.conf so far: tcp_internet_out="{53, 80, 443, 123}" udp_internet_out="{53}" block log all pass in quick on lo0 pass out quick on lo0 pass in quick on re0 inet proto tcp from any to (re0) port 22 pass out...
Top