StreamLab lets you access files in CSV (Comma Separated Value) format over the file system, network socket, AMQP, or Kafka.
To add a CSV source:
|1.||On the Sources page, drag a CSV source from the left column into the center area.|
|2.||Click the new CSV source. |
The Edit CSV Source page opens.
|3.||Select a schema from the pulldown menu on the left.|
|4.||Select a stream from the pulldown menu on the right. This is the stream into which lines from the CSV source will be read.|
|5.||Select File System, Socket, AMQP 0.9.1, AMQP 1.0, or Kafka.|
Directory. The file system path to the CSV file, such as /var/log/file.CSV
File Pattern. Java Regular Expression used to identify the file. Test the source by clicking the Sample 5 Rows from Source button.
|9.||Click the Go Up arrow to exit the Edit Source page.|