Unable to export large data files graylog api

I am able to download logs from graylog which are of less size but when it comes to large files, the api corrupts the file and only 11 records are coming in the csv. Can anyone help me with this?

Can you offer more detail? What version are you using, for example?