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

web-interface.assets.325e2d4b-3682.de0fc53375cf19ef0e68.js Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
"use strict";(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["325e2d4b-3682"],{r7ShjOZS:(e,t,a)=>{a.r(t),a.d(t,{default:()=>y});var n=a("ii0bleBb"),r=a.n(n),i=a("Z7aTuO5B"),s=a("D4SbLiE/"),l=a.n(s),o=a("JnTtTRmZ"),c=a.n(o),p=a("0zTRKSqx"),d=a("nXWoSexX"),u=a("4Js8dUPg"),m=a("L040zqI6"),x=a("BSHS2nUH"),g=a("DeVaSktS"),h=a("CfS4XPvw"),f=a("2Ob2iJ3u"),S=a("OjsYU8Qj"),_=a("JNjM1tjZ"),b=a("MkxSSB6f");const E=l()({displayName:"CreateExtractorsPage",propTypes:{params:r().object.isRequired,location:r().object.isRequired},mixins:[c().connect(_.Q)],getInitialState(){const{location:e}=this.props,{query:t}=e;return{extractor:S.F.new(t.extractor_type,t.field),exampleMessage:void 0,field:t.field,exampleIndex:t.example_index,exampleId:t.example_id}},componentDidMount(){const{params:e}=this.props;_.x.get.triggerPromise(e.inputId);const{exampleIndex:t,exampleId:a}=this.state;b.q.loadMessage.triggerPromise(t,a).then((e=>this.setState({exampleMessage:e})))},_isLoading(){const{exampleMessage:e,input:t}=this.state;return!(t&&e)},_extractorSaved(){let e;const{params:t}=this.props,{input:a}=this.state;e=a.global?g.ZP.global_input_extractors(t.inputId):g.ZP.local_input_extractors(t.nodeId,t.inputId),x.Z.push(e)},render(){if(this._isLoading())return i.createElement(p.$j,null);const{field:e,exampleMessage:t,extractor:a,input:n}=this.state,r=m.Z.stringify(t.fields[e]);return i.createElement(p.$4,{title:`New extractor for input ${n.title}`},i.createElement("div",null,i.createElement(p.mr,{title:i.createElement("span",null,"New extractor for input ",i.createElement("em",null,n.title)),documentationLink:{title:"Extractors documentation",path:u.Z.PAGES.EXTRACTORS}},i.createElement("span",null,"Extractors are applied on every message that is received by an input. Use them to extract and transform any text data into fields that allow you easy filtering and analysis later on.")),i.createElement(d.Z,{action:"create",extractor:a,inputId:n.id,exampleMessage:r,onSave:this._extractorSaved})))}}),y=(0,h.Z)((0,f.Z)(E))}}]);
//# sourceMappingURL=325e2d4b-3682.de0fc53375cf19ef0e68.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy