Configure filebeat such that a log with variable length records can be uploaded to an index

configure filebeat such that a log with variable length records can be uploaded to an index. The index is created by the upload a file feature provided by kibana
regards
shini