web-interface.assets.1255d548-3848.1148bc2aaad4f5308986.js Maven / Gradle / Ivy
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-3848"],{"6NtqCMzy":(j,E,t)=>{t.d(E,{Z:()=>s});var e=t("pmX897Fv"),S=t.n(e),u=t("DjJvgDaP"),O=t.n(u),g=O()(S());g.push([j.id,`.cjdTbV1r05BfMiQpw0HR {
margin-left: 0;
padding-left: 0;
}`,"",{version:3,sources:["webpack://./src/components/enterprise/PluginList.css"],names:[],mappings:"AAAA;EACE,cAAc;EACd,eAAe;AACjB",sourcesContent:[`:local(.enterprisePlugins) {
margin-left: 0;
padding-left: 0;
}`],sourceRoot:""}]),g.locals={enterprisePlugins:"cjdTbV1r05BfMiQpw0HR"};const s=g},Np3ug1OJ:(j,E,t)=>{t.d(E,{O:()=>me});var e=t("Z7aTuO5B"),S=t("ii0bleBb"),u=t.n(S),O=t("An3GrFet"),g=t.n(O),s=t("J6y4/h8P"),p=t("QL8i6bcz");const B=1e3/10;class U{constructor(){this.eventMutex=null}throttle(r,o){this.eventMutex||(this.eventMutex=setTimeout(()=>{this.eventMutex=null,r()},o||B))}}const Z=U;var W=t("zkmy/ViL"),D=t("8fnsnG21"),c=t("uZqmR+ju"),C=t("/GOzvPf6"),Y=t("JnTtTRmZ"),L=t.n(Y),F=t("MdYBRjRJ"),z=t("eFxcQyPT"),x=t("IA3Ku5lS");const I=(0,x.ei)("core.ClusterTraffic",()=>L().createActions({getTraffic:{asyncResult:!0}})),H=(0,x.dS)("core.ClusterTraffic",()=>L().createStore({listenables:[I],traffic:void 0,getInitialState(){return{traffic:this.traffic}},getTraffic(n){const r=(0,z.ZP)("GET",F.DC(`/system/cluster/traffic?days=${n}&daily=false`));return r.then(o=>{this.trigger({traffic:o})}),r}}));var V=t("Vg8s2y9S"),h=t("Pd5CUaTj"),f=t.n(h),ee=t("FMrsY19w"),$=t.n(ee),te=t("7FTHePOw"),J=t.n(te),K=t("9oVghaOd"),v=t.n(K),G=t("TivnP0t5"),Q=t.n(G);const T=n=>{const A=Q()(f()(n,(i,k)=>({ts:k,bytes:i}))).dimension(i=>v()(i.ts).format("YYYY-MM-DD")).group().reduceSum(i=>i.bytes),R=$()(A.all(),i=>v().utc(i.key,"YYYY-MM-DD").toISOString());return J()(R,i=>i.value)},ne={formatTrafficData:T};var X=t("0TVxnHwi"),M=t("q2j1bVbz"),re=t("8OvTct/Z"),b=t("v4GbOr/o"),a=t("9RXNqxkm");const l=({width:n,traffic:r,layoutExtension:o})=>{if(!r)return e.createElement(C.$j,null);const A=[{type:"bar",x:Object.keys(r),y:Object.values(r)}],R={showlegend:!1,margin:{l:60},xaxis:{type:"date",title:{text:"Time"}},hovermode:"x",hoverlabel:{namelength:-1},yaxis:{title:{text:"Bytes"},rangemode:"tozero",hoverformat:".4s",tickformat:"s"},...o};return e.createElement("div",{style:{height:"200px",width:n}},e.createElement(a.Z,{chartData:A,layout:R}))};l.propTypes={traffic:u().object.isRequired,width:u().number.isRequired,layoutExtension:u().object},l.defaultProps={layoutExtension:{}};const P=l,m=[30,90,180,365],N=s.default.div`
margin-bottom: 5px;
.control-label {
padding-top: 0;
}
.graph-days-select {
display: flex;
align-items: baseline;
select {
padding-top: 3px;
height: 28px;
}
}
`,ie=s.default.dl`
margin-bottom: 0;
`,de=s.default.h2(({theme:n})=>(0,s.css)`
margin-bottom: ${n.spacings.sm};
`),ue=s.default.h3(({theme:n})=>(0,s.css)`
margin-bottom: ${n.spacings.sm};
`),le=()=>e.createElement(de,null,"Graylog cluster"),se=()=>{const n=(0,D.o)(V.S);if(!n)return e.createElement(C.$j,null);const{clusterId:r,nodeCount:o}=n;return e.createElement(ie,{className:"system-dl"},e.createElement("dt",null,"Cluster ID:"),e.createElement("dd",null,r||"Not available"),e.createElement("dt",null,"Number of nodes:"),e.createElement("dd",null,o))},ae=()=>{var n;const{traffic:r}=(0,D.o)(H),[o,A]=(0,e.useState)(m[0]),[R,i]=(0,e.useState)(600),k=(0,e.useRef)(new Z),q=(0,e.useRef)(null),fe=p.G.exports("license"),ge=(0,M.Z)(),ve=(0,re.Z)(),ye=d=>{d.preventDefault();const y=Number(d.target.value);A(y),ve(b.A.SYSTEM_OVERVIEW_OUTGOING_TRAFFIC_DAYS_CHANGED,{app_pathname:"system-overview",app_section:"outgoing-traffic",app_action_value:"trafficgraph-days-button",event_details:{value:y}})};(0,e.useEffect)(()=>{I.getTraffic(o)},[o]),(0,e.useEffect)(()=>{const d=()=>{const{clientWidth:_}=q.current;i(_)},y=()=>{k.current.throttle(()=>d())};return window.addEventListener("resize",y),q.current&&d(),()=>{window.removeEventListener("resize",y)}},[]);const Ee=(0,X.rq)(ge.permissions,["licenses:read"])&&((n=fe[0])==null?void 0:n.EnterpriseTrafficGraph)||P;let oe=null,ce=e.createElement(C.$j,null);if(r){const d=g()(r.output,(_,pe)=>_+pe);oe=e.createElement("small",null,"Last ",o," days: ",W.Z.formatBytes(d));const y=T(r.output);ce=e.createElement(Ee,{traffic:y,width:R})}return e.createElement(e.Fragment,null,e.createElement(N,{className:"form-inline graph-days pull-right"},e.createElement(c.Input,{id:"graph-days",type:"select",bsSize:"small",label:"Days",value:o,onChange:ye,formGroupClassName:"graph-days-select"},m.map(d=>e.createElement("option",{key:`option-${d}`,value:d},d)))),e.createElement(ue,{ref:q},"Outgoing traffic ",oe),ce)},w=({layout:n,children:r})=>n==="compact"?e.createElement(c.Row,{className:"content"},e.createElement(c.Col,{md:12},e.createElement(le,null),e.createElement(c.Row,null,e.createElement(c.Col,{md:6},e.createElement(se,null),e.createElement("hr",null),r),e.createElement(c.Col,{md:6},e.createElement(ae,null))))):e.createElement(c.Row,{className:"content"},e.createElement(c.Col,{md:12},e.createElement(le,null),e.createElement(se,null),e.createElement("hr",null),r,e.createElement(c.Row,null,e.createElement(c.Col,{md:12},e.createElement(ae,null)))));w.propTypes={layout:u().oneOf(["default","compact"]),children:u().node},w.defaultProps={layout:"default",children:null};const me=w},QOBe4tCv:(j,E,t)=>{t.r(E),t.d(E,{default:()=>b});var e=t("Z7aTuO5B"),S=t("J6y4/h8P"),u=t("QL8i6bcz"),O=t("8fnsnG21"),g=t("Vg8s2y9S"),s=t("/GOzvPf6"),p=t("uZqmR+ju"),B=t("Np3ug1OJ"),U=t("D4SbLiE/"),Z=t.n(U),W=t("dFpwyWHg"),D=t.n(W),c=t("C2ikvoS0"),C=t.n(c),Y=t("1IntWRSu"),L=t.n(Y),F=t("8nGWeFnd"),z=t.n(F),x=t("TeAcaicX"),I=t.n(x),H=t("eE3+5goe"),V=t.n(H),h=t("6NtqCMzy"),f={};f.styleTagTransform=V(),f.setAttributes=z(),f.insert=L().bind(null,"head"),f.domAPI=C(),f.insertStyleElement=I();var ee=D()(h.Z,f);const $=h.Z&&h.Z.locals?h.Z.locals:void 0,J=Z()({displayName:"PluginList",ENTERPRISE_PLUGINS:{"graylog-plugin-enterprise":"Graylog Plugin Enterprise"},_formatPlugin(a){const l=u.G.get().filter(P=>P.metadata.name===a)[0];return e.createElement("li",{key:a,className:l?"text-success":"text-danger"},e.createElement(s.JO,{name:l?"check-circle":"minus-circle"}),"\xA0",this.ENTERPRISE_PLUGINS[a]," is ",l?"installed":"not installed")},render(){const a=Object.keys(this.ENTERPRISE_PLUGINS).map(l=>this._formatPlugin(l));return e.createElement(e.Fragment,null,e.createElement("p",null,"This is the status of Graylog Enterprise modules in this cluster:"),e.createElement("ul",{className:$.enterprisePlugins},a))}});var K=t("ii0bleBb"),v=t.n(K);const G=({children:a})=>e.createElement("a",{href:"https://www.graylog.org/products/enterprise",rel:"noopener noreferrer",target:"_blank"},a);G.propTypes={children:v().node},G.defaultProps={children:null};const Q=G,T=({href:a,clusterId:l,children:P})=>{let m=a;return l&&(m=`${m}?cluster_id=${l}`),e.createElement(p.ButtonToolbar,null,e.createElement(s.bd,{target:"_blank",rel:"noopener noreferrer",href:m,bsStyle:"primary"},P))};T.propTypes={href:v().string,clusterId:v().string,children:v().node},T.defaultProps={href:"",clusterId:void 0,children:void 0};const ne=T;var X=t("8wYeYPUw");const M=S.default.h2`
margin-bottom: 10px;
`,b=()=>{var a;const l=(0,O.o)(g.S),m=((a=u.G.exports("license")[0])==null?void 0:a.EnterpriseProductLink)||ne;if(!l)return e.createElement(s.$j,null);const{clusterId:N}=l;return e.createElement(s.$4,{title:"Try Graylog Enterprise"},e.createElement("div",null,e.createElement(s.mr,{title:"Try Graylog Enterprise"},e.createElement("span",null,"Graylog Enterprise adds commercial functionality to the Open Source Graylog core. You can learn more about Graylog Enterprise on the ",e.createElement(Q,null,"product page"),".")),e.createElement(B.O,{layout:"compact"},e.createElement(J,null)),e.createElement(X.Z,null,e.createElement(p.Row,{className:"content"},e.createElement(p.Col,{md:6},e.createElement(M,null,"Graylog Operations"),e.createElement("p",null,"Designed to meet the needs of resource-constrained IT Operations and Software Engineering teams, Graylog Operations provides numerous productivity enhancements that will save you thousands of hours per year in collecting and analyzing log data to uncover the root cause of performance, outage, and error issues."),e.createElement(m,{href:"https://go2.graylog.org/request-graylog-operations",clusterId:N},"Request now")),e.createElement(p.Col,{md:6},e.createElement(M,null,"Graylog Security"),e.createElement("p",null,"Extend Graylog Open\u2019s capabilities for detecting, investigating, and responding to cybersecurity threats with security-specific dashboards and alerts, anomaly detection AI/ML engine, integrations with other security tools, SOAR capabilities, and numerous compliance reporting features."),e.createElement(m,{href:"https://go2.graylog.org/request-graylog-security",licenseSubject:"/license/security",clusterId:N},"Request now"))))))}}}]);})();
//# sourceMappingURL=1255d548-3848.1148bc2aaad4f5308986.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy