web-interface.assets.1255d548-6323.479b9038e0016738a21b.js Maven / Gradle / Ivy
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-6323"],{KvPuPDfl:(O,u,e)=>{e.r(u),e.d(u,{default:()=>L});var t=e("Z7aTuO5B"),E=e("J6y4/h8P"),r=e("uZqmR+ju"),o=e("/GOzvPf6"),a=e("WE0xQIRH"),_=e("Vg8s2y9S"),m=e("d4kzUuQm"),s=e("8fnsnG21"),i=e("6dLKCZdN"),P=e("/7OuCFNo");function n(d,D){return d.nodes&&d.nodes[D]}const c=(0,E.default)(r.Button)`
margin-left: 5px;
`,l=5e3,L=()=>{const[d,D]=(0,t.useState)(!1),[T,S]=(0,t.useState)(void 0),[B,$]=(0,t.useState)(void 0),{nodeId:M}=(0,i.Z)(),A=(0,P.Z)(),f=(0,s.o)(_.S,C=>n(C,M)),v=(0,t.useCallback)(()=>{D(!0),a.i.systemLogs(M,l).then(C=>{S(C),$(new Date)}),D(!1)},[M]);(0,t.useEffect)(()=>{v()},[v]);const K=()=>{A.push(m.ZP.SYSTEM.NODES.LIST)};if((()=>!f)())return t.createElement(o.$j,null);const{short_node_id:R,hostname:U}=f,W=t.createElement("span",null,"The most recent system logs (limited to ",l,") of node ",R," / ",U,"\xA0",t.createElement("small",null,"Taken at ",t.createElement(o.EK,{dateTime:B}))),h=t.createElement(r.Col,{md:12},t.createElement("div",{className:"pull-left"},t.createElement(r.Button,{onClick:v,disabled:d},t.createElement("small",null,"Reload\xA0"),t.createElement(o.JO,{name:"sync",spin:d})),t.createElement(c,{onClick:K},"Back"))),y=T?t.createElement("pre",{className:"threaddump"},T):t.createElement(o.$j,null);return t.createElement(o.$4,{title:`System Logs of node ${R} / ${U}`},t.createElement("div",null,t.createElement(o.mr,{title:W}),t.createElement(r.Row,{className:"content"},h),t.createElement(r.Row,{className:"content"},t.createElement(r.Col,{md:12},y)),t.createElement(r.Row,{className:"content"},h)))}},WE0xQIRH:(O,u,e)=>{e.d(u,{i:()=>P});var t=e("JnTtTRmZ"),E=e.n(t),r=e("MdYBRjRJ"),o=e("jAGDuYSC"),a=e("eFxcQyPT"),_=e("IA3Ku5lS"),m=e("Vg8s2y9S"),s=e("+pX1WsJ3"),i=e("l8PdZtMi");const P=(0,_.dS)("core.ClusterOverview",()=>E().createStore({sourceUrl:"/cluster",clusterOverview:void 0,init(){this.cluster(),this.listenTo(i.g,this.cluster),this.listenTo(s.t,this.cluster),this.listenTo(m.S,this.cluster)},getInitialState(){return{clusterOverview:this.clusterOverview}},cluster(){const n=(0,a.vl)("GET",r.DC(this.sourceUrl));return n.then(c=>{this.clusterOverview=c,this.trigger({clusterOverview:this.clusterOverview})},c=>o.Z.error(`Getting cluster overview failed: ${c}`,"Could not get cluster overview")),n},threadDump(n){return(0,a.ZP)("GET",r.DC(`${this.sourceUrl}/${n}/threaddump`)).then(l=>l.threaddump,l=>o.Z.error(`Getting thread dump for node '${n}' failed: ${l}`,"Could not get thread dump"))},processbufferDump(n){return(0,a.ZP)("GET",r.DC(`${this.sourceUrl}/${n}/processbufferdump`)).then(l=>l.processbuffer_dump,l=>o.Z.error(`Getting process buffer dump for node '${n}' failed: ${l}`,"Could not get process buffer dump"))},systemLogs(n,c){return(0,a.wR)("GET",r.DC(`${this.sourceUrl}/system/loggers/messages/recent/${n}?limit=${c}`)).then(g=>g,g=>o.Z.error(`Getting system log messages for node '${n}' failed: ${g}`,"Could not get system log messages"))},jvm(n){const c=(0,a.ZP)("GET",r.DC(`${this.sourceUrl}/${n}/jvm`));return c.catch(l=>o.Z.error(`Getting JVM information for node '${n}' failed: ${l}`,"Could not get JVM information")),c}}))},"+pX1WsJ3":(O,u,e)=>{e.d(u,{t:()=>m});var t=e("JnTtTRmZ"),E=e.n(t),r=e("MdYBRjRJ"),o=e("jAGDuYSC"),a=e("eFxcQyPT"),_=e("IA3Ku5lS");const m=(0,_.dS)("core.SystemLoadBalancer",()=>E().createStore({sourceUrl:s=>`/cluster/${s}/lbstatus`,override(s,i){return(0,a.ZP)("PUT",r.DC(`${this.sourceUrl(s)}/override/${i}`)).then(()=>{this.trigger({}),o.Z.success(`Load balancer status successfully changed do '${i}' in node '${s}'`)},P=>{o.Z.error(`Changing load balancer status in '${s}' failed: ${P}`,`Could not change load balancer status to '${i}' in node '${s}'`)})}}))},l8PdZtMi:(O,u,e)=>{e.d(u,{g:()=>m});var t=e("JnTtTRmZ"),E=e.n(t),r=e("MdYBRjRJ"),o=e("jAGDuYSC"),a=e("eFxcQyPT"),_=e("IA3Ku5lS");const m=(0,_.dS)("core.SystemProcessing",()=>E().createStore({sourceUrl:s=>`/cluster/${s}/processing`,pause(s){return(0,a.ZP)("POST",r.DC(`${this.sourceUrl(s)}/pause`)).then(()=>{this.trigger({}),o.Z.success(`Message processing paused successfully in '${s}'`)},i=>{o.Z.error(`Pausing message processing in '${s}' failed: ${i}`,`Could not pause message processing in node '${s}'`)})},resume(s){return(0,a.ZP)("POST",r.DC(`${this.sourceUrl(s)}/resume`)).then(()=>{this.trigger({}),o.Z.success(`Message processing resumed successfully in '${s}'`)},i=>{o.Z.error(`Resuming message processing in '${s}' failed: ${i}`,`Could not resume message processing in node '${s}'`)})}}))}}]);})();
//# sourceMappingURL=1255d548-6323.479b9038e0016738a21b.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy