File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,15 @@ if [ -e "$CONFFILE" ]; then
1515 if [ ! -z ${CACHE_SIZE+x} ]; then
1616 CACHE_SIZE_PARAM=" size=${CACHE_SIZE} "
1717 fi
18- storage=" -s cache;${CACHE_SIZE_PARAM} "
18+ CACHE_ACTIVET_PARAM=" "
19+ if [ ! -z ${ACTIVE_TIMEOUT+x} ]; then
20+ CACHE_ACTIVET_PARAM=" ;active=${ACTIVE_TIMEOUT} "
21+ fi
22+ CACHE_INACTIVET_PARAM=" "
23+ if [ ! -z ${INACTIVE_TIMEOUT+x} ]; then
24+ CACHE_INACTIVET_PARAM=" ;inactive=${INACTIVE_TIMEOUT} "
25+ fi
26+ storage=" -s cache;${CACHE_SIZE_PARAM}${CACHE_ACTIVET_PARAM}${CACHE_INACTIVET_PARAM} "
1927 process=" "
2028 if ` declare -p PROCESS > /dev/null 2> /dev/null` ; then
2129 # list of input plugins
3442 echo " Configuration file '$CONFFILE ' does not exist, exitting." >&2
3543 exit 1
3644fi
37-
Original file line number Diff line number Diff line change @@ -30,3 +30,7 @@ UDP=yes
3030
3131# Size of flow cache, exponent to the power of two
3232CACHE_SIZE=17
33+
34+ # Active and inactive timeout in seconds (double)
35+ ACTIVE_TIMEOUT=300.0
36+ INACTIVE_TIMEOUT=65.0
You can’t perform that action at this time.
0 commit comments