Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Logging 配置freeradius的日志详细信息_Logging_Freeradius - Fatal编程技术网

Logging 配置freeradius的日志详细信息

Logging 配置freeradius的日志详细信息,logging,freeradius,Logging,Freeradius,我在Ubuntu(仿生版)上安装了freeradius3.0.16,运行良好。 但是,登录/var/log/freeradius.log对我来说太冗长了: # cut -d: -f4 radius.log | sort | uniq -c 609 Auth 22 Error 261 ERROR 2262 Info 51 Warning 我想去掉所有这些Infolevel条目。事实上,它们是极其重复的,显然充斥着日志,因为一个人在大楼里跑来跑去

我在Ubuntu(仿生版)上安装了
freeradius
3.0.16,运行良好。 但是,登录
/var/log/freeradius.log
对我来说太冗长了:

# cut -d: -f4 radius.log | sort | uniq -c
    609  Auth
     22  Error
    261  ERROR
   2262  Info
     51  Warning
我想去掉所有这些
Info
level条目。事实上,它们是极其重复的,显然充斥着日志,因为一个人在大楼里跑来跑去,口袋里装着iPhone,家里的wlan被激活,但他们忘记了更新密码:

ERROR: (2368) mschap: ERROR: Program returned code (1) and output 'The attempted logon is invalid. This is either due to a bad username or authentication information. (0xc000006d)'
Auth: (2368)   Login incorrect (mschap: Program returned code (1) and output 'The attempted logon is invalid. This is either due to a bad username or authentication information. (0xc000006d)'): [redactedusername] (from client redactedclient port 0 via TLS tunnel)
Info: (2369) eap_peap:   This means you need to read the PREVIOUS messages in the debug output
Info: (2369) eap_peap:   to find out the reason why the user was rejected
Info: (2369) eap_peap:   Look for "reject" or "fail".  Those earlier messages will tell you
Info: (2369) eap_peap:   what went wrong, and how to fix the problem
Auth: (2369) Login incorrect (eap_peap: The users session was previously rejected: returning reject (again.)): [redactedusername] (from client redactedclient port 1 cli 94-27-90-4B-B8-42)
我也可以在没有其他(但不太频繁)信息的情况下生活,比如

Info: Need 6 more connections to reach 10 spares
Q:我在哪里配置日志严重性阈值(全局或可能仅针对eap模块)以不记录信息消息

配置文件中的内联文档似乎没有提到这个问题。如果我使用syslog(
log{destination=syslog}
),我可以在
syslog
配置中过滤严重性。但是,当登录到文件(
log{destination=files}
)时,我在哪里执行此操作?

您可以通过切换来删除“登录错误”消息

我相信在以后的版本中,连接池消息已经切换到调试消息,因此如果您需要,您不应该看到这些消息

对于其余部分,在v3.0.x中,您对全局信息/Auth/Warning/Error消息没有太多控制权。它们不应该有那么多,但不幸的是,代码的某些部分似乎使用了过于冗长的日志宏


对于
eap\u peap
消息,它应该是
REDEBUG
以指示它是请求特定的错误,而不是
INFO
RINFO
,后者指示它是全局信息消息。与“程序返回代码”消息相同。它应该是
REDEBUG
而不是
RERROR
ERROR
。请随意提交。

我确实声明版本为3.0.16 Though,如果它是
REDEBUG
而不是
INFO
,那会有帮助吗?我假设默认情况下,这些消息不会出现在日志中(调试时除外,
freeradisu-X
)?
R*DEBUG*
消息默认情况下不会出现在全局日志中,除非在更高的调试级别。是的,非常正确,您确实说明了版本,很抱歉,我已经删除了警告。