![](https://secure.gravatar.com/avatar/1ca32cb0045674589d3d6488c2463260.jpg?s=120&d=mm&r=g)
Hello Fredrik. Fredrik wrote in <400f207b-a29d-59a7-e09d-f9778d550e1f@rinnestam.se>: |On 2020-01-19 01:15, Steffen Nurpmeso wrote: |> Steffen Nurpmeso wrote in <20200118202648.J5Qup%steffen@sdaoden.eu>: |>|Fredrik wrote in <7978be63-dacf-9015-dac0-93efcf695261@rinnestam.se>: |>||On 2020-01-17 23:05, Steffen Nurpmeso wrote: |>||> Steffen Nurpmeso wrote in <20200117215549.vY3WG%steffen@sdaoden.eu>: |> ... |>||>|Wonderful new BSD-style syslogd with builtin log rotation support! |>||>|It makes available remote logging by default though, which is why |>||>|on FreeBSD the options -s (or even -ss) are recommendet. |> ... |>|Despite what is still missing for me is a hook that gets called |>|when files actually get rotated. On the VM, which still does not |> ... |>|So i wrote the patch as attached. It seems to fix a syslog.conf |>|option parsing bug, too. I'll mail him that in a second. I now |> |> So, and that bugfix was incomplete/wrong. |> Please find attached a diff which fixes that correctly. |> Otherwise unchanged. |> |>|And seems to work great! :) |> |> That i how i like logging for sure. Auto-rotation, compression of |> elder rotated logs, and a hook which informs rotation happened. |> Happy. |> |> --steffen | |Agreed - I like it too! For now i've implemented your suggestion to not |listen for network connections by default. That is a good default i would say. |Have you tried getting the rotation stuff implemented upstream? Ach, sorry, my "bugfix" made things worse. But yes, i did, he is interested, but would like to have it differently. He would prefer a generic "notify HOOK" at top level, rather than a per-rule hook. I will (try to) do it today, after i have falsely claimed the option parsing was wrong, .. blush. In fact i suggested such a thing for busybox syslogd in 2016, hm. Let's see whether i can do that for sysklogd. I also just responded to his answer with another thought, since on IRC ][_R_][ said he needs YEAR/MONTH/DAY, i asked for the possibility to rotate all (configured) logs on signal, so with that and the "notify" hook even such a scenario should be handable easily. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)