How to read the data from text file?


I would like to read the data from text file in Grafana Dashboard. Actually my requirement is that I have multiple logging files of my API in text file format. I would like to analyze those files. For example I would like to see how much transactions are failed, and how many exceptions are occurred etc.
My API is a legacy API which is build on .NET.