Apply grok pattern based on the log file path

@Neelam_Zanvar I think this is the same issue we are discussing in your Kibana visualisation- question.
I will try to answer your questions but am lacking time at the moment. Could you please answer the question in regards to the version of Elastic you are using?