Follow the instructions below to add/edit an analytic script in WSO2 BAM:
...
Adding an analytic script
1. Log on in to the BAM Management Console management console, and click Analytics on the Add menu of the Main menu. That will open the Script Editor window.
...
There are two ways to edit an analytic script as follows:
Editing scripts installed with toolboxes
Follow the instructions below to edit a script that came with a BAM toolbox:
- Navigate to
<BAM_HOME>/repository/deployment/server/bam-toolbox/
directory, and select the.tbox
file you want to edit. - Open the
.tbox
file using any file archiving utility (e.g. 7z). - Edit the script file in the toolbox according to your requirements. Scripts are saved inside the
Analytics
folder in the.tbox
file. - Once the edits are done, archive the main folder again and simply change its extension to
.tbox
. - Save the edited
.tbo
x file in the samebam-toolbox
folder mentioned above and restart the server.
Editing other scripts
...
If you have already installed BAM, you can change analytics scripts that are manually added, using the management console as follows:
...