This sample demonstrates how to receive custom incoming text events via file tail transport. Custom events are events with custom mappings that does not adhere to the default event formats. For more information on event formats, see Event Formats. This sample does not do any processing on the incoming event. The log event publisher is used to log the received events, and to verify the messages.
Set up the prerequisites required for all samples.
Building the sample
Start the WSO2 CEP server with the sample configuration numbered 0017. For instructions, see Starting sample CEP configurations. This sample configuration creates the following.
- A stream named
- An event receiver named
- An event publisher named
httpLoggerto log the received messages.
Executing the sample
Open another terminal console window and navigate to the <
CEP_HOME>/samples/cep/artifacts/0017 directory. Then execute following command to write data to the file.
CEP console will show the received event as following screenshot.