Filebeat cannot able to index into elasticsearch

Yes Ruflin, i need to know how beats creates the indices.

Also we need to know if logs path changed in filebeat configuration, how long the data will be indexed and can be able to view in kibana?