This documentation is for WSO2 Stream Processor 4.2.0. View documentation for the latest release.

All docs This doc

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. In your terminal, navigate to the <SP_HOME>/bin directory. Then issue one of the following commands to start the dashboard server.
    • On Windowsdashboard.bat --run
    • On Linux/Mac OS: ./
  2. Start a WSO2 SP worker runtime by issuing one of the following commands from the <SP_HOME>/bin directory.
    • On Windowsworker.bat --run
    • On Linux/Mac OS./
  3. Access the Business Rules Manager and log in with your credentials.
  4. If you do not have any business rules that are already created, click Create. If there are existing rules, click to create a new rule.
  5. Click Template to create the business rule from the business template that is already available in the HTTP Analytics solution.
  6. Click on HTTP-Analytics to create your business rule from the HTTP Analytics template group.
    This opens the HTTP-Analytics page. Select the HTTP-Analytics-Processing template in the RuleTemplate field.
    This opens the predefined fields of the HTTP-Analytics-Processing template.
  7. To define the business rule, enter information in the fields displayed as follows:

    Business Rule NameA unique name for the business rule.N/A
    This specifies the source definition via which the HTTP events are received. For more information about sources, see Siddhi Query Guide - Source.type='http', @map(type='json')
    Store for HTTP AnalyticsThis specifies a store definition to store the processed events received via HTTP. For more information about storing data, see Siddhi Query Guide - Store Query.type="rdbms",datasource="HTTP_ANALYTICS_DB"
    If this is set to Yes, the system time is used for aggregation. If this is set to No, the timestamp from the arrived event is used for aggregation.Yes
  8. Click SAVE & DEPLOY