@webapp.route('/log/search')
def search_log():
    filename = request.args['filename']
    query_text = request.args['text']
    session_key = session.get('client_id')

    try:
        data = current_service.search_log(filename, query_text, session_key=session_key)
        return jsonify(data)
    except __HOLE__:
        return 'Could not find log file with given filename', 404
dataset/ETHPy150Open Jahaja/psdash/psdash/web.py/search_log