Creating endpoint for logs