The latest version for DAS is WSO2 Data Analytics Server 3.1.0. View documentation for the latest release.
WSO2 Data Analytics Server is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.

All docs This doc
Skip to end of metadata
Go to start of metadata


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 fileReceiver.
  • An event publisher named httpLogger to 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.

echo "timestamp:19900813115534,isPowerSaverEnabled:false,sensorId:103,sensorName:temperature,longitude:20.44345,latitude:5.443435,humidity:8.9,sensorValue:1.23434" >> fileReceiver.txt 

The received events are logged in the DAS console as shown below.

  • No labels