def create_graylog_query(query_str, time_frame):
    """Create the parameters

    Args:
        query_str(str): The Graylog query string (lucene syntax)

    Returns:
        dict: Params for requests.get() from graylog API
    """
    query_params = {
        "query": query_str,
        "range": str(time_frame*60*60),
        "fields":"message, build_name",
        "limit": 800
    }
    return query_params