To add a JSON source:
|1.||On the Sources page, drag a JSON source from the left column into the center area.|
|2.||Click the new JSON source. |
The Edit JSON Source page opens.
|3.||By default, StreamLab uses the for the new source. You can also 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 JSON 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 JSON file, such as /var/log/file.JSON
File Pattern. Java Regular Expression used to identify the file. Test the source by clicking the Sample 5 Rows from Source button.
|8.||Click the Go Up arrow to exit the Edit Source page.|
|9.||To parse the newly added source, add a guide using the newly added Line source.|