简体   繁体   English

WSO2 BAM ESB LogEvent身份验证失败! 管理

[英]WSO2 BAM ESB LogEvent Authentication failed! admin

I have some errors in the BAM console due to an Authentication situation: 由于身份验证情况,BAM控制台中出现一些错误:

I'm trying to use logevent appender from ESB 4.8.1 to publish events to BAM 2.5.0, I have an external LDAP where my users and roles are. 我试图使用ESB 4.8.1中的logevent追加程序将事件发布到BAM 2.5.0,我的用户和角色都位于外部LDAP中。 I have created a role with publish events premission and assigned to an user in the primary user store. 我创建了一个具有发布事件权限的角色,并将其分配给主要用户存储中的一个用户。 In the log4j.properties of the ESB I have specified the user mentioned above and the tcp url of the BAM server. 在ESB的log4j.properties中,我指定了上述用户和BAM服务器的tcp url。 After I start the ESB I got a message in BAM console saying the user I created is connected and a bit later I got around 20 messages as follows: 启动ESB之后,我在BAM控制台中收到一条消息,提示我创建的用户已连接,稍后,我收到了大约20条消息,如下所示:

ERROR {org.wso2.carbon.databridge.core.internal.authentication.Authenticator} - Authentication failed! 错误{org.wso2.carbon.databridge.core.internal.authentication.Authenticator}-身份验证失败! admin. 管理员。 This user is not permitted to publish events {org.wso2.carbon.databridge.core.internal.authentication.Authenticator} INFO {org.wso2.carbon.databridge.core.DataBridge} - user admin connected {org.wso2.carbon.databridge.core.DataBridge} 不允许该用户发布事件{org.wso2.carbon.databridge.core.internal.authentication.Authenticator}信息{org.wso2.carbon.databridge.core.DataBridge}-用户管理员已连接{org.wso2.carbon。 databridge.core.DataBridge}

If I login to the BAM console and explore de Cassandra cluster in the EVENT_KS there is a column collection named log_0_ESB_yyyy_mm_dd and it has a lot of records. 如果我登录到BAM控制台并在EVENT_KS中浏览de Cassandra集群,则会有一个名为log_0_ESB_yyyy_mm_dd的列集合,并且有很多记录。

I would like to know how can I get rid of those errors in the BAM console ?? 我想知道如何摆脱BAM控制台中的那些错误?

I can give more information if needed, please let me know 如果需要,我可以提供更多信息,请让我知道

I was experiencing the same error. 我遇到了同样的错误。 The error message is quite misleading in my opinion as eventually I found that adding the namespace xmlns:ns="http://org.apache.synapse/xsd" when setting the ESB BAM stream variables fixed my problem. 在我看来,该错误消息xmlns:ns="http://org.apache.synapse/xsd"误导性,因为最终我发现在设置ESB BAM流变量时添加名称空间xmlns:ns="http://org.apache.synapse/xsd"解决我的问题。 So instead of 所以代替

<property name="mon_message_timestamp" expression="get-property('SYSTEM_TIME')" scope="default" type="STRING"></property>

use 采用

<property xmlns:ns="http://org.apache.synapse/xsd" name="mon_message_timestamp" expression="get-property('SYSTEM_TIME')" scope="default" type="STRING"></property>

Please, let me know if this fixes your problem! 请让我知道这是否可以解决您的问题!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM