Graylog internal logs

i need to know if graylog can write a log for every search someone makes inflcuding the user and the search pattrern he used

You could probably use the access log for this: http://docs.graylog.org/en/2.3/pages/securing.html#configuring-the-access-log