How could i fetch data from log files of a device

Hi Team,

I want to fetch data of log files of a device. I did RnD/search for rest api, haven’t got.i think so its not available. Could you please help me to do this task. if possible please suggest another way.