Log Metrics with elastic search datasource showing 500 record only

Hi, I am using log metric with elastic as per grafana there is default size is 500 how can i increase more than 500 , i tried with raw document there i can choose the size but i cant format table. So please is there any other way to increase the size more than 500 ?