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

web-interface.assets.e508fb3d-4069.9b0ba28697f2df5b4979.js Maven / Gradle / Ivy

There is a newer version: 6.0.6
Show newest version
/*! For license information please see e508fb3d-4069.9b0ba28697f2df5b4979.js.LICENSE.txt */
(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["e508fb3d-4069"],{ssPfecgV:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>T});var n=r("ii0bleBb"),o=r.n(n),a=r("Z7aTuO5B"),i=r("D4SbLiE/"),s=r.n(i),u=r("JnTtTRmZ"),c=r.n(u),l=r("Mygg+ecz"),f=r("G9VqAO1I"),g=r("nXWoSexX"),p=r("4Js8dUPg"),d=r("BSHS2nUH"),h=r("DeVaSktS"),m=r("CfS4XPvw"),v=r("OjsYU8Qj"),y=r("/76yeLGv"),x=r("MPkK9/Jo"),S=s()({displayName:"EditExtractorsPage",propTypes:{params:o().object.isRequired},mixins:[c().connect(v.F),c().connect(y.Q)],getInitialState:function(){return{extractor:void 0,exampleMessage:void 0}},componentDidMount:function(){var t=this,e=this.props.params;y.x.get.triggerPromise(e.inputId),v.e.get.triggerPromise(e.inputId,e.extractorId),x.S.search("relative","gl2_source_input:".concat(e.inputId," OR gl2_source_radio_input:").concat(e.inputId),{relative:3600},void 0,1).then((function(e){e.total_results>0?t.setState({exampleMessage:e.messages[0]}):t.setState({exampleMessage:{}})}))},_isLoading:function(){return!(this.state.input&&this.state.extractor&&this.state.exampleMessage)},_extractorSaved:function(){var t,e=this.state.input,r=this.props.params;t=e.global?h.ZP.global_input_extractors(r.inputId):h.ZP.local_input_extractors(r.nodeId,r.inputId),d.Z.push(t)},render:function(){if(this._isLoading())return a.createElement(l.$j,null);var t=this.state,e=t.extractor,r=t.exampleMessage,n=t.input;return a.createElement(l.$4,{title:"Edit extractor ".concat(e.title)},a.createElement("div",null,a.createElement(l.mr,{title:a.createElement("span",null,"Edit extractor ",a.createElement("em",null,e.title)," for input ",a.createElement("em",null,n.title))},a.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."),a.createElement("span",null,"Find more information about extractors in the"," ",a.createElement(f.Z,{page:p.Z.PAGES.EXTRACTORS,text:"documentation"}),".")),a.createElement(g.Z,{action:"edit",extractor:e,inputId:n.id,exampleMessage:r.fields?r.fields[e.source_field]:void 0,onSave:this._extractorSaved})))}});const T=(0,m.Z)(S)},"MPkK9/Jo":(t,e,r)=>{"use strict";r.d(e,{S:()=>h});var n=r("JnTtTRmZ"),o=r.n(n),a=r("kqAR+wt5"),i=r.n(a),s=r("DD8nok+7"),u=r.n(s),c=r("Dz3KvXEI"),l=r("0wQfx7YJ"),f=r("rkoyttmq"),g=r("OqsMdpSm"),p=r("xc00RsLr"),d=r("v07IjUZn"),h=(0,p.dS)("core.UniversalSearch",(function(){return o().createStore({DEFAULT_LIMIT:150,listenables:[],search:function(t,e,r,n,o,a,s,p,m){var v=h.extractTimeRange(t,r),y=o||this.DEFAULT_LIMIT,x=(a-1)*y,S=l.DC(f.Z.UniversalSearchApiController.search(t,e,v,n,y,x,s,p,m).url);return(0,g.ZP)("GET",S).then((function(t){var e=i().extend({},t);return e.fields=t.fields.map((function(t){return{hash:u()(t),name:t,standard_selected:t===d.ZA||t===d.N1}})),e.messages=e.messages.map((function(t){return c.Z.formatMessageSummary(t)})),e}))}})}));h.extractTimeRange=function(t,e){return"relative"===t?{range:e.range||e.relative}:e}},sOLBHnFn:t=>{var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r{var e,r;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r>>6*(3-a)&63)):r.push("=");return r.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,o=0;n>>6-2*o);return r}},t.exports=r},"wHlq+VTP":t=>{function e(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},"DD8nok+7":(t,e,r)=>{var n,o,a,i,s;n=r("VSirzn3w"),o=r("sOLBHnFn").utf8,a=r("wHlq+VTP"),i=r("sOLBHnFn").bin,(s=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?i.stringToBytes(t):o.stringToBytes(t):a(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var r=n.bytesToWords(t),u=8*t.length,c=1732584193,l=-271733879,f=-1732584194,g=271733878,p=0;p>>24)|4278255360&(r[p]<<24|r[p]>>>8);r[u>>>5]|=128<>>9<<4)]=u;var d=s._ff,h=s._gg,m=s._hh,v=s._ii;for(p=0;p>>0,l=l+x>>>0,f=f+S>>>0,g=g+T>>>0}return n.endian([c,l,f,g])})._ff=function(t,e,r,n,o,a,i){var s=t+(e&r|~e&n)+(o>>>0)+i;return(s<>>32-a)+e},s._gg=function(t,e,r,n,o,a,i){var s=t+(e&n|r&~n)+(o>>>0)+i;return(s<>>32-a)+e},s._hh=function(t,e,r,n,o,a,i){var s=t+(e^r^n)+(o>>>0)+i;return(s<>>32-a)+e},s._ii=function(t,e,r,n,o,a,i){var s=t+(r^(e|~n))+(o>>>0)+i;return(s<>>32-a)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(s(t,e));return e&&e.asBytes?r:e&&e.asString?i.bytesToString(r):n.bytesToHex(r)}}}]);
//# sourceMappingURL=e508fb3d-4069.9b0ba28697f2df5b4979.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy