def METHOD_NAME():
    """
    return a paginated list of audit entries.
    Params can be passed as key-value-pairs.
    :httpparam timelimit: A timelimit, that limits the recent audit entries.
        This param gets overwritten by a policy auditlog_age. Can be 1d, 1m, 1h.
    **Example request**:
    .. sourcecode:: http
       GET /audit?realm=realm1 HTTP/1.1
       Host: example.com
       Accept: application/json
    **Example response**:
    .. sourcecode:: http
       HTTP/1.1 200 OK
       Content-Type: application/json
        {
          "id": 1,
          "jsonrpc": "2.0",
          "result": {
            "status": true,
            "value": [
              {
                 "serial": "....",
                 "missing_line": "..."
              }
            ]
          },
          "version": "privacyIDEA unknown"
        }
    """
    audit_dict = search(current_app.config, request.all_data)
    g.audit_object.log({'success': True})
    return send_result(audit_dict)