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

Introduction

This sample demonstrates how to publish JSON events via logger transport. This sample does not do any processing on the outgoing event. Events are generated using an input event file and the event simulator.

Prerequisites

Set up the prerequisites required for all samples. 

Building the sample 

Start the WSO2 CEP server with the sample configuration numbered 0051. For instructions, see Starting sample CEP configurations. This sample configuration does the following.

  • Creates a stream with the ID org.wso2.event.sensor.stream_1.0.0
  • Creates an event publisher named logger
  • Load the events stored in the <CEP_HOME>/samples/cep/artifacts/0051/eventsimulatorfiles/events.csv file to the event simulator.

Executing the sample

Follow the steps below to execute the sample.

  1. Log in to the management console.
  2. Click Tools, and then click Event Simulator.
  3. Click Play on the corresponding event stream as shown below, to send the events in the <CEP_HOME>/samples/cep/artifacts/0051/eventsimulatorfiles/events.csv file to the publisher. Here, you can also pause/stop/resume sending events as well by using corresponding buttons. 
    sending events to WSO2 CEP
    You view the JSON events that are published to the CEP server in the logs of it in the CLI as shown below.
    events published via logger
  • No labels