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

web-interface.assets.1255d548-7246.f200d699d40bd783cabe.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-7246"],{eOIP7AmL:(L,l,t)=>{t.r(l),t.d(l,{default:()=>C});var c=t("ii0bleBb"),o=t.n(c),s=t("Z7aTuO5B"),d=t("D4SbLiE/"),P=t.n(d),m=t("JnTtTRmZ"),M=t.n(m),i=t("/GOzvPf6"),O=t("HOQujLEr"),D=t("E+CaPsQD"),u=t("TJOheZRu"),E=t("d4kzUuQm"),p=t("c9JM82dZ"),x=t("HCsT5Gmk"),g=t("8UzJguce"),_=t("yEuO7gC5"),I=t("eOHTbxJi"),T=t("N6x7vnl1");const v=P()({displayName:"CreateExtractorsPage",propTypes:{history:o().object.isRequired,params:o().object.isRequired,location:o().object.isRequired},mixins:[M().connect(_.Q)],getInitialState(){const{location:a}=this.props,{query:e}=a;return{extractor:g.F.new(e.extractor_type,e.field),exampleMessage:void 0,field:e.field,exampleIndex:e.example_index,exampleId:e.example_id}},componentDidMount(){const{params:a}=this.props;_.x.get.triggerPromise(a.inputId);const{exampleIndex:e,exampleId:r}=this.state;I.q.loadMessage.triggerPromise(e,r).then(n=>this.setState({exampleMessage:n}))},_isLoading(){const{exampleMessage:a,input:e}=this.state;return!(e&&a)},_extractorSaved(){let a;const{params:e,history:r}=this.props,{input:n}=this.state;n.global?a=E.ZP.global_input_extractors(e.inputId):a=E.ZP.local_input_extractors(e.nodeId,e.inputId),r.push(a)},render(){if(this._isLoading())return s.createElement(i.$j,null);const{field:a,exampleMessage:e,extractor:r,input:n}=this.state,R=u.Z.stringify(e.fields[a]);return s.createElement(i.$4,{title:`New extractor for input ${n.title}`},s.createElement("div",null,s.createElement(i.mr,{title:s.createElement("span",null,"New extractor for input ",s.createElement("em",null,n.title)),documentationLink:{title:"Extractors documentation",path:D.Z.PAGES.EXTRACTORS}},s.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.")),s.createElement(O.Z,{action:"create",extractor:r,inputId:n.id,exampleMessage:R,onSave:this._extractorSaved})))}}),C=(0,T.Z)((0,p.Z)((0,x.Z)(v)))}}]);})();

//# sourceMappingURL=1255d548-7246.f200d699d40bd783cabe.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy