...
- Log into the CEP Management Console.
Click on the Tools tab and then click Event Simulator to open the Event Stream Simulator page. A file named
events.csv
containing sample data is displayed in the Send multiple events section as follows. Click Play to start sending events to the CEP from this file.
As a result, the following output is displayed in the CLI.Code Block [2016-02-09 15:14:20,005] INFO {org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter} - Unique ID: cron, Event: meta_timestamp:199008131245, meta_isPowerSaverEnabled:false, meta_sensorId:100, meta_sensorName:temperature, correlation_longitude:23.45656, correlation_latitude:7.12324, triggered_time:1455011060002, humidity:100.34, sensorValue:23.4545 [2016-02-09 15:14:23,399] INFO {org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter} - Unique ID: periodical, Event: meta_timestamp:199008131245, meta_isPowerSaverEnabled:false, meta_sensorId:100, meta_sensorName:temperature, correlation_longitude:23.45656, correlation_latitude:7.12324, triggered_time:1455011063398, humidity:100.34, sensorValue:23.4545 [2016-02-09 15:14:23,399] INFO {org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter} - Unique ID: periodical, Event: meta_timestamp:199008131245, meta_isPowerSaverEnabled:true, meta_sensorId:101, meta_sensorName:temperature, correlation_longitude:23.45656, correlation_latitude:7.12324, triggered_time:1455011063398, humidity:100.34, sensorValue:23.4545 [2016-02-09 15:14:23,400] INFO {org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter} - Unique ID: periodical, Event: meta_timestamp:199008131245, meta_isPowerSaverEnabled:false, meta_sensorId:103, meta_sensorName:temperature, correlation_longitude:23.45656, correlation_latitude:7.12324, triggered_time:1455011063398, humidity:100.34, sensorValue:23.4545 [2016-02-09 15:14:23,400] INFO {org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter} - Unique ID: periodical, Event: meta_timestamp:199008131245, meta_isPowerSaverEnabled:true, meta_sensorId:104, meta_sensorName:temperature, correlation_longitude:23.45656, correlation_latitude:7.12324, triggered_time:1455011063398, humidity:100.34, sensorValue:23.4545 [2016-02-09 15:14:28,399] INFO {org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter} - Unique ID: periodical, Event: meta_timestamp:199008131245, meta_isPowerSaverEnabled:false, meta_sensorId:100, meta_sensorName:temperature, correlation_longitude:23.45656, correlation_latitude:7.12324, triggered_time:1455011068398, humidity:100.34, sensorValue:23.4545 [2016-02-09 15:14:28,399] INFO {org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter} - Unique ID: periodical, Event: meta_timestamp:199008131245, meta_isPowerSaverEnabled:true, meta_sensorId:101, meta_sensorName:temperature, correlation_longitude:23.45656, correlation_latitude:7.12324, triggered_time:1455011068398, humidity:100.34, sensorValue:23.4545 [2016-02-09 15:14:28,399] INFO {org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter} - Unique ID: periodical, Event: meta_timestamp:199008131245, meta_isPowerSaverEnabled:false, meta_sensorId:103, meta_sensorName:temperature, correlation_longitude:23.45656, correlation_latitude:7.12324, triggered_time:1455011068398, humidity:100.34, sensorValue:23.4545 [2016-02-09 15:14:28,400] INFO {org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter} - Unique ID: periodical, Event: meta_timestamp:199008131245, meta_isPowerSaverEnabled:true, meta_sensorId:104, meta_sensorName:temperature, correlation_longitude:23.45656, correlation_latitude:7.12324, triggered_time:1455011068398, humidity:100.34, sensorValue:23.4545 [2016-02-09 15:14:30,004] INFO {org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter} - Unique ID: cron, Event: meta_timestamp:199008131245, meta_isPowerSaverEnabled:true, meta_sensorId:101, meta_sensorName:temperature, correlation_longitude:23.45656, correlation_latitude:7.12324, triggered_time:1455011070003, humidity:100.34, sensorValue:23.4545 [2016-02-09 15:14:30,004] INFO {org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter} - Unique ID: cron, Event: meta_timestamp:199008131245, meta_isPowerSaverEnabled:false, meta_sensorId:103, meta_sensorName:temperature, correlation_longitude:23.45656, correlation_latitude:7.12324, triggered_time:1455011070003, humidity:100.34, sensorValue:23.4545 [2016-02-09 15:14:30,004] INFO {org.wso2.carbon.event.output.adapter.logger.LoggerEventAdapter} - Unique ID: cron, Event:language text The events triggered in the CEP are logged in your CLI as shown in the extract below.