esp_upload

Records binary records from the standard input and forwards them to a running instance of the Event Stream Processor via the Gateway interface.

The format of the data is zero or more occurrences of <Stream Handle><Raw Binary Record>. <Stream Handle> is an uint32_t indicating the destination stream for the record. This tool is typically used at the end of a pipeline with the esp_convert tool.

Syntax

esp_upload -p [<host>:]<port>/workspace-name/project-name -c user[:password] [OPTION...]

Required Arguments

Options

Examples

For a description of the format of the CSV and XML input files, see esp_convert.

To convert all XML records in file foo.xml to native binary format and post them to a running instance of the Event Stream Processor:
cat foo.xml | esp_convert -p localhost:11180/default/prj1 | esp_upload -c user:pass -p localhost:11180/default/prj1
    
To convert all comma-separated records in the foo.csv file to native binary format and post them to a running instance of the Event Stream Processor:
cat foo.csv | esp_convert -d "," -p localhost:11180/default/prj1 | esp_upload -c user:pass -p localhost:11180/default/prj1
    
To convert all XML records in the foo.xml file to native binary format and post them to a running instance of the Event Stream Processor on a target machine HOST which has a differing byte order than the machine on which esp_upload is running:
cat foo.xml | esp_convert -b -p localhost:11180/default/prj1 | esp_upload -c user:pass -b -p localhost:11180/default/prj1