WSO2 Api manager 3.2.0 Analytics not showing any data - wso2

WSO2 Api manager 3.2.0 Analytics not showing any data.I hit the api many times and try out, but not showing any thing. Its configured successfully as following info :
DataBridge user admin connected

Duplicate of wso2 api mnager analytics dashborad show api name but not usages
If you are using Oracle schemas to configure Analytics in your environment, add the following datasource configuration under ANALYTICS_DB in the Dashboard's <analytics>/conf/dashboard/deployment.yaml
connectionInitSql: alter session set NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
A complete configuration will be as following
- name: APIM_ANALYTICS_DB
description: Datasource used for APIM Analytics
jndiConfig:
name: jdbc/APIM_ANALYTICS_DB
definition:
type: RDBMS
configuration:
...
connectionInitSql: alter session set NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
Perform the above-mentioned configurations and restart the Dashboard nodes and verify the behavior.

Related

WSO2 APIM Analytics 3.2.0 dashboard login page doesn't open

I am running WSO2 APIM 3.2.0 and Analytics 3.2.0 on different client servers. I did all the required settings to configure WSO2 APIM with WSO2 Analytics. Started both the servers successfully and WSO2 APIM URL's open well. But, when I open the Analytics Dashboard URL (https://<Analytics_Host>:9643/analytics-dashboard/login), I get the below warning in the dashboard server logs, and the login page does not appear. Only a blank screen appears.
WARN {org.wso2.msf4j.internal.MSF4JHttpConnectorListener} - Unmapped
exception feign.RetryableException: No subject alternative names
matching IP address <APIM_IP> found executing GET
https://<APIM_Host>:9443/api/am/admin/v0.16/custom-urls/carbon.super
In the browser console I can see errors as shown in the below screenshot.
One more thing I noticed is in the management console of WSO2 APIM, difference in Service Providers list when compared with my local. I didn't find all the service providers on the client server which I can see on my local.
WSO2 APIM Carbon Console Service Providers list on my local:
WSO2 APIM Carbon Console list on the client server:
Am I missing out on some configurations? Need suggestions on this issue.

Data not being populated in wso2is-analytics-5.8.0 dashboard that is integrated with wso2is-km-5.9.0

I am using wso2is-km-5.9.0 for serving our application authentication and SSO needs and we have coupled wso2is-analytics-5.8.0 with our Identity Server. I have followed the steps mentioned in the offical documentation i.e setting Analytics in api-manager.xml to True and enabling the eventpublishers but I'm unable to see any data in Analytics dashboard. Please refer the error logs for the same attached.
Why is the data not being populated in WSO2 analytics dashboard??
Analytics error log
Identity Server error log
With the new config model introduction, you should not edit the api-manager.xml file. It should be done via deployement.toml file.
Moreover you have to enable event listeners and publishes in deployment.toml file. This will enable publishing data to the analytics. You should refer the documentation in https://is.docs.wso2.com/en/5.9.0/learn/configuring-identity-analytics/ because IS and IS-KM is more similar, difference is having an apim-manger.xml file.
[[event_listener]]
id = "authn_data_publisher_proxy"
type = "org.wso2.carbon.identity.core.handler.AbstractIdentityMessageHandler"
name = "org.wso2.carbon.identity.data.publisher.application.authentication.AuthnDataPublisherProxy"
order = 11
[identity_mgt.analytics_login_data_publisher]
enable=true
[identity_mgt.analytics_session_data_publisher]
enable=true

Cannot change credentials for wso2 api manager Analytics

I have a API Manager 2.6.0 deployment within 3 nodes i.e. 3 VMs. Abbreviations:
GW - Gateway
AIO - Traffic Manager, Key Manager, Dev portal, Publisher
Analytucs - Api M Analytics 2.6.0
DB - PostgreSQL.
I've set everything working between components, till I changed the default admin password, username stood the same.
As per manual I did
Changed the admin password from UI, sice I did a tests already with default credentials
Changed password in api-manager.xml on AIO and GW
Changed password in user-mgt.xml on AIO and GW
Changed password in jndi.properties on AIO and GW
Above 4 points as noted in manual- https://docs.wso2.com/display/AM260/Maintaining+Logins+and+Passwords
This manual does not tell how to make distributed analytics node to accept that password.
The Analytics Install manual told to install WSO2 API-M Analytics and WSO2 API-M(which as I understand is meant if both are on same machine). Again, this manual does not tell much about user configuring on Analytics server.
I tried to look from DAS and SP manual, but the Analytics does not have auth.configs: in YAML files and nor adding them manually from SP source code helps.
Error returned on GW and AIO:
2019-02-21 15:13:52,090 [-] [DataBridge-ConnectionService-tcp://192.168.102.39:7612-pool-11-thread-1] ERROR DataEndpointConnectionWorker Error while trying to connect to the endpoint. Cannot borrow client for ssl://192.168.102.39:7712.
org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Cannot borrow client for ssl://192.168.102.39:7712.
Caused by: org.wso2.carbon.databridge.agent.exception.DataEndpointLoginException: Error while trying to login to the data receiver.
Caused by: ThriftAuthenticationException(message:wrong userName or password)
On Analytics obvious:
[2019-02-21 15:16:49,016] ERROR {org.wso2.carbon.databridge.core.internal.authentication.CarbonAuthenticationHandler} - Authentication failed for username 'admin'. Error : 'Invalid_Credentials'. Error Description : 'The login credential used for login are invalid, username : 'admin'.'
[2019-02-21 15:16:49,016] ERROR {org.wso2.carbon.databridge.core.internal.authentication.Authenticator} - wrong userName or password
The question is, how to make WSO2 APIM Analytics(2.6.0) node, which is separated from API Manager, to accept the changed credentials.
Last tought is do I need to connect Analytics to Carbon DB?
You have to add the auth.configs element to the conf/worker/deployment.yaml file, (Please note the password has to be The Base64(UTF-8) encrypted)
auth.configs:
type: 'local'
userManager:
adminRole: admin
userStore:
users:
-
user:
username: admin
password: YWRtaW4=
roles: 1
roles:
-
role:
id: 1
displayName: admin

Publishing WSO2 api statisticcs

I'm following below links for publishing WSO2 statistics. But i'm getting "405 method not allowed" when i login to https://localhost:9443/admin-dashboard. So i'm unable to enable the statistics.
I'm using ws02 API 2.0 and ws02API analytics 2.0.
Could anyone help me on this.
Thanks,
Santosh
#santosh.a
I assume you have configured apim_wso2metrics_db datasource as common database for wso2am and wso2am-analytics. Next,Follow documentation to configure wso2am-analytics with wso2am-api-manager. Configuring APIM Analytics. Most important Step 2: Edit <APIM_HOME>/repository/conf/api-manager.xml and enable analytics and check the DASServerURL and DASRestApiURL, make sure it is pointing to analytics server IP.
Once configuration is enabled. you will be able to see analytics on API Store and API Publisher under statistics sections. You can also go to dashboard by https://<wso2am-analytics>/portal

WSO2 API Manager 2.0.0 and analytics configuraton, Error : "api_request_summary"

I have configured WSO2 API Manager and WSO2 AM Analytics as per following document - https://docs.wso2.com/display/AM200/Configuring+APIM+Analytics
I could see generated analytics data on analytics server carbon admin dashboard under Home>Manage>Interactive Analytics>Data Explorer but when I try Statistics on API Publisher or store it is giving following error in the log of api manager: please advise. thanks.
[2017-01-06 03:56:34,768] ERROR - usage:jag org.wso2.carbon.apimgt.usage.client.exception.APIMgtUsageQueryServiceClientException: Error occurred while querying from JDBC databaseERROR: relation "api_request_summary" does not exist
Position: 34
[2017-01-06 03:56:48,820] ERROR - usage:jag org.wso2.carbon.apimgt.usage.client.exception.APIMgtUsageQueryServiceClientException: Error occurred while querying from JDBC databaseERROR: relation "api_request_summary" does not exist
Thanks #Bhathiya, I was able to figure out. I was having two different database for wso2am_stats_db defined and configured with data-sources for API manager and API Manager analytics, where as both should be configured to same db. Once i changed the data-source (WSO2AM_STATS_DB) of API manager to same database which is configured with analytics. It worked and i was able see all analytics on store and publisher.
got some help from following references:
How to manage billing with WSO 2 AM (2.0.0)