Reprocessing Accounting Detail Files Without Affecting FreeRADIUS
Dear FreeRADIUS Community, I am writing to seek advice on the best approach to reprocess accounting detail files without affecting the live operation of FreeRADIUS. Currently, I write accounting records into detail files in 15-minute intervals. However, sometimes I occasionally need to reprocess these files at a later time. Would radrelay be the right tool for this, or is there a better approach? I am considering a solution where I can trigger the reprocessing via a single command or have a listener that can be activated with restarting FreeRADIUS. I would appreciate any recommendations on the best way to achieve this. Best regards,
On 08/03/2025 10:54, Erdal Emlik via Freeradius-Users wrote:
I am writing to seek advice on the best approach to reprocess accounting detail files without affecting the live operation of FreeRADIUS. Currently, I write accounting records into detail files in 15-minute intervals. However, sometimes I occasionally need to reprocess these files at a later time.
Would radrelay be the right tool for this, or is there a better approach? I am considering a solution where I can trigger the reprocessing via a single command or have a listener that can be activated with restarting FreeRADIUS.
radrelay these days is just a FreeRADIUS config that reads detail files and processes them. Either start a separate instance of the daemon using that config to process as and when (the -n option is helpful here), or set up a main detail listener in the normal config that points to a file (or glob) that doesn't normally exist. When you want to process a file, copy it to the location that the listener is looking at. -- Matthew
Thank you for the really quick response. Will putting a listener on a non-existing detail file while FreeRADIUS is running cause any issues? Using radrelay seems like a more reasonable approach i guess.
Matthew Newton via Freeradius-Users <freeradius-users@lists.freeradius.org> şunları yazdı (8 Mar 2025 14:09):
radrelay these days is just a FreeRADIUS config that reads detail files and processes them.
Either start a separate instance of the daemon using that config to process as and when (the -n option is helpful here), or set up a main detail listener in the normal config that points to a file (or glob) that doesn't normally exist. When you want to process a file, copy it to the location that the listener is looking at.
On 08/03/2025 11:36, Erdal Emlik wrote:
Thank you for the really quick response. Will putting a listener on a non-existing detail file while FreeRADIUS is running cause any issues? Using radrelay seems like a more reasonable approach i guess.
Why should it? It's no different from a server that uses a detail listener all the time but has little traffic coming in. It just looks for the existence of a file every couple of seconds. If there's nothing there, it does nothing. -- Matthew
Thank you so much Matthew. Have a good day iPhone’umdan gönderildi
Matthew Newton via Freeradius-Users <freeradius-users@lists.freeradius.org> şunları yazdı (8 Mar 2025 14:45):
On 08/03/2025 11:36, Erdal Emlik wrote:
Thank you for the really quick response. Will putting a listener on a non-existing detail file while FreeRADIUS is running cause any issues? Using radrelay seems like a more reasonable approach i guess.
Why should it? It's no different from a server that uses a detail listener all the time but has little traffic coming in.
It just looks for the existence of a file every couple of seconds. If there's nothing there, it does nothing.
-- Matthew
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
Erdal Emlik -
Matthew Newton