All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.1255d548-1917.4b0284b9f6b10798094c.js Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-1917"],{RR0vGaDi:(y,E,t)=>{t.r(E),t.d(E,{default:()=>u});var n=t("Z7aTuO5B"),p=t("ty2gyrHp"),P=t("d4kzUuQm"),O=t("uZqmR+ju"),_=t("jAGDuYSC"),d=t("/GOzvPf6"),g=t("FhPlv95w"),M=t("rbG+3kLS"),m=t("PAFhOglk"),r=t("FKyXQK1p"),D=t("nPaY1a0P"),k=t("/7OuCFNo"),f=t("8fnsnG21");const u=()=>{const h=(0,k.Z)(),{entityIndex:S}=(0,f.o)(r.Z),[o,C]=(0,n.useState)({contentPack:M.Z.builder().build(),appliedParameter:{},selectedEntities:{},fetchedEntities:void 0});(0,n.useEffect)(()=>{r.h.showEntityIndex()},[]);const T=a=>{C(e=>({...e,contentPack:a.contentPack||e.contentPack,selectedEntities:a.selectedEntities||e.selectedEntities,appliedParameter:a.appliedParameter||e.appliedParameter}))},A=()=>{const{contentPack:a}=o;D.K.create.triggerPromise(a.toJSON()).then(()=>{_.Z.success("Content pack imported successfully","Success!"),h.push(P.ZP.SYSTEM.CONTENTPACKS.LIST)},e=>{const c="Error importing content pack, please ensure it is a valid JSON file. Check your Graylog logs for more information.",l="Could not import content pack";let i="";e.additional&&e.additional.body&&e.additional.body.message&&(i=`
${e.additional.body.message}`),_.Z.error(c+i,l)})},v=a=>{const{contentPack:e}=o;r.h.getSelectedEntities(a).then(c=>{const l=e.toBuilder().entities(c.entities.map(s=>m.Z.fromJSON(s,!0,e.parameters))).build(),i=c.entities.map(s=>m.Z.fromJSON(s,!1,e.parameters));C(s=>({...s,contentPack:l,fetchedEntities:i}))})};return n.createElement(d.$4,{title:"Content packs"},n.createElement("span",null,n.createElement(d.mr,{title:"Create content packs",topActions:n.createElement(p.J,{to:P.ZP.SYSTEM.CONTENTPACKS.LIST},n.createElement(O.Button,{bsStyle:"info"},"Content Packs"))},n.createElement("span",null,"Content packs accelerate the set up process for a specific data source. A content pack can include inputs/extractors, streams, and dashboards.",n.createElement("br",null),"Find more content packs in "," "," ",n.createElement("a",{href:"https://marketplace.graylog.org/",target:"_blank",rel:"noopener noreferrer"},"the Graylog Marketplace"),".")),n.createElement(g.Z,{contentPack:o.contentPack,onGetEntities:v,onStateChange:T,fetchedEntities:o.fetchedEntities,selectedEntities:o.selectedEntities,appliedParameter:o.appliedParameter,entityIndex:S,onSave:A})))}}}]);})(); //# sourceMappingURL=1255d548-1917.4b0284b9f6b10798094c.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy