esp_subscribe

Connects to an instance of the Event Stream Processor via the Command and Control and Gateway interfaces and subscribes to transaction streaming data. The received records are converted to XML (or optionally delimited format) and written to the standard output.

Syntax

esp_subscribe  -p host:port/workspace/project [OPTION...]

Required Arguments

Options

Examples

to subscribe to two streams named PreprocessorTransactions and DebitMovements, of default/prj1 project running on a cluster manager on localhost:11180, printing all stream data in XML format on standard output:
esp_subscribe -c user:pass -s PreprocessorTransactions,DebitMovements -p localhost:11180/default/prj1
    
To subscribe to two streams named PreprocessorTransactions and DebitMovements, printing all stream data in pipe-separated format on standard output:
esp_subscribe -c user:pass -d "|" -s PreprocessorTransactions,DebitMovements -p localhost:11180/default/prj1
    
To subscribe to one stream named PreprocessorTransactions that has data generated by a server running on a machine named HOST (which has differing byte order than the machine that subscribe is running on) and print all stream data in pipe-separated format on standard output:
esp_subscribe -c user:pass -d "|" -s PreprocessorTransactions -p localhost:11180/default/prj1
    
To subscribe to one stream named baseInput and apply a SQL statement:
esp_subscribe -c user:pass -Q   "select intData_1, 10*intData_1+dblData_1 from baseInput where intData_1 > 20" -p localhost:11180/default/prj1
To subscribe to an error stream, named ErrorStream:
esp_subscribe -p localhost:11180/default/prj1 -Q "select e.*, recordDataToString(e.sourceStreamName, e.errorRecord ) errorRecord from ErrorStream e"