web-interface.assets.1255d548-7295.efca724585bc3a7821f0.js Maven / Gradle / Ivy
(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-7295"],{sOLBHnFn:x=>{var g={utf8:{stringToBytes:function(i){return g.bin.stringToBytes(unescape(encodeURIComponent(i)))},bytesToString:function(i){return decodeURIComponent(escape(g.bin.bytesToString(i)))}},bin:{stringToBytes:function(i){for(var s=[],u=0;u{(function(){var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(s,u){return s<>>32-u},rotr:function(s,u){return s<<32-u|s>>>u},endian:function(s){if(s.constructor==Number)return i.rotl(s,8)&16711935|i.rotl(s,24)&4278255360;for(var u=0;u0;s--)u.push(Math.floor(Math.random()*256));return u},bytesToWords:function(s){for(var u=[],l=0,v=0;l>>5]|=s[l]<<24-v%32;return u},wordsToBytes:function(s){for(var u=[],l=0;l>>5]>>>24-l%32&255);return u},bytesToHex:function(s){for(var u=[],l=0;l>>4).toString(16)),u.push((s[l]&15).toString(16));return u.join("")},hexToBytes:function(s){for(var u=[],l=0;l>>6*(3-f)&63)):u.push("=");return u.join("")},base64ToBytes:function(s){s=s.replace(/[^A-Z0-9+\/]/ig,"");for(var u=[],l=0,v=0;l>>6-v*2);return u}};x.exports=i})()},MUgCiC8O:(x,g,i)=>{"use strict";i.r(g),i.d(g,{default:()=>h});var s=i("ii0bleBb"),u=i.n(s),l=i("Z7aTuO5B"),v=i("D4SbLiE/"),f=i.n(v),c=i("JnTtTRmZ"),E=i.n(c),o=i("/GOzvPf6"),D=i("HOQujLEr"),e=i("E+CaPsQD"),r=i("d4kzUuQm"),n=i("c9JM82dZ"),t=i("8UzJguce"),a=i("yEuO7gC5"),_=i("Zjqu55uh"),d=i("N6x7vnl1");const M=f()({displayName:"EditExtractorsPage",propTypes:{history:u().object.isRequired,params:u().object.isRequired},mixins:[E().connect(t.F),E().connect(a.Q)],getInitialState(){return{extractor:void 0,exampleMessage:void 0}},componentDidMount(){const{params:P}=this.props;a.x.get.triggerPromise(P.inputId),t.e.get.triggerPromise(P.inputId,P.extractorId),_.S.search("relative",`gl2_source_input:${P.inputId} OR gl2_source_radio_input:${P.inputId}`,{relative:3600},void 0,1).then(O=>{O.total_results>0?this.setState({exampleMessage:O.messages[0]}):this.setState({exampleMessage:{}})})},_isLoading(){return!(this.state.input&&this.state.extractor&&this.state.exampleMessage)},_extractorSaved(){let P;const{input:O}=this.state,{params:T}=this.props;O.global?P=r.ZP.global_input_extractors(T.inputId):P=r.ZP.local_input_extractors(T.nodeId,T.inputId);const{history:p}=this.props;p.push(P)},render(){if(this._isLoading())return l.createElement(o.$j,null);const{extractor:P,exampleMessage:O,input:T}=this.state;return l.createElement(o.$4,{title:`Edit extractor ${P.title}`},l.createElement(o.mr,{title:l.createElement("span",null,"Edit extractor ",l.createElement("em",null,P.title)," for input ",l.createElement("em",null,T.title)),documentationLink:{title:"Extractors documentation",path:e.Z.PAGES.EXTRACTORS}},l.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.")),l.createElement(D.Z,{action:"edit",extractor:P,inputId:T.id,exampleMessage:O.fields?O.fields[P.source_field]:void 0,onSave:this._extractorSaved}))}}),h=(0,d.Z)((0,n.Z)(M))},Zjqu55uh:(x,g,i)=>{"use strict";i.d(g,{S:()=>t});var s=i("JnTtTRmZ"),u=i.n(s),l=i("kqAR+wt5"),v=i.n(l),f=i("DD8nok+7"),c=i.n(f),E=i("mr1MxJ4D"),o=i("MdYBRjRJ"),D=i("U1Iufsob"),e=i("eFxcQyPT"),r=i("IA3Ku5lS"),n=i("nxMFMmDQ");const t=(0,r.dS)("core.UniversalSearch",()=>u().createStore({DEFAULT_LIMIT:150,listenables:[],search(a,_,d,M,h,P,O,T,p){const R=t.extractTimeRange(a,d),m=h||this.DEFAULT_LIMIT,U=(P-1)*m,C=o.DC(D.Z.UniversalSearchApiController.search(a,_,R,M,m,U,O,T,p).url);return(0,e.ZP)("GET",C).then(A=>{const I=v().extend({},A);return I.fields=A.fields.map(B=>({hash:c()(B),name:B,standard_selected:B===n.ZA||B===n.N1})),I.messages=I.messages.map(B=>E.Z.formatMessageSummary(B)),I})}}));t.extractTimeRange=(a,_)=>a==="relative"?{range:_.range||_.relative}:_},"wHlq+VTP":x=>{/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh
* @license MIT
*/x.exports=function(s){return s!=null&&(g(s)||i(s)||!!s._isBuffer)};function g(s){return!!s.constructor&&typeof s.constructor.isBuffer=="function"&&s.constructor.isBuffer(s)}function i(s){return typeof s.readFloatLE=="function"&&typeof s.slice=="function"&&g(s.slice(0,0))}},"DD8nok+7":(x,g,i)=>{(function(){var s=i("VSirzn3w"),u=i("sOLBHnFn").utf8,l=i("wHlq+VTP"),v=i("sOLBHnFn").bin,f=function(c,E){c.constructor==String?E&&E.encoding==="binary"?c=v.stringToBytes(c):c=u.stringToBytes(c):l(c)?c=Array.prototype.slice.call(c,0):!Array.isArray(c)&&c.constructor!==Uint8Array&&(c=c.toString());for(var o=s.bytesToWords(c),D=c.length*8,e=1732584193,r=-271733879,n=-1732584194,t=271733878,a=0;a>>24)&16711935|(o[a]<<24|o[a]>>>8)&4278255360;o[D>>>5]|=128<>>9<<4)+14]=D;for(var _=f._ff,d=f._gg,M=f._hh,h=f._ii,a=0;a>>0,r=r+O>>>0,n=n+T>>>0,t=t+p>>>0}return s.endian([e,r,n,t])};f._ff=function(c,E,o,D,e,r,n){var t=c+(E&o|~E&D)+(e>>>0)+n;return(t<>>32-r)+E},f._gg=function(c,E,o,D,e,r,n){var t=c+(E&D|o&~D)+(e>>>0)+n;return(t<>>32-r)+E},f._hh=function(c,E,o,D,e,r,n){var t=c+(E^o^D)+(e>>>0)+n;return(t<>>32-r)+E},f._ii=function(c,E,o,D,e,r,n){var t=c+(o^(E|~D))+(e>>>0)+n;return(t<>>32-r)+E},f._blocksize=16,f._digestsize=16,x.exports=function(c,E){if(c==null)throw new Error("Illegal argument "+c);var o=s.wordsToBytes(f(c,E));return E&&E.asBytes?o:E&&E.asString?v.bytesToString(o):s.bytesToHex(o)}})()}}]);})();
//# sourceMappingURL=1255d548-7295.efca724585bc3a7821f0.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy