WSO2 Complex Event Processor is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.
||
Skip to end of metadata
Go to start of metadata

You can insert all the data for a particular event stream to a CSV file including values separated by an appropriate separator (e.g. comma, slash, etc). You need to enter a new dataset for a new event, after a newline character. For example, the following CSV file includes data for four events.

Use either 'true' or 'false' as values for boolean type attributes that are defined in an event stream, when sending events via the event simulator.

199008131245,false,100,temperature,23.45656,7.12324,100.34,23.4545
199008131245,true,101,temperature,23.45656,7.12324,100.34,23.4545
199008131245,false,103,temperature,23.45656,7.12324,100.34,23.4545
199008131245,true,104,temperature,23.45656,7.12324,100.34,23.4545

Follow the steps below to send multiple events to a defined event stream using a CSV file via the event simulator.

  1. Log in to the product management console using the following URL: https://<PRODUCT_HOST>:<PRODUCT_PORT>/carbon/
  2. Click Tools, and then click Event Simulator.
  3. Select the Event Stream Name from the drop down list.
  4. Browse and upload the CSV file. It will be hot deployed in the server. Refresh the page to view the uploaded file.

    The maximum file size that you are allowed to upload is 100MB.

  5. Click Configure, to configure  the CSV  file to specify the field delimiter before simulating the event flow as shown below.
    configuring the uploaded CSV file
  6. Configure the CSV file by entering the field delimiter as shown below.
  7. Click Play, to simulate the event flow. 

    Click the corresponding Delete button to, delete the uploaded CSV file along with its configurations. Other than that you can pause, stop and resume event publishing by using corresponding buttons as well.

  • No labels