...
To start BAM and to setup databases for statistics data:
- Start BAM. For more information, see Starting the server.
- If you need to change the database that stores statistic data, do the following;
- Create a database.
- Configure the database in
{BAM_HOME}/repository/conf/datasources/master-datasources.xml
asWSO2BAM_DATASOURCE
.
...
Log into the AS management console.
Info Webapp data publishing settings need to be configured separately for the tenants.
On Go to the Configure tab , and click Webapp Data Publishing.
- Select the Enable webapp stats option check box.
Leave the Stream Name, Version, Nick Name, Description as it is.
If you need to change the latter fields, you will have to make some more changes in the tool box and hive script.These are the default values from the bam_webapp_statistics toolbox.
Info Note that if you change any of the details relevant to the toolbox, e.g., stream name, version etc, you must accordingly modify the hive script of the toolbox in BAM. See the step on configuring BAM toolbox for web applications for more details.
- Enter the Receiver URL.
This refers to the Thrift URL. This is normally tcp://{host}:7611. If you need to use SSL for this the URL will be tcps://{host}:7711. If you change the offset of the BAM server to 1, both ports will be incremented by 1 (7612, 7712) - Enter the Cassandra Username.
- Enter the Cassandra Password.
- Click Update to successfully configure the AS for Data publishing to BAM.
...
- Access the BAM management console.
- On the Main menu, under Analytics, click List.
The webapp statistics will be displayed. Execute the webapp statistics or schedule its running sequence.
...