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

web-interface.assets.bb8c8232-4987.9c5a5d01e37d325d511b.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([["bb8c8232-4987"],{fqk3nGpU:(b,c,e)=>{e.r(c),e.d(c,{default:()=>y});var t=e("Z7aTuO5B"),a=e("IOI9nV80"),x=e("DUKaTDO2"),r=e("rIl5IEuP"),i=e("kbGtT3aS"),u=e("xAuw/bbM");const p=n=>(0,x.useQuery)(["extractors",n],()=>u.aq.list(n)),d=["id","metrics","creator_user_id","exceptions","converter_exceptions"],f=({id:n})=>{const{data:o,isLoading:h}=p(n);if(h)return t.createElement(a.y$,null);const O={extractors:o.extractors.map(C=>Object.fromEntries(Object.entries(C).filter(([l])=>!d.includes(l)).map(([l,E])=>l==="type"?["extractor_type",E]:[l,E]))),version:i.Ay.getFullVersion()},m=JSON.stringify(O,null,2);return t.createElement(r.Row,{className:"content"},t.createElement(r.Col,{md:12},t.createElement(r.Row,null,t.createElement(r.Col,{md:8},t.createElement("h2",null,"Extractors JSON")),t.createElement(r.Col,{md:4},t.createElement(a.bL,{title:"Copy extractors",className:"pull-right",text:m}))),t.createElement(r.Row,null,t.createElement(r.Col,{md:12},t.createElement(r.Input,{type:"textarea",id:"extractor-export-textarea",rows:30,value:m})))))};var s=e("yEuO7gC5"),g=e("6dLKCZdN"),v=e("8fnsnG21");const y=()=>{const{inputId:n}=(0,g.A)(),{input:o}=(0,v.P)(s.C);return(0,t.useEffect)(()=>{s.j.get.triggerPromise(n)},[n]),o?t.createElement(a.Qc,{title:`Export extractors of ${o.title}`},t.createElement("div",null,t.createElement(a.zY,{title:t.createElement("span",null,"Export extractors of ",t.createElement("em",null,o.title))},t.createElement("span",null,"The extractors of an input can be exported to JSON for importing into other setups or sharing in ",t.createElement("a",{href:"https://marketplace.graylog.org/",rel:"noopener noreferrer",target:"_blank"},"the Graylog Marketplace"),".")),t.createElement(f,{id:o.id}))):t.createElement(a.y$,null)}}}]);})();

//# sourceMappingURL=bb8c8232-4987.9c5a5d01e37d325d511b.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy