It's hard to be able to help you without knowing the contents of the file you are trying to use for data. Can you paste the first few lines (not the whole file please) here? Then we can see what your problem might be.
Also, you may want to look at Logstash to help you ingest these kinds of files. It was built specifically to handle log files and can index data into Elasticsearch. It will give you a lot more control of the shape of the data which is indexed into Elasticsearch. If you have questions on Logstash after trying it out and reading the linked documentation, checkout the Logstash category of this forum.