web-interface.assets.bb8c8232-5630.1b72dd58b20df67d9040.js Maven / Gradle / Ivy
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["bb8c8232-5630"],{"y4tK+AhI":(T,f,t)=>{t.d(f,{A:()=>F});var e=t("Z7aTuO5B"),g=t("9pdI12pI"),m=t.n(g),a=t("9oVghaOd"),E=t.n(a),o=t("J6y4/h8P"),d=t("ty2gyrHp"),c=t("rIl5IEuP"),x=t("IOI9nV80"),i=t("E+CaPsQD"),I=t("d4kzUuQm"),P=t("fVisTAey"),p=t("l5XbR7Md"),O=Object.defineProperty,A=(u,s,h)=>s in u?O(u,s,{enumerable:!0,configurable:!0,writable:!0,value:h}):u[s]=h,R=(u,s,h)=>(A(u,typeof s!="symbol"?s+"":s,h),h);const S=o.default.div`
display: flex;
justify-content: space-between;
`,U=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 L extends e.Component{constructor(s){super(s),R(this,"_formatFailuresSummary",()=>e.createElement(c.Alert,{bsStyle:this.state.total===0?"success":"danger"},U(this.state.total),e.createElement(d.m,{to:I.Ay.SYSTEM.INDICES.FAILURES},e.createElement(c.Button,{bsStyle:"info",bsSize:"xs",className:"pull-right"},"Show errors")))),this.state={}}componentDidMount(){const s=E()().subtract(24,"hours");p.a.count(s).then(h=>{this.setState({total:h.count})})}render(){let s;return this.state.total===void 0?s=e.createElement(x.y$,null):s=this._formatFailuresSummary(),e.createElement(c.Row,{className:"content"},e.createElement(c.Col,{md:12},e.createElement(S,null,e.createElement("h2",null,"Indexer failures"),e.createElement(P.$,{page:i.A.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."),s))}}const F=L},kEBMGmbZ:(T,f,t)=>{t.d(f,{gp:()=>h,g7:()=>K,O5:()=>W,ht:()=>J});var e=t("Z7aTuO5B"),g=t("DUKaTDO2"),m=t("J6y4/h8P"),a=t("yGRmSjYM"),E=t("IOI9nV80"),o=t("rIl5IEuP"),d=t("fVisTAey"),c=t("E+CaPsQD"),x=t("U1Iufsob"),i=t("eFxcQyPT"),I=t("MdYBRjRJ"),P=t("q2j1bVbz");const p=(0,m.default)(o.Alert)`
margin-top: 10px;
margin-bottom: 5px;
`,A=({error:r})=>e.createElement(p,{bsStyle:"danger"},"Could not retrieve Elasticsearch cluster health. Fetching Elasticsearch cluster health failed: ",r.message),R=m.default.div`
display: flex;
justify-content: space-between;
`,S="indexerCluster.health",U="indexerCluster.name",L=()=>{const r=I.H3(x.A.IndexerClusterApiController.health().url);return(0,i.Ur)("GET",r)},F=()=>{const r=I.H3(x.A.IndexerClusterApiController.name().url);return(0,i.Ur)("GET",r)},u=r=>{const n={refetchInterval:5e3,retry:0,enabled:r},[{data:l,isFetching:D,error:y,isSuccess:v,isRefetching:M},{data:H,isFetching:_,error:w,isSuccess:q,isRefetching:k}]=(0,g.useQueries)({queries:[{queryKey:[S],queryFn:L,...n},{queryKey:[U],queryFn:F,...n}]});return{health:l,name:H,error:y||w,loading:(D||_)&&!M&&!k,isSuccess:v&&q}},s=({minimal:r})=>{const n=(0,P.A)(),l=(0,a.Nn)(n.permissions,"indexercluster:read"),{health:D,name:y,loading:v,error:M,isSuccess:H}=u(l);return l?e.createElement(o.Row,{className:"content"},e.createElement(o.Col,{md:12},!r&&e.createElement(R,null,e.createElement("h2",null,"Elasticsearch cluster"),e.createElement(d.$,{page:c.A.PAGES.CONFIGURING_ES,text:"Elasticsearch setup documentation",displayIcon:!0})),H&&e.createElement(K,{health:D,name:y}),v&&e.createElement("p",null,e.createElement(E.y$,null)),M&&e.createElement(A,{error:M}))):null};s.defaultProps={minimal:!1};const h=s;var b=t("ii0bleBb"),C=t.n(b);const Y=(0,m.default)(o.Alert)`
margin-top: 10px;
margin-bottom: 5px;
`,B=({health:r,name:n})=>{const l=r.status.toLowerCase(),D=()=>{switch(l){case"green":return"success";case"yellow":return"warning";case"red":return"danger";default:return"success"}},y=(0,e.useMemo)(()=>{const v=`Elasticsearch cluster ${(n==null?void 0:n.name)||""} is ${l}.`;switch(l){case"green":return v;case"yellow":case"red":return e.createElement("strong",null,v);default:return v}},[l,n]);return e.createElement(Y,{bsStyle:D()},y," ","Shards:"," ",r.shards.active," active,"," ",r.shards.initializing," initializing,"," ",r.shards.relocating," relocating,"," ",r.shards.unassigned," unassigned,"," ",e.createElement(d.$,{page:c.A.PAGES.CLUSTER_STATUS_EXPLAINED,text:"What does this mean?"}))};B.defaultProps={name:void 0},B.propTypes={health:C().object.isRequired,name:C().object};const K=B;var Q=t("4IfE3Ihm"),X=Object.defineProperty,V=(r,n,l)=>n in r?X(r,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[n]=l,$=(r,n,l)=>(V(r,typeof n!="symbol"?n+"":n,l),l);class N extends e.Component{render(){const{failure:n}=this.props;return e.createElement("tr",null,e.createElement("td",null,e.createElement(Q.A,{dateTime:n.timestamp})),e.createElement("td",null,n.index),e.createElement("td",null,n.letter_id),e.createElement("td",null,n.message))}}$(N,"propTypes",{failure:C().object.isRequired});const W=N;var ee=t("y4tK+AhI"),j=Object.defineProperty,z=(r,n,l)=>n in r?j(r,n,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[n]=l,Z=(r,n,l)=>(z(r,typeof n!="symbol"?n+"":n,l),l);class G extends e.Component{render(){return this.props.failures.length===0?e.createElement(o.Alert,{bsStyle:"success"},e.createElement(E.In,{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(W,{key:`indexer-failure-${n.letter_id}`,failure:n})))))}}Z(G,"propTypes",{failures:C().arrayOf(C().object).isRequired});const J=G},mbovFJPp:(T,f,t)=>{t.r(f),t.d(f,{default:()=>A});var e=t("Z7aTuO5B"),g=t("ty2gyrHp"),m=t("d4kzUuQm"),a=t("rIl5IEuP"),E=t("8wYeYPUw"),o=t("E+CaPsQD"),d=t("IOI9nV80"),c=t("Zr9SSA9t"),x=t("kEBMGmbZ"),i=t("xAuw/bbM");const I=()=>{window.confirm("This will cleanup & recalculate all index ranges existing. Do you want to proceed?")&&i.Qo.rebuild()},p=()=>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:I},"Cleanup & recalculate all index ranges"))),A=()=>e.createElement(d.Qc,{title:"Indices and Index Sets"},e.createElement(c.TC,null),e.createElement(d.zY,{title:"Indices & Index Sets",actions:e.createElement(a.ButtonToolbar,null,e.createElement(g.m,{to:m.Ay.SYSTEM.INDEX_SETS.CREATE},e.createElement(a.Button,{bsStyle:"success"},"Create index set")),e.createElement(p,null)),documentationLink:{title:"Index model documentation",path:o.A.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.A,null,e.createElement(x.gp,{minimal:!0})),e.createElement(a.Row,{className:"content"},e.createElement(a.Col,{md:12},e.createElement(c.xO,null))))},l5XbR7Md:(T,f,t)=>{t.d(f,{a:()=>x});var e=t("JnTtTRmZ"),g=t.n(e),m=t("9oVghaOd"),a=t.n(m),E=t("MdYBRjRJ"),o=t("U1Iufsob"),d=t("eFxcQyPT"),c=t("IA3Ku5lS");const x=(0,c.Bv)("core.IndexerFailures",()=>g().createStore({listenables:[],list(i,I){const P=E.H3(o.A.IndexerFailuresApiController.list(i,I).url);return(0,d.Ay)("GET",P)},count(i){const P=(i.format?i:a()(i)).format("YYYY-MM-DDTHH:mm:ss.SSS"),p=E.H3(o.A.IndexerFailuresApiController.count(P).url);return(0,d.Ay)("GET",p)}}))}}]);})();
//# sourceMappingURL=bb8c8232-5630.1b72dd58b20df67d9040.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy