4 |
- |
1 |
# -*- text -*-
|
|
|
2 |
#
|
|
|
3 |
# $Id$
|
|
|
4 |
|
|
|
5 |
#
|
|
|
6 |
# Configuration file for the "rediswho" module.
|
|
|
7 |
#
|
|
|
8 |
rediswho {
|
|
|
9 |
# How many sessions to keep track of per user.
|
|
|
10 |
# If there are more than this number, older sessions are deleted.
|
|
|
11 |
trim-count = 15
|
|
|
12 |
|
|
|
13 |
# Expiry time in seconds. Any sessions which have not received
|
|
|
14 |
# an update in this time will be automatically expired.
|
|
|
15 |
expire-time = 86400
|
|
|
16 |
|
|
|
17 |
start-insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{Acct-Input-Gigawords:-0},%{Acct-Output-Gigawords:-0},%{Acct-Input-Octets:-0},%{Acct-Output-Octets:-0}"
|
|
|
18 |
start-trim = "LTRIM %{User-Name} 0 ${trim-count}"
|
|
|
19 |
start-expire = "EXPIRE %{User-Name} ${expire-time}"
|
|
|
20 |
|
|
|
21 |
alive-insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{Acct-Input-Gigawords:-0},%{Acct-Output-Gigawords:-0},%{Acct-Input-Octets:-0},%{Acct-Output-Octets:-0}"
|
|
|
22 |
alive-trim = "LTRIM %{User-Name} 0 ${trim-count}"
|
|
|
23 |
alive-expire = "EXPIRE %{User-Name} ${expire-time}"
|
|
|
24 |
|
|
|
25 |
stop-insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{Acct-Input-Gigawords:-0},%{Acct-Output-Gigawords:-0},%{Acct-Input-Octets:-0},%{Acct-Output-Octets:-0}"
|
|
|
26 |
stop-trim = "LTRIM %{User-Name} 0 ${trim-count}"
|
|
|
27 |
stop-expire = "EXPIRE %{User-Name} ${expire-time}"
|
|
|
28 |
}
|