Logging
EF_LOGGER_LEVEL
Specifies the output level for logging.
- Valid Values
debug
,info
,warn
,error
,panic
,fatal
- Default
info
EF_LOGGER_ENCODING
Specifies the output format of the produced logs.
- Valid Values
console
,json
- Default
json
EF_LOGGER_FILE_LOG_ENABLE
Set to true
to enable writing logs to a file.
- Valid Values
true
,false
- Default
false
EF_LOGGER_FILE_LOG_FILENAME
If file logging is enabled (EF_LOGGER_FILE_LOG_ENABLE
is true
) this option specifies the path to the file where the logs will be written.
- Default
- NetObserv Flow:
/var/log/elastiflow/flowcoll/flowcoll.log
- NetObserv SNMP:
/var/log/elastiflow/snmpcoll/snmpcoll.log
- NetObserv Flow:
EF_LOGGER_FILE_LOG_MAX_SIZE
This option specifies the maximum size in megabytes of the log file before it is rotated. The default is 100
megabytes.
- Valid Values
- Any integer greater than
1
.
- Any integer greater than
- Min Value
1
- Default
100
EF_LOGGER_FILE_LOG_MAX_AGE
This option specifies the maximum number of days to retain old log files based on the timestamp encoded in their filename. Note that a day is defined as 24 hours and may not exactly correspond to calendar days due to daylight savings, leap seconds, etc. The default is not to remove old log files based on age.
- Valid Values
- Any integer greater than or equal to
0
.
- Any integer greater than or equal to
- Default
''
EF_LOGGER_FILE_LOG_MAX_BACKUPS
This option specifies the maximum number of old log files to retain. The default is to retain 4 old log files.
Log files may be removed due to there age, as configured by EF_LOGGER_FILE_LOG_MAX_AGE
, even if the maximum number of backups isn't reached.
- Valid Values
- Any integer greater than or equal to
0
.
- Any integer greater than or equal to
- Default
4
EF_LOGGER_FILE_LOG_COMPRESS
Set to true
to enable compression of log files.
- Valid Values
true
,false
- Default
false