Get only specific fields from a data file

What format is the datafile in?
CSV? JSON? XML?

Once you know which input filter to apply then you can always remove the data fields that you don't want using the mutate filter inside logstash.

https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html#plugins-filters-mutate-remove_field