");!a&&t&&(a=t.message||t.statusText||"Unknown Error"),o(a,n,"error")}},clearMessage:n}}(),A=function(e,t,o,n){var a=document.getElementById("BFS"),r={brandContainer:document.getElementById("brand-container"),loading:document.getElementById("curtain-spinner"),loginContainer:document.getElementById("login-container"),emailInput:document.querySelector("#basic-login-form input"),codeInput:document.getElementsByName("code")[0],emailInputForgotPassword:document.querySelector("#forgot-password input"),emailInputForgotSubdomain:document.querySelector("#forgot-subdomain input"),footer:document.getElementsByClassName("footer")[0],app:document.getElementById("bento"),fedWarning:document.getElementById("fed-warning-placeholder")},s={loginForm:document.getElementById("basic-login-form"),mfaForm:document.getElementById("mfa-verification"),forgotPasswordForm:document.getElementById("forgot-password"),forgotSubdomainForm:document.getElementById("forgot-subdomain"),transferSubdomainForm:document.getElementById("transfer-subdomain")},d=S(e,t);function c(){r.loginContainer.classList.add("show-login"),a.style.display="block"}function u(){var e=r.emailInputForgotPassword;e&&(e.value=r.emailInput.value||p("forgotPassword")),c(),f(),g(s.forgotPasswordForm),r.emailInputForgotPassword.focus()}function l(){var e=r.emailInputForgotSubdomain;e&&(e.value=r.emailInput.value||p("forgotSubdomain")),c(),f(),g(s.forgotSubdomainForm),r.emailInputForgotSubdomain.focus()}function m(){c(),f(),g(s.transferSubdomainForm)}function g(e){r.brandContainer.insertAdjacentElement("afterend",e)}function f(){Object.keys(s).forEach(e=>{s[e].remove()})}return{showLoading:function(){i("showLoading"),e.startProgress(),r.loginContainer.classList.remove("show-login"),a.style.display="block"},showLoginForm:function({showSamlLogin:e=!0}={}){var o;performance.mark("LOGIN_VIEW_SHOWN_MARK"),c(),f(),o=!!/[?&]fed=/.test(document.location.href),("service.fed.sumologic.com"===document.location.hostname||o)&&(r.fedWarning.innerHTML='
Use of this System is for Authorized purposes only
- You are accessing a U.S. Government Information System.
- System usage may be monitored, recorded, and subject to audit.
- Unauthorized use of the information system is prohibited and subject to criminal and civil penalties.
- Use of the System indicates consent to monitoring and recording.
Information on or transmitted by this system may contain controlled unclassified information (CUI) and, as such should be considered and treated as non-public information.
'),s.loginForm.setAttribute("autocomplete","off"),g(s.loginForm),r.emailInput.focus(),e&&n(t)},showForgotPassword:u,showForgotSubdomain:l,showTransferSubdomain:m,showMfaForm:function(e,t){function o(){g(s.mfaForm),r.codeInput.focus()}i("response",arguments),c(),f(),d.handleMfa(e,o,t)},swapToApp:function(){d.removeListeners(),o.removeListeners(),window.removeEventListener("hashchange",L),r.loginContainer.classList.remove("show-login"),a.remove(),r.loading.remove()},swapToForms:function(){p("forgotPassword")?u():p("forgotSubdomain")?l():p("transfer-subdomain")?m():L()},removeAllForms:f,setLoginCurtain:function(e){r.loginContainer.classList[e?"add":"remove"]("show-login-curtain")}}}(C,O,P,B.initiateSamlConfig),R=function(e,n){var a=document.getElementById("prefetch-container"),r=document.head,s=document.createElement("div"),d={img:{},script:{async:!1,type:"text/javascript",defer:!0},link:{rel:"stylesheet",type:"text/css",charset:"utf-8"}};function c(e,t,o){e.forEach(e=>{var n=document.createElement(t);n["link"===t?"href":"src"]=e;var a=Object.assign(d[t],o||{});Object.keys(a).forEach(e=>{n[e]=a[e]}),(n&&n.type&&"text/css"===n.type.toLowerCase()?r:s).appendChild(n)})}return{schedulePrefetching:function(){requestAnimationFrame(()=>{c(t,"script",{onload:function(){e.increaseLoadCounter("script"),e.hasFinishLoading()&&!window.shouldDelayLoad&&(i("finished loading...bootstrapping bento"),setTimeout(n.swapToApp,1300))},onerror:function(){n.swapToForms(),O.handleReason("pageLoadError",document.getElementById("login-messages"));for(let e of document.querySelectorAll('button[type="submit"]'))e.disabled=!0}}),c(o,"link",{onload:function(){e.increaseLoadCounter("style"),e.hasFinishLoading()&&!window.shouldDelayLoad&&(i("finished loading...bootstrapping bento"),setTimeout(n.swapToApp,1300))}}),a.appendChild(s)})}}}(C,A),x=function(e,t,o,n){var a=document.querySelector(".signin-button"),s=document.getElementById("login-messages"),c=!1,u=void 0,l=n.getSamlState;function f(){c=!1,e.enableButton(a,"Sign in")}function h(e){var t=!1;if("auth1:redirect_to_other_deployment"===e.errorKey){var o=(e.keyedErrors||[])[0]||{},n=o.values&&o.values.tryAt||"",a=(document.querySelector("input[name=email]").value||"").trim(),r=(document.querySelector("input[name=password]").value||"").trim();if(n){i("Redirecting to ["+n+"] with "+a);var s=d("form",{action:n+"/json/v1/authentication/redirectedloginwithcredentials",method:"POST",target:"_top",style:"display: none;",autocomplete:"off"});s.appendChild(d("input",{name:"email",value:a,type:"hidden"})),s.appendChild(d("input",{name:"password",value:r,type:"hidden"}));var c=p("return_to"),u=function(e){var t=p("provider"),o=e.includes("sumologic")||e.includes("zendesk");return{aha:"aha",salesforce:"salesforce",mindtouch:"mindtouch",talentlms:"talentlms",skilljar:"skilljar"}[t]||(o?"zendesk":"")}(c),l=p("SAMLRequest"),m=p("RelayState");u?(s.appendChild(d("input",{name:"provider",value:u,type:"hidden"})),l&&(s.appendChild(d("input",{name:"SAMLRequest",value:l,type:"hidden"})),s.appendChild(d("input",{name:"RelayState",value:m,type:"hidden"}))),c&&s.appendChild(d("input",{name:"return_to",value:c,type:"hidden"}))):(s.appendChild(d("input",{name:"provider",value:"redirected_login",type:"hidden"})),s.appendChild(d("input",{name:"return_to",value:encodeURIComponent(n+location.href.substring(location.origin.length)),type:"hidden"}))),document.body.appendChild(s),s.submit(),t=!0}}return t}function y(){window.shouldDelayLoad=!1,e.hasFinishLoading()?(window.loadApp&&window.loadApp(),t.swapToApp()):e.startProgress()}function w(){performance.mark("HEIMDALL_LOGIN_VIEW_DONE"),clearTimeout(u),m&&E("ASID",m,3e5),localStorage.setItem("ui.justLoggedIn","true"),j&&j.checkExternalLogin()?j.loadExternalService():q&&q.isCSERedirectEnabled()&&q.getSanitizedRedirectURL()?q.verifyAsidAndRedirect():(r&&(m||(m=b()),window.sumoEarlyApiCalls={auth:g("/json/v1/authentication/user",{method:"GET"}),userSettings:g("/json/v1/userSettings/get",{method:"POST",body:JSON.stringify({userSettingsList:[]})}),accountStatus:g("/api/v1/account/status",{method:"GET"}).then(async({applicationUse:e,canUpdatePlan:t,planExpirationDays:o,planType:n,pricingModel:a})=>{let r,i;if("credits"===a)r=t&&("Trial"===n||"Free"===n),i=t?"SelfService":"RequestUpgrade";else{const{upgradeButton:e,upgradePage:t}=await k();r=e,i=t}return{accountStatusInfo:{applicationUse:e,canUpdatePlan:t,planExpirationDays:o,planType:n,pricingModel:a},upgradeButton:r,upgradePage:i}}),upgradePageKnob:k(),passwordPolicy:g("/api/v1/passwordPolicy",{method:"GET"}).then(e=>(e=>{const t={mustContainSpecialChars:"mustContainSpecial",maxPasswordAgeInDays:"passwordExpiresAfterNDays",minUniquePasswords:"cannotReuseNOldPasswords",accountLockoutThreshold:"numberFailedLoginsAllowed",failedLoginResetDurationInMins:"failedLoginTimeWindowMinutes",accountLockoutDurationInMins:"accountLockoutMinutes"},o=e=>t[e]||e,n={};for(const t in e)n[o(t)]=e[t];return n})(e))}),y())}function S(n){if(m=n.apiSessionId||"")if(localStorage.removeItem("ui.2fa.setup"),n.mfaStatus)if("REQUIRES_VALIDATION"===n.mfaStatus)e.cancelProgress(),t.showMfaForm(n,w);else{localStorage.setItem("ui.2fa.setup","true");try{var a=JSON.stringify({asid:(r=n).apiSessionId,canRememberMfa:r.canRememberMfa,mfa_status:r.mfaStatus,qrUrl:r.qrUrl});localStorage.setItem("ui.2fa.params",a)}catch(e){}w()}else w();else h(n)||(f(),n.keyedErrors=n.keyedErrors.map(e=>{var t=e.key;"auth1:login_failed"===t&&("LOCKDOWN"===l()?t="auth1:login_failed_with_saml_lockdown":"ENABLED"===l()&&(t="auth1:login_failed_with_saml"));var o=Object.assign({},e);return o.key=t,o}),o.handleErrors(n,s));var r}function L(e){f(),o.handleErrors(e,s)}return function e(){!m&&v()&&"visible"===document.visibilityState?w():(clearTimeout(u),u=setTimeout(e,500))}(),{doLogin:function(t){t.preventDefault(),t.stopPropagation(),o.clearMessage(s);var n=(document.querySelector("input[name=email]").value||"").trim(),r=(document.querySelector("input[name=password]").value||"").trim();if(n&&r&&!c){c=!0,e.disableButton(a);var i=(location.href.match(/[?&]customerId=([^]*)/i)||[])[1];g("../json/v1/authentication/loginwithcredentials",{method:"POST",body:JSON.stringify({email:n,password:r,customerId:i})}).then(S).catch(L)}},doFastMfa:function(){try{var e=JSON.parse(localStorage.getItem("mfa.redirected.params"));if(localStorage.removeItem("mfa.redirected.params"),m=e.asid,"REQUIRES_SETUP"===e.mfa_status){var o=JSON.stringify(e);localStorage.setItem("ui.2fa.setup","true"),localStorage.setItem("ui.2fa.params",o),w()}else t.showMfaForm({apiSessionId:m},w)}catch(e){localStorage.removeItem("mfa.redirected.params"),t.swapToForms()}},submitRoute:function(e){document.location.hash="/"+e},handleUrlReasons:function(){var e=p("reason");o.handleReason(e,s,!1)},startProgressOrLoad:y}}(C,A,O,B),M=function(e,t,o){var n=document.querySelector("#forgot-password-form"),a=document.querySelector("#forgot-password-success"),r=document.getElementById("forgot-password-messages"),s=document.getElementById("forgot-password-submit"),d=document.querySelector("#forgot-password input[name=email]");function c(){e.enableButton(s,"Send Link")}function u(e){if(c(),e.success)n.setAttribute("style","display: none;"),a.setAttribute("style","display: block;");else{var t=e.redirectedUrl||"";if(""!==t.trim()){var o=(d&&d.value||"").trim();i("ForgotPassword redirecting to "+t),document.location.assign(t+"/ui/?forgotPassword="+encodeURIComponent(o))}}}function m(e){c();var t=e&&e.errors&&e.errors[0]||{};o.handleErrors(t,r)}function f(t){o.handleErrors("",r);var n=(d&&d.value||t||"").trim();n&&l(n)?(e.disableButton(s),g("../json/v1/authentication/requestpasswordreset?email="+encodeURIComponent(n),{method:"GET"}).then(u).catch(m)):o.handleErrors({message:"Please enter a valid email."},r,!0)}return{sendForgotPasswordLink:f,checkInitialTasks:function(){var e=p("forgotPassword").trim();e&&f(e)}}}(C,0,O),D=function(e,t,o){var n=document.querySelector("#forgot-subdomain-form"),a=document.querySelector("#forgot-subdomain-success"),r=document.getElementById("forgot-subdomain-messages"),i=document.getElementById("forgot-subdomain-submit"),s=document.querySelector("#forgot-subdomain input[name=email]");function d(){e.enableButton(i,"Send Me My Subdomain")}function c(){d(),n.setAttribute("style","display: none;"),a.setAttribute("style","display: block;")}function u(e){d();var t=e&&e.errors&&e.errors[0]||{};o.handleErrors(t,r)}function m(t){o.handleErrors("",r);var n=(s&&s.value||t||"").trim();n&&l(n)?(e.disableButton(i),g("../api/v1/account/subdomain/recover?email="+encodeURIComponent(n),{method:"POST"}).then(c).catch(u)):o.handleErrors({message:"Please enter a valid email."},r,!0)}return{sendForgotSubdomainLink:m,checkInitialTasks:function(){var e=p("forgotSubdomain").trim();e&&m(e)}}}(C,0,O),N=function(e,t){var o=document.getElementById("transfer-subdomain-messages"),n=document.getElementById("transfer-subdomain-submit"),a=document.querySelector("input[name=organization]"),r=document.location,i=document.location.hash.startsWith("#/transfer-subdomain")||p("transfer-subdomain")?"":r.href.substring(r.origin.length);return{verifySubdomainRedirect:function(r){t.handleErrors("",o);var s=(a&&a.value||r||"").trim().toLowerCase();s&&(e.disableButton(n),g(`../api/v1/account/subdomain/${s}/url`,{method:"GET"}).then(e=>{window.location=`${e.url}${i}`}).catch(()=>{t.handleErrors({message:"Please enter a valid organization name"},o),e.enableButton(n,"Continue")}))}}}(C,O),U=function(){var e={default:{end:163298514e4,title:"Check out our recent updates to get more value out of Sumo Logic",buttonText:"What's new",buttonLink:"https://www.sumologic.com/whats-new/",supportTextRight:"",className:"default"},illuminate20b:{start:16021404e5,end:16074108e5,title:"On demand virtual experience",buttonText:"Watch now",buttonLink:"https://www.sumologic.com/illuminate/",supportTextRight:"",className:"illuminate20"},observability:{end:16121628e5,title:"The Sumo Logic Application Observability Solution",buttonText:"Learn More",buttonLink:"https://www.sumologic.com/solutions/operations-intelligence/",supportTextRight:"",className:"observability"},sdo:{end:16121628e5,title:"The Software Development Optimization Solution",buttonText:"Learn More",buttonLink:"https://www.sumologic.com/solutions/software-development-optimization/",supportTextRight:"",className:"sdo"},soc21:{start:16188156e5,end:16233084e5,title:"",buttonText:"Register Now",buttonLink:"https://modernsoc21.sumologicevents.com/",supportTextRight:"",className:"soc21"},illuminate2021:{end:163298514e4,title:"",buttonText:"Learn More",buttonLink:"https://www.sumologic.com/illuminate/?utm_source=product_login&utm_campaign=2021_illuminate",supportTextRight:"",className:"illuminate2021"},gartnerPeerInsights22:{end:164464914e4,title:"Love Sumo Logic? Write a Gartner Peer Insights Review!",description:"If you like our Observability or Cloud SIEM solutions, share it with your peers and receive a FREE 3-month subscription to Gartner Peer Insights Plus!",buttonText:"Write a Review",buttonLink:"https://www.gartner.com/reviews/vendor/write/sumo-logic?utm_content=vendor-gpitp-write&refVal=vendor-gpitp-sumo-logic-1077554&utm_campaign=vendor&utm_source=sumo-logic&utm_medium=web",className:"gartner2022"},awsIsvPartnerOfTheYear22:{end:165086994e4,title:"Unified Application Observability",buttonText:"Learn More",buttonLink:"https://www.sumologic.com/solutions/application-monitoring/",className:"awsIsv2022"},blackHistoryMonth2022:{end:164611794e4,title:"Celebrating Black History Month 2022",className:"bhm2022"},okta2022:{end:165138834e4,title:'Identify and mitigate any potential Okta compromises in your environment with Sumo Logic',buttonText:"Learn more",buttonLink:"https://www.sumologic.com/blog/okta-evolving-situation-am-i-impacted/",supportTextRight:"",className:"okta2022"},gartnerMQ2022:{end:165752274e4,title:"Sumo Logic named a Challenger in 2022 Gartner© Magic Quadrant™ for APM and Observability",buttonText:"Learn more",buttonLink:"https://www.sumologic.com/brief/gartner-apm-and-observability-magic-quadrant/",className:"gartnerMQ2022"}},t=Object.keys(e).map(t=>e[t]).filter(e=>e),o=function(){var o,n=e[(document.location.href.match(/[?&]b=([^&]*)/)||[])[1]];if(!n){var a=t.filter(u),r=a.reduce(l,0),i={banner:void 0,remainingWeight:Math.random()*r};o=a.reduce(m,i).banner||e.default}return n||o}(),n=document.getElementById("footer-animation-container"),a=document.getElementById("footer-title"),r=document.getElementById("footer-description"),i=document.getElementById("footer-cta"),s=document.getElementById("footer-support-element__right"),d=document.getElementById("footer-support-text__right"),c=document.getElementById("copyright-text");function u(e){var t=Date.now();return!(e.start>=t||e.end<=t)}function l(e,t){return e+(t.weight||.5)}function m(e,t){return e.remainingWeight>0&&(e.remainingWeight-=t.weight||.5,e.banner=t),e}return a.innerHTML=o.title||"",r.innerHTML=o.description||"",i.innerHTML=o.buttonText||"",i.setAttribute("href",o.buttonLink||"#"),d.innerHTML=o.supportTextRight||"",s.innerHTML=o.supportElementRight||"",n.classList.add(o.className||""),{updateCurrentYear:function(){c.innerHTML="Copyright 2010 - "+(new Date).getFullYear()+" Sumo Logic Inc."}}}(),F=(I={footer:document.getElementById("footer"),brandContainer:document.getElementById("brand-container"),improvedLogin:document.getElementById("BFS")},T={hds:{name:"Hitachi Data Systems Corporation",logo:"images/app/partners/Hitachi_Logo.png"},esentire:{name:"eSentire Inc."},ackcent:{name:"Ackcent Cybersecurity"},expel:{name:"Expel"},gmsectec:{name:"GM Security Technologies"},securitycentric:{name:"Security Centric"},infosec:{name:"Infosec"},m87:{name:"M87"}},"https://sumologic-test-app-library.s3-us-west-1.amazonaws.com/msp-assets+/logos/","https://sumologic-production-apps-library.s3-us-west-1.amazonaws.com/msp-assets/msp-logos/",{handlePartners:function(){var e=p("logo"),t=T[e];t&&(function(e){I.footer.setAttribute("info",e.name+" is a reseller of Sumo Logic SaaS solution.")}(t),function(e,t){var o=document.createElement("img");o.className="logo partner-logo",o.src=function(e,t){return e.logo||(document.location.host.startsWith("localhost")?"https://sumologic-test-app-library.s3-us-west-1.amazonaws.com/msp-assets+/logos/":"https://sumologic-production-apps-library.s3-us-west-1.amazonaws.com/msp-assets/msp-logos/")+t+"/logo.png"}(e,t),o.alt=e.name,I.brandContainer.appendChild(o)}(t,e),I.improvedLogin.classList.add("partner"))}}),j=function(e,t){var o=p("tenantName"),n=p("redirectUrl"),a=document.getElementById("login-messages"),r=p("integrationName")||function(e){const t={".portal.jask.ai":"cse",".incman.sumologic.com":"cloudSoar"};for(const o in t)if(e.indexOf(o)>-1)return t[o];return""}(n);function i(o="",n=3e3){e.setLoginCurtain(!1),e.showLoginForm({showSamlLogin:!1}),O.handleReason(o,a);for(let e of document.querySelectorAll('button[type="submit"]'))t.disableButton(e);setTimeout(()=>{x.startProgressOrLoad()},n)}function s(e){e.error?i("redirectGenericError"):window.location.assign(e.returnURL)}function d(e){m&&"401"===e.status?i("redirectAuthenticationError",3500):i("redirectNetworkError")}return{checkExternalLogin:function(){return o&&n},loadExternalService:function(){m||(m=b()),m?(window.shouldDelayLoad=!0,e.setLoginCurtain(!0),g("/json/v1/authentication/"+("cse"===r?`generateCseJwt?tenantName=${o}&redirectUrl=${n}`:`generateJwt?integrationName=${r}&tenantName=${o}&redirectUrl=${n}`),{method:"GET"}).then(s).catch(d)):O.handleReason("noAsid",a)}}}(A,C),q=function(e){const t=document.getElementById("login-messages");function o(){return"true"===localStorage.getItem("ui.cse.redirect")}function n(){return function(e){if("string"!=typeof e)return null;const t=e.replace(/[^\x20-\x7E]+/g,"").trim();return!t||function(e){return/^\s*(?:[a-z][a-z\d+\-.]*?:)?\/\//i.test(e)||/^\s*(?:[a-z]+:)/i.test(e)}(t)?null:`${window.location.origin}/${t.replace(/^\/+/g,"")}`}(decodeURIComponent(p("next")))}function a(o=""){e.setLoginCurtain(!1),e.showLoginForm(),O.handleReason(o,t)}function r(e){if(e.error)a("sessionGenericError");else{const e=n();e&&(window.location.href=e)}}function i(e){m&&"string"==typeof e&&"unauthorized"===e.toLowerCase()?(a("sessionInvalidError"),E("ASID","",-1)):a("sessionNetworkError")}return{isCSERedirectEnabled:o,getSanitizedRedirectURL:n,verifyAsidAndRedirect:function(){o()&&(m||(m=b()),m?(window.shouldDelayLoad=!0,e.setLoginCurtain(!0),g("/json/v1/authentication/user",{method:"GET"}).then(r).catch(i)):O.handleReason("noAsid",t))}}}(A);C.shouldShowAnimation||document.getElementById("BFS").classList.add("no-animation");var H=[R.schedulePrefetching,U.updateCurrentYear];if(w()){var z=p("asid"),W=p("mfa_status");if(W){var Y={asid:z,canRememberMfa:p("canRememberMfa"),mfa_status:W};localStorage.setItem("mfa.redirected.params",JSON.stringify(Y))}else E("ASID",z,3e5);const e=p("return_to");(function(e){try{const{protocol:t,origin:o}=new URL(e);return"https:"===t&&(o.endsWith(".sumologic.net")||o.endsWith(".sumologic.com")||o.endsWith(".prada-epd.nl")||o.endsWith(".ephemeral.in"))}catch(e){return!1}})(e)&&document.location.assign(e)}else y?(H.unshift(A.removeAllForms),s.has("asid")&&!v()&&E("ASID",p("asid"),3e5),j.checkExternalLogin()?j.loadExternalService():A.showLoading()):/\/dashboard.html/.test(window.location.href)?(window.shouldDelayLoad=!0,g(`/json/v2/content/item/public/${p("k")}?contentType=dashboard`,{method:"GET"}).then(e=>{e.error?_():(A.removeAllForms(),A.showLoading(),window.shouldDelayLoad=!1,window.loadApp&&window.loadApp())}).catch(()=>{_()})):_();if(window.onload=()=>{H.forEach(e=>{"function"==typeof e&&e()})},window.addEventListener("hashchange",L),window.doLogin=x.doLogin,window.submitRoute=x.submitRoute,window.sendForgotPasswordLink=M.sendForgotPasswordLink,window.sendForgotSubdomainLink=D.sendForgotSubdomainLink,window.verifySubdomainRedirect=N.verifySubdomainRedirect,/localhost|nite/.test(location.host)){var G=new RegExp(["cosmeticsrc.com","tribedone.org","js-cache"].join("|"));new PerformanceObserver(e=>{e.getEntries().forEach(e=>{G.test(e.name)&&function e(t){window.$?$.logWarn(t):setTimeout((function(){e(t)}),1e3)}(JSON.stringify({resource:e.name,jira:"SEC-1118852"}))})}).observe({entryTypes:["resource"]})}}},a={};function r(e){var t=a[e];if(void 0!==t)return t.exports;var o=a[e]={exports:{}};return n[e](o,o.exports,r),o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r(585185)}()}();