def win_login():
    error = None


    if request.method == 'POST':
        processGuid = request.form['processGuid']
        sysmon_proc = sysmon_process.get_by_processguid(processGuid)
        return render_template('win_login.html', error=error,processes=sysmon_proc)
    else:
        return render_template('win_login.html', error=error)
    return redirect(url_for('show_entries'))
def sysmon():
    error = None


    if request.method == 'POST':
        #VALIDATE
        processGuid = request.form['processGuid']
        sysmon_proc = sysmon_process.get_by_processguid(processGuid)
        hostname = sysmon_proc[0].hostname
        return render_template('sysmon.html', error=error,processes=sysmon_proc,hname=hostname)
    else:
        return render_template('sysmon.html', error=error)