esp_kdbout

Feeds streaming data from the Event Stream Processor to a KDB database table.

By default, the adapter matches the field names (in a case-insensitive manner) to determine the mapping between and the Event Stream Processor stream and the KDB table. You can also explicitly specify the mapping.

Syntax

esp_kdbout -H [kdbhost:]kdbport -p [host:]port -q source -s table -c user[:password] [OPTION...]

Required Arguments

Options

Examples

To subscribe to the SpTrades stream of project default/prj1 in the Event Stream Processor on the server myserver, where the cluster manager is on port 1221, and stream the data out to KdbTrades in the KDB database on the server outputserver, where KDB is listening on port 9200, use:
esp_kdbout -p myserver:1221/default/prj1 -H outputserver:9200 -q SpTrades -s KdbTrades
    
To populate fields XXX and YYY in a KDB table may with NULL (because they have no corresponding data in the Event Stream Processor), use:
esp_kdbout -p myserver:1221/default/prj1 -H outputserver:9200 -q SpTrades -s KdbTrades -I XXX,YYY
    
Sometimes a table in KDB may compute fields (for example, XXX and YYY) which should not be specified in the data update message. Doing so usually results in a length error in the database. To omit these fields from the update message altogether, use:
esp_kdbout -p myserver:1221/default/prj1 -H outputserver:9200 -q SpTrades -s KdbTrades -O XXX,YYY