Rotating detail files.
FR 3.0.14 Ubuntu 16.04 I'm creating a detail file which is used by an agent to upload contents into our logstash. detail detail-filebeat{ filename = /var/spool/freeradius/detail-filebeat escape_filenames = no permissions = 0600 # group = ${security.group} header = "%t" locking = yes suppress { User-Password } detail-fileberat invoked in both default and inner-tunnel sites Logrotate configured as /var/spool/freeradius/detail-filebeat { rotate 1 postrotate /bin/kill -HUP `cat /var/run/freeradius/freeradius.pid` endscript } Problem is that although logrotate rotates the file, freeradius isn't writing to the newly created file. A FR restart sorts it out but I'd rather not restart the server every day. I'm using radmin on another server to reread files periodically, might I be able to persuade FR to write to the new file via radadmin ? Rgds Alex
On Jul 21, 2017, at 6:14 AM, Alex Sharaz <alex.sharaz@york.ac.uk> wrote:
Logrotate configured as
/var/spool/freeradius/detail-filebeat { rotate 1 postrotate /bin/kill -HUP `cat /var/run/freeradius/freeradius.pid` endscript }
That will rotate the main radius.log file but nothing else. You need to HUP the detail module specifically: $ radmin -e "hup detail" Alan DeKok.
o.k thanks A On 21 July 2017 at 12:33, Alan DeKok <aland@deployingradius.com> wrote:
On Jul 21, 2017, at 6:14 AM, Alex Sharaz <alex.sharaz@york.ac.uk> wrote:
Logrotate configured as
/var/spool/freeradius/detail-filebeat { rotate 1 postrotate /bin/kill -HUP `cat /var/run/freeradius/freeradius.pid` endscript }
That will rotate the main radius.log file but nothing else.
You need to HUP the detail module specifically:
$ radmin -e "hup detail"
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
participants (2)
-
Alan DeKok -
Alex Sharaz