puki
puki

Reputation: 33

re-configuring a worklight application with analytics

After redeploying a worklight application, some configuration for analytics got lost and I'm trying to configure worklight with analytics again. The dashboard shows "No data available" for time after the deployment although there are old records displayed for the time before the deployment of the application. So the db was not affected.

I set the wl.analytics.logs.forward property to "true" in worklight.properties; also I set the wl.analytics.url of the db to be something like:

https://myserver:port/analytics/data

The dashboard is on

https://myserver:port/analytics/console

That is the URL for the analytics server.

Although if I put the db URL in a browser I get something like:

Error 404: java.io.FileNotFoundException: SRVE0190E: File not found: /data

Checked SystemOut.log and SystemErr.log (WAS logs) and I did not see errors there.

Does anybody know which is the XML I need to check in order to validate the configuration is OK for analytics? How could I troubleshoot this problem? Are there other logs I could check?

Upvotes: 0

Views: 61

Answers (1)

Chevy Hungerford
Chevy Hungerford

Reputation: 1167

In the list of environment variables you gave I do not see any for username and password. Try to set:

wl.analytics.password=admin

wl.analytics.username=admin

It would be useful to see a wireshark trace, maybe you are not getting 403s. The Analytics data uploader generally has a small bit of protections and you have the option to keep or remove it.

@patbarron is correct about the multiple WAR files though. You need to send your analytics data to the /analytics-service context. The WAR analytics-service is the WAR that handles all the data processing, querying, etc. The other WAR analytics just handles the console UI.

When testing it might be beneficial to lower the wl.analytics.queue and wl.analytics.queue.size, those values are for collecting data on the MobileFirst runtime server. Data is collected at the runtime server then sent to the analytics server. The larger these values are generally, the longer it will take to send. There are good to set for production

Upvotes: 1

Related Questions