This sample demonstrates how to receive custom incoming text events via file tail transport. Custom events are events with custom mappings that do 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 DAS 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 <DAS
_HOME>/samples/cep/artifacts/0017 directory. Then execute following command to write data to the file.
The received events are logged in the DAS console as shown below.