Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
"use strict";(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["e508fb3d-346"],{x4SMQPiy:(e,t,n)=>{n.d(t,{eb:()=>o.Z,sD:()=>p});var r=n("Z7aTuO5B");n("Mr++nPjW"),n("C1/p5D5Z");var o=n("G9VqAO1I"),i=n("ii0bleBb"),a=n.n(i),l=n("EfCpThZW"),c=n("Mygg+ecz"),s=l.default.div.withConfig({displayName:"SmallSupportLink__Description",componentId:"sc-1otjh3-0"})(["display:inline-flex;justify-content:center;align-items:center;"]),u=l.default.div.withConfig({displayName:"SmallSupportLink__IconStack",componentId:"sc-1otjh3-1"})((function(e){var t=e.theme;return(0,l.css)(["position:relative;min-width:2.5em;.fa-stack-1x{color:",";}.fa-stack-2x{color:",";}"],t.colors.global.textAlt,t.colors.global.textDefault)})),f=l.default.p.withConfig({displayName:"SmallSupportLink__Content",componentId:"sc-1otjh3-2"})(["font-weight:bold;margin:0;"]),d=function(e){var t=e.children,n=e.className;return r.createElement(s,{className:"".concat(n," description-tooltips")},r.createElement(u,{className:"fa-stack"},r.createElement(c.JO,{name:"circle",className:"fa-stack-2x"}),r.createElement(c.JO,{name:"lightbulb",className:"fa-stack-1x",type:"regular"})),r.createElement(f,null,t))};d.propTypes={children:a().node.isRequired,className:a().string},d.defaultProps={className:void 0};const p=d;n("J+NuCkAk")},WpaXA2ES:(e,t,n)=>{n.r(t),n.d(t,{default:()=>an});var r=n("Z7aTuO5B"),o=n("Mr++nPjW"),i=n("Mygg+ecz"),a=n("b/6pmtOr"),l=n("EUJYvlA3"),c=n("ii0bleBb"),s=n.n(c),u=n("9oVghaOd"),f=n.n(u),d=n("jAWIXFRS"),p=(n("gtXNkEXl"),n("qFDBKGgh"));function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n=1}function G(e,t){return e>=1||"PT0S"===t}function J(e){return e>=1}function H(e){return e.split(",").map((function(e){return e.trim()})).filter((function(e){return e.length>0}))}var Q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}(c,e);var t,n,a,l=z(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),V(W(t=l.call(this,e)),"_onUpdate",(function(e){return function(n){var r=t.state.config,o=d.Z.clone(r);o[e]=n,t.setState({config:o})}})),V(W(t),"_onRelativeTimeRangeOptionsUpdate",(function(e){t.setState({relativeTimeRangeOptionsUpdate:e})})),V(W(t),"_onSurroundingTimeRangeOptionsUpdate",(function(e){t.setState({surroundingTimeRangeOptionsUpdate:e})})),V(W(t),"_onFilterFieldsUpdate",(function(e){t.setState({surroundingFilterFields:e.target.value})})),V(W(t),"_onAnalysisDisabledFieldsUpdate",(function(e){t.setState({analysisDisabledFields:e.target.value})})),V(W(t),"_onChecked",(function(){var e=t.state,n=e.config,r=e.limitEnabled,o=d.Z.clone(n);o.query_time_range_limit=r?"PT0S":"P30D",t.setState({config:o,limitEnabled:!r})})),V(W(t),"_saveConfig",(function(){var e=t.props.updateConfig,n=t.state,r=n.analysisDisabledFields,o=n.config,i=n.relativeTimeRangeOptionsUpdate,a=n.surroundingTimeRangeOptionsUpdate,l=n.surroundingFilterFields,c=d.Z.clone(o);i&&(c.relative_timerange_options={},i.forEach((function(e){c.relative_timerange_options[e.period]=e.description})),t.setState({relativeTimeRangeOptionsUpdate:void 0})),a&&(c.surrounding_timerange_options={},a.forEach((function(e){c.surrounding_timerange_options[e.period]=e.description})),t.setState({surroundingTimeRangeOptionsUpdate:void 0})),l&&(c.surrounding_filter_fields=H(l),t.setState({surroundingFilterFields:void 0})),r&&(c.analysis_disabled_fields=H(r),t.setState({analysisDisabledFields:void 0})),e(c).then((function(){t._closeModal()}))})),V(W(t),"_resetConfig",(function(){t.setState(t.defaultState)})),V(W(t),"_openModal",(function(){t.searchesConfigModal.current.open()})),V(W(t),"_closeModal",(function(){t.searchesConfigModal.current.close()})),t.searchesConfigModal=(0,r.createRef)();var n=e.config,o=null==n?void 0:n.query_time_range_limit,i=null==n?void 0:n.relative_timerange_options,a=null==n?void 0:n.surrounding_timerange_options,s=null==n?void 0:n.surrounding_filter_fields,u=null==n?void 0:n.analysis_disabled_fields;return t.state={config:{query_time_range_limit:o,relative_timerange_options:i,surrounding_timerange_options:a,surrounding_filter_fields:s,analysis_disabled_fields:u},limitEnabled:f().duration(o).asMilliseconds()>0,relativeTimeRangeOptionsUpdate:void 0,surroundingTimeRangeOptionsUpdate:void 0},t.defaultState=function(e){for(var t=1;t=e.processor_order.length},_noActiveProcessorWarning:function(){return this._hasNoActiveProcessor()?r.createElement(o.bZ,{bsStyle:"danger"},r.createElement("strong",null,"ERROR:")," No active message processor!"):null},_summary:function(){var e=this.state.config;return e.processor_order.map((function(t,n){var o=e.disabled_processors.filter((function(e){return e===t.class_name})).length>0?"disabled":"active";return r.createElement("tr",{key:n},r.createElement("td",null,n+1),r.createElement("td",null,t.name),r.createElement("td",null,o))}))},_sortableItems:function(){return this.state.config.processor_order.map((function(e){return{id:e.class_name,title:e.name}}))},_statusForm:function(){var e=this,t=this.state.config;return d.Z.clone(t.processor_order).sort((function(e,t){return ne()(e.name,t.name)})).map((function(n,o){var i=t.disabled_processors.filter((function(e){return e===n.class_name})).length<1;return r.createElement("tr",{key:o},r.createElement("td",null,n.name),r.createElement("td",null,r.createElement("input",{ref:function(t){e.inputs[n.class_name]=t},type:"checkbox",checked:i,onChange:e._toggleStatus(n.class_name)})))}))},render:function(){var e=this;return r.createElement("div",null,r.createElement("h2",null,"Message Processors Configuration"),r.createElement("p",null,"The following message processors are executed in order. Disabled processors will be skipped."),r.createElement(o.iA,{striped:!0,bordered:!0,condensed:!0,className:"top-margin"},r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",null,"#"),r.createElement("th",null,"Processor"),r.createElement("th",null,"Status"))),r.createElement("tbody",null,this._summary())),r.createElement(i.AE,{permissions:"clusterconfigentry:edit"},r.createElement(o.zx,{bsStyle:"info",bsSize:"xs",onClick:this._openModal},"Update")),r.createElement(re.Z,{ref:function(t){e.configModal=t},title:"Update Message Processors Configuration",onSubmitForm:this._saveConfig,onModalClose:this._resetConfig,submitButtonText:"Save"},r.createElement("h3",null,"Order"),r.createElement("p",null,"Use drag and drop to change the execution order of the message processors."),r.createElement(i.cm,{items:this._sortableItems(),onMoveItem:this._updateSorting,displayOverlayInPortal:!0}),r.createElement("h3",null,"Status"),r.createElement("p",null,"Change the checkboxes to change the status of a message processor."),r.createElement(o.iA,{striped:!0,bordered:!0,condensed:!0,className:"top-margin"},r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",null,"Processor"),r.createElement("th",null,"Enabled"))),r.createElement("tbody",null,this._statusForm())),this._noActiveProcessorWarning()))}});var ie=n("YyiN4DLW"),ae=n("L040zqI6");function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}var ce=ee()({displayName:"SidecarConfig",propTypes:{config:s().shape({sidecar_expiration_threshold:s().string,sidecar_inactive_threshold:s().string,sidecar_update_interval:s().string,sidecar_send_status:s().bool,sidecar_configuration_override:s().bool}),updateConfig:s().func.isRequired},getDefaultProps:function(){return{config:{sidecar_expiration_threshold:"P14D",sidecar_inactive_threshold:"PT1M",sidecar_update_interval:"PT30S",sidecar_send_status:!0,sidecar_configuration_override:!1}}},getInitialState:function(){return{config:d.Z.clone(this.props.config)}},UNSAFE_componentWillReceiveProps:function(e){this.setState({config:d.Z.clone(e.config)})},_openModal:function(){this.refs.configModal.open()},_closeModal:function(){this.refs.configModal.close()},_resetConfig:function(){this.setState(this.getInitialState())},_saveConfig:function(){var e=this;this.props.updateConfig(this.state.config).then((function(){e._closeModal()}))},_onUpdate:function(e){var t=this;return function(n){var r=d.Z.clone(t.state.config);"object"===le(n)?r[e]=ie.ZP.getValueFromInput(n.target):r[e]=n,t.setState({config:r})}},_inactiveThresholdValidator:function(e){return e>=1e3},_expirationThresholdValidator:function(e){return e>=6e4},_updateIntervalValidator:function(e){var t=this._durationMilliseconds(this.state.config.sidecar_inactive_threshold),n=this._durationMilliseconds(this.state.config.sidecar_expiration_threshold);return e>=1e3&&e=1e3},_notificationsRetryValidator:function(e){return e>=0},_onBacklogUpdate:function(e){var t=ie.ZP.getValueFromInput(e.target);this._propagateChanges("events_notification_default_backlog",t)},_onCatchUpWindowUpdate:function(e,t,n){if(0===this.state.config.events_catchup_window&&n)this._propagateChanges("events_catchup_window",he);else{var r=n?f().duration(e,t).asMilliseconds():0;this._propagateChanges("events_catchup_window",r)}},_titleCase:function(e){return fe().capitalize(e)},render:function(){var e=this,t=this.state.config,n=(0,pe.l)(t.events_search_timeout,me),a=(0,pe.l)(t.events_notification_retry_period,me),l=(0,pe.l)(t.events_catchup_window,me),c=t.events_notification_default_backlog;return r.createElement("div",null,r.createElement("h2",null,"Events System"),r.createElement("dl",{className:"deflist"},r.createElement("dt",null,"Search Timeout:"),r.createElement("dd",null,n.duration," ",this._titleCase(n.unit)),r.createElement("dt",null,"Notification Retry:"),r.createElement("dd",null,a.duration," ",this._titleCase(a.unit)),r.createElement("dt",null,"Notification Backlog:"),r.createElement("dd",null,c),r.createElement("dt",null,"Catch Up Window:"),r.createElement("dd",null,l.duration>0?l.duration:"disabled"," ",l.duration>0?this._titleCase(l.unit):"")),r.createElement(i.AE,{permissions:"clusterconfigentry:edit"},r.createElement(o.zx,{bsStyle:"info",bsSize:"xs",onClick:this._openModal},"Update")),r.createElement(o.K$,{ref:function(t){e.modal=t},title:"Update Events System Configuration",onSubmitForm:this._saveConfig,onModalClose:this._resetConfig,submitButtonText:"Save"},r.createElement("fieldset",null,r.createElement(o.cw,{controlId:"search-timeout-field"},r.createElement(i.AX,{label:"Search Timeout",update:this._onSearchTimeoutUpdate,value:n.duration,unit:n.unit,units:me,required:!0}),r.createElement(o.Qb,null,"Amount of time after which an Elasticsearch query is interrupted. (Minimum timeout is 1s)")),r.createElement(o.cw,{controlId:"notifications-retry-field"},r.createElement(i.AX,{label:"Notifications retry period",update:this._onRetryPeriodUpdate,value:a.duration,unit:a.unit,units:me,required:!0}),r.createElement(o.Qb,null,"Amount of time after which a failed notification is resend. (Minimum is 0 or immediate retry)")),r.createElement(de.Z,{id:"notification-backlog-field",type:"number",onChange:this._onBacklogUpdate,label:"Default notifications backlog size",help:"Amount of log messages included in a notification by default.",value:c,min:"0",required:!0}),r.createElement(o.cw,{controlId:"catch-up-window"},r.createElement(i.AX,{label:"Catch up window size",update:this._onCatchUpWindowUpdate,value:l.duration,unit:l.unit,enabled:l.duration>0,units:me}),r.createElement(o.Qb,null,'If Event processor execution is behind schedule, queries on older data will be run with this window size to speed up processing. (If the "search within the last" setting of an event definiton is greater, this setting will be ignored)')))))}});const ye=ge;var be=n("xuAwTH+n");function ve(e){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ve(e)}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n div{margin-bottom:30px;}"]);var Qe=n("5LMarVJQ"),Ye=n("6WrsI6bg"),Ke=n("GMFq2nBB");function et(){return et=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||It(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(e,t){if(e){if("string"==typeof e)return At(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(e,t):void 0}}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Nt(e){return function(e){if(Array.isArray(e))return qt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&r.createElement(o.X2,{className:"content"},r.createElement(o.JX,{md:12},r.createElement("h2",null,"Plugins"),r.createElement("p",{className:"description"},"Configuration for installed plugins."),r.createElement("hr",{className:"separator"}),r.createElement("div",{className:"top-margin"},r.createElement(at,{configuration:s,systemConfigs:c}))))))}}}]);
//# sourceMappingURL=e508fb3d-346.830751369a2b78189848.js.map