Taking logs with API

Hello. How i can take logs with API graylog?

make a search against the API …