web-interface.assets.07ba022f-6490.cd16dcec6b82c6e8dbbc.js Maven / Gradle / Ivy
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["07ba022f-6490"],{"y4tK+AhI":(O,I,t)=>{t.d(I,{Z:()=>F});var e=t("Z7aTuO5B"),v=t("9pdI12pI"),m=t.n(v),a=t("9oVghaOd"),E=t.n(a),o=t("J6y4/h8P"),d=t("ty2gyrHp"),c=t("uZqmR+ju"),P=t("/GOzvPf6"),i=t("E+CaPsQD"),h=t("d4kzUuQm"),x=t("fVisTAey"),g=t("l5XbR7Md"),y=Object.defineProperty,C=(u,l,f)=>l in u?y(u,l,{enumerable:!0,configurable:!0,writable:!0,value:f}):u[l]=f,S=(u,l,f)=>(C(u,typeof l!="symbol"?l+"":l,f),f);const A=o.default.div`
display: flex;
justify-content: space-between;
`,L=u=>u===0?"No failed indexing attempts in the last 24 hours.":e.createElement("strong",null,"There were ",m()(u).format("0,0")," failed indexing attempts in the last 24 hours.");class U extends e.Component{constructor(l){super(l),S(this,"_formatFailuresSummary",()=>e.createElement(c.Alert,{bsStyle:this.state.total===0?"success":"danger"},L(this.state.total),e.createElement(d.J,{to:h.ZP.SYSTEM.INDICES.FAILURES},e.createElement(c.Button,{bsStyle:"info",bsSize:"xs",className:"pull-right"},"Show errors")))),this.state={}}componentDidMount(){const l=E()().subtract(24,"hours");g.X.count(l).then(f=>{this.setState({total:f.count})})}render(){let l;return this.state.total===void 0?l=e.createElement(P.$j,null):l=this._formatFailuresSummary(),e.createElement(c.Row,{className:"content"},e.createElement(c.Col,{md:12},e.createElement(A,null,e.createElement("h2",null,"Indexer failures"),e.createElement(x.eb,{page:i.Z.PAGES.INDEXER_FAILURES,text:"Indexer failures documentation",displayIcon:!0})),e.createElement("p",{className:"description"},"Every message that was not successfully indexed will be logged as an indexer failure."),l))}}const F=U},kEBMGmbZ:(O,I,t)=>{t.d(I,{NM:()=>f,Mn:()=>H,OK:()=>Z,nV:()=>$});var e=t("Z7aTuO5B"),v=t("DUKaTDO2"),m=t("J6y4/h8P"),a=t("0TVxnHwi"),E=t("/GOzvPf6"),o=t("uZqmR+ju"),d=t("fVisTAey"),c=t("E+CaPsQD"),P=t("U1Iufsob"),i=t("eFxcQyPT"),h=t("MdYBRjRJ"),x=t("q2j1bVbz");const g=(0,m.default)(o.Alert)`
margin-top: 10px;
margin-bottom: 5px;
`,C=({error:r})=>e.createElement(g,{bsStyle:"danger"},"Could not retrieve Elasticsearch cluster health. Fetching Elasticsearch cluster health failed: ",r.message),S=m.default.div`
display: flex;
justify-content: space-between;
`,A="indexerCluster.health",L="indexerCluster.name",U=()=>{const r=h.DC(P.Z.IndexerClusterApiController.health().url);return(0,i.vl)("GET",r)},F=()=>{const r=h.DC(P.Z.IndexerClusterApiController.name().url);return(0,i.vl)("GET",r)},u=r=>{const n={refetchInterval:5e3,retry:0,enabled:r},[{data:s,isFetching:M,error:T,isSuccess:D,isRefetching:R},{data:K,isFetching:_,error:w,isSuccess:q,isRefetching:k}]=(0,v.useQueries)({queries:[{queryKey:[A],queryFn:U,...n},{queryKey:[L],queryFn:F,...n}]});return{health:s,name:K,error:T||w,loading:(M||_)&&!R&&!k,isSuccess:D&&q}},l=({minimal:r})=>{const n=(0,x.Z)(),s=(0,a.rq)(n.permissions,"indexercluster:read"),{health:M,name:T,loading:D,error:R,isSuccess:K}=u(s);return s?e.createElement(o.Row,{className:"content"},e.createElement(o.Col,{md:12},!r&&e.createElement(S,null,e.createElement("h2",null,"Elasticsearch cluster"),e.createElement(d.eb,{page:c.Z.PAGES.CONFIGURING_ES,text:"Elasticsearch setup documentation",displayIcon:!0})),K&&e.createElement(H,{health:M,name:T}),D&&e.createElement("p",null,e.createElement(E.$j,null)),R&&e.createElement(C,{error:R}))):null};l.defaultProps={minimal:!1};const f=l;var G=t("ii0bleBb"),p=t.n(G);const b=(0,m.default)(o.Alert)`
margin-top: 10px;
margin-bottom: 5px;
`,B=({health:r,name:n})=>{const s=r.status.toLowerCase(),M=()=>{switch(s){case"green":return"success";case"yellow":return"warning";case"red":return"danger";default:return"success"}},T=(0,e.useMemo)(()=>{const D=`Elasticsearch cluster ${(n==null?void 0:n.name)||""} is ${s}.`;switch(s){case"green":return D;case"yellow":case"red":return e.createElement("strong",null,D);default:return D}},[s,n]);return e.createElement(b,{bsStyle:M()},T," ","Shards:"," ",r.shards.active," active,"," ",r.shards.initializing," initializing,"," ",r.shards.relocating," relocating,"," ",r.shards.unassigned," unassigned,"," ",e.createElement(d.eb,{page:c.Z.PAGES.CLUSTER_STATUS_EXPLAINED,text:"What does this mean?"}))};B.defaultProps={name:void 0},B.propTypes={health:p().object.isRequired,name:p().object};const H=B;var j=t("4IfE3Ihm"),X=Object.defineProperty,z=(r,n,s)=>n in r?X(r,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[n]=s,Y=(r,n,s)=>(z(r,typeof n!="symbol"?n+"":n,s),s);class N extends e.Component{render(){const{failure:n}=this.props;return e.createElement("tr",null,e.createElement("td",null,e.createElement(j.Z,{dateTime:n.timestamp})),e.createElement("td",null,n.index),e.createElement("td",null,n.letter_id),e.createElement("td",null,n.message))}}Y(N,"propTypes",{failure:p().object.isRequired});const Z=N;var ee=t("y4tK+AhI"),J=Object.defineProperty,Q=(r,n,s)=>n in r?J(r,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[n]=s,V=(r,n,s)=>(Q(r,typeof n!="symbol"?n+"":n,s),s);class W extends e.Component{render(){return this.props.failures.length===0?e.createElement(o.Alert,{bsStyle:"success"},e.createElement(E.JO,{name:"check-circle"})," Hurray! There are not any indexer failures."):e.createElement("div",{className:"scrollable-table"},e.createElement(o.Table,{className:"indexer-failures",striped:!0,hover:!0,condensed:!0},e.createElement("thead",null,e.createElement("tr",null,e.createElement("th",{style:{width:200}},"Timestamp"),e.createElement("th",null,"Index"),e.createElement("th",null,"Letter ID"),e.createElement("th",null,"Error message"))),e.createElement("tbody",null,this.props.failures.map(n=>e.createElement(Z,{key:`indexer-failure-${n.letter_id}`,failure:n})))))}}V(W,"propTypes",{failures:p().arrayOf(p().object).isRequired});const $=W},mbovFJPp:(O,I,t)=>{t.r(I),t.d(I,{default:()=>C});var e=t("Z7aTuO5B"),v=t("ty2gyrHp"),m=t("d4kzUuQm"),a=t("uZqmR+ju"),E=t("8wYeYPUw"),o=t("E+CaPsQD"),d=t("/GOzvPf6"),c=t("6Wzh2oiG"),P=t("kEBMGmbZ"),i=t("gToK60tD");const h=()=>{window.confirm("This will cleanup & recalculate all index ranges existing. Do you want to proceed?")&&i.Cd.rebuild()},g=()=>e.createElement(a.ButtonGroup,null,e.createElement(a.DropdownButton,{bsStyle:"info",title:"Maintenance",id:"indices-maintenance-actions",pullRight:!0},e.createElement(a.MenuItem,{eventKey:"1",onClick:h},"Cleanup & recalculate all index ranges"))),C=()=>e.createElement(d.$4,{title:"Indices and Index Sets"},e.createElement(d.mr,{title:"Indices & Index Sets",actions:e.createElement(a.ButtonToolbar,null,e.createElement(v.J,{to:m.ZP.SYSTEM.INDEX_SETS.CREATE},e.createElement(a.Button,{bsStyle:"success"},"Create index set")),e.createElement(g,null)),documentationLink:{title:"Index model documentation",path:o.Z.PAGES.INDEX_MODEL}},e.createElement("span",null,"A Graylog stream write messages to an index set, which is a configuration for retention, sharding, and replication of the stored data. By configuring index sets, you could, for example, have different retention times for certain streams.")),e.createElement(E.Z,null,e.createElement(P.NM,{minimal:!0})),e.createElement(a.Row,{className:"content"},e.createElement(a.Col,{md:12},e.createElement(c.EA,null))))},l5XbR7Md:(O,I,t)=>{t.d(I,{X:()=>P});var e=t("JnTtTRmZ"),v=t.n(e),m=t("9oVghaOd"),a=t.n(m),E=t("MdYBRjRJ"),o=t("U1Iufsob"),d=t("eFxcQyPT"),c=t("IA3Ku5lS");const P=(0,c.dS)("core.IndexerFailures",()=>v().createStore({listenables:[],list(i,h){const x=E.DC(o.Z.IndexerFailuresApiController.list(i,h).url);return(0,d.ZP)("GET",x)},count(i){const x=(i.format?i:a()(i)).format("YYYY-MM-DDTHH:mm:ss.SSS"),g=E.DC(o.Z.IndexerFailuresApiController.count(x).url);return(0,d.ZP)("GET",g)}}))}}]);})();
//# sourceMappingURL=07ba022f-6490.cd16dcec6b82c6e8dbbc.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy