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

web-interface.assets.1255d548-2507.c880aec23359f5fe633d.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"1255d548-2507.c880aec23359f5fe633d.js","mappings":"0NAGIA,EAA0B,IAA4B,GAAqC,EAE/FA,EAAwB,KAAK,CAACC,EAAO,GAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAyBtC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,gEAAgE,EAAE,MAAQ,CAAC,EAAE,SAAW,qNAAqN,eAAiB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAoc,EAAE,WAAa,EAAE,CAAC,CAAC,EAEpzBD,EAAwB,OAAS,CAChC,WAAc,uBACd,gBAAmB,uBACnB,UAAa,uBACb,eAAkB,sBACnB,EACA,QAAeA,C,0ECRf,QANqC,CAAyDE,EAAcC,IAAyC,SAA0BC,EAAY,CACzL,MAAMC,KAAS,MAA4BF,GAAA,YAAAA,EAAK,SAAS,EAEzD,OAAO,gBAACD,EAAA,CAAW,GAAGE,EAAO,yBAA0BC,CAAA,CAAQ,CACjE,C,oSCjBIC,EAAU,CAAC,EAEfA,EAAQ,kBAAoB,IAC5BA,EAAQ,cAAgB,IAElBA,EAAQ,OAAS,SAAc,KAAM,MAAM,EAEjDA,EAAQ,OAAS,IACjBA,EAAQ,mBAAqB,IAE7B,IAAIC,EAAS,IAAI,IAASD,CAAO,EAK1B,QAAe,KAAW,IAAQ,OAAS,IAAQ,OAAS,O,gKCFnE,MAAM,UAA0B,WAAgB,CAQ9C,YAAYF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AsB,CACxD,MAAMkB,EAAgB3D,GAAU,CAC9B,IAAiB,MAAM,0BAA0BQ,EAAQ,IAAI,yBAAyBR,EAAM,OAAO,GACjG,+BAA+B,CACnC,KAEA,MAAM,SAAU,GAAG,KAAK,GAAG,IAAIQ,EAAQ,EAAE,EAAE,EACxC,KACEY,IACCqB,EAAS,EACT,IAAiB,QAAQ,iBAAiBjC,EAAQ,IAAI,wBAAwB,EAEvEY,GAETuC,CACF,CACJ,EAEA,WAAW/D,EAAkBoC,EAAwB,CACnD,MAAM2B,EAAgB3D,GAAU,CAC9B,IAAIuB,EAAevB,EAAM,QACzB,MAAMiE,EAAYjE,EAAM,WAAW,KAEnC,GAAIiE,GAAaA,EAAU,mBAAqBA,EAAU,kBAAkB,EAAG,CAC7E1C,EAAe,GACf,MAAMgD,EAASN,EAAU,kBAAkB,EAG3C,QAASO,EAAI,EAAGC,EAAMF,EAAO,OAAQC,EAAIC,EAAKD,IAC5CjD,EAAeA,EAAa,OAAOgD,EAAOC,CAAC,EAAE,KAAK,CAEtD,CAEA,IAAiB,MAAM,mDAAmDjD,CAAY,GACpF,8BAA8B,CAClC,EAEMmD,KAAU,MAAe,OAAQ,GAAG,KAAK,GAAG,oBAAoB1C,CAAc,GAAIpC,CAAQ,EAEhG,OAAA8E,EAAQ,MAAMf,CAAY,EAEnBe,CACT,CACF,CAAC,CACH,C","sources":["webpack://graylog-web-interface/./src/components/grok-patterns/GrokPatternFilter.css","webpack://graylog-web-interface/./src/components/common/withPaginationQueryParameter.tsx","webpack://graylog-web-interface/./src/components/grok-patterns/GrokPatternFilter.css?6aa1","webpack://graylog-web-interface/./src/components/grok-patterns/GrokPatternFilter.jsx","webpack://graylog-web-interface/./src/components/grok-patterns/GrokPatternInput.jsx","webpack://graylog-web-interface/./src/components/grok-patterns/EditPatternModal.jsx","webpack://graylog-web-interface/./src/components/grok-patterns/BulkLoadPatternModal.jsx","webpack://graylog-web-interface/./src/components/grok-patterns/GrokPatternQueryHelper.tsx","webpack://graylog-web-interface/./src/components/grok-patterns/GrokPatterns.jsx","webpack://graylog-web-interface/./src/pages/GrokPatternsPage.tsx","webpack://graylog-web-interface/./src/stores/grok-patterns/GrokPatternsStore.ts"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.YdarIKpxaNitFlWJ678S {\n    height: 160px;\n    max-height: 160px;\n    overflow: hidden;\n    overflow-y: scroll;\n    padding-left: 0;\n    border-bottom: 1px solid #ddd;\n}\n\n.kqwpZ3NGYl1tRenAeuma {\n    margin-bottom: 0px;\n}\n\n.lmEVMuAgMnJwEQOO5HRZ {\n    position: absolute;\n    top: 7px;\n    right: 7px;\n}\n\n.J36QQw1MHcjMFdoQeCi9 {\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    overflow: hidden;\n    display: block;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/components/grok-patterns/GrokPatternFilter.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,aAAa;IACb,iBAAiB;IACjB,gBAAgB;IAChB,kBAAkB;IAClB,eAAe;IACf,6BAA6B;AACjC;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,kBAAkB;IAClB,QAAQ;IACR,UAAU;AACd;;AAEA;IACI,uBAAuB;IACvB,mBAAmB;IACnB,gBAAgB;IAChB,cAAc;AAClB\",\"sourcesContent\":[\":local(.resultList) {\\n    height: 160px;\\n    max-height: 160px;\\n    overflow: hidden;\\n    overflow-y: scroll;\\n    padding-left: 0;\\n    border-bottom: 1px solid #ddd;\\n}\\n\\n:local(.filterFormGroup) {\\n    margin-bottom: 0px;\\n}\\n\\n:local(.addButton) {\\n    position: absolute;\\n    top: 7px;\\n    right: 7px;\\n}\\n\\n:local(.patternDisplay) {\\n    text-overflow: ellipsis;\\n    white-space: nowrap;\\n    overflow: hidden;\\n    display: block;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"resultList\": `YdarIKpxaNitFlWJ678S`,\n\t\"filterFormGroup\": `kqwpZ3NGYl1tRenAeuma`,\n\t\"addButton\": `lmEVMuAgMnJwEQOO5HRZ`,\n\t\"patternDisplay\": `J36QQw1MHcjMFdoQeCi9`\n};\nexport default ___CSS_LOADER_EXPORT___;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\n\nimport usePaginationQueryParameter from 'hooks/usePaginationQueryParameter';\n\nexport type PaginationQueryParameterObject = {\n  pageSizes?: number[];\n};\n\nconst withPaginationQueryParameter = >>(Component: C, obj?: PaginationQueryParameterObject) => function WrappedComponent(props: any) {\n  const result = usePaginationQueryParameter(obj?.pageSizes);\n\n  return ;\n};\n\nexport default withPaginationQueryParameter;\n","\n      import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n      import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n      import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n      import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n      import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n      import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n      import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./GrokPatternFilter.css\";\n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n      options.insert = insertFn.bind(null, \"head\");\n    \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./GrokPatternFilter.css\";\n       export default content && content.locals ? content.locals : undefined;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport isEqual from 'lodash/isEqual';\n\nimport { ListGroup, ListGroupItem, Button, Input } from 'components/bootstrap';\n\nimport GrokPatternFilterStyle from './GrokPatternFilter.css';\n\nclass GrokPatternFilter extends React.Component {\n  static propTypes = {\n    addToPattern: PropTypes.func.isRequired,\n    patterns: PropTypes.array.isRequired,\n  };\n\n  shownListItems = [];\n\n  constructor(props) {\n    super(props);\n\n    this.state = {\n      patternFilter: '',\n      activeListItem: -1,\n    };\n  }\n\n  shouldComponentUpdate(nextProps, nextState) {\n    const { patterns } = this.props;\n    const { patternFilter, activeListItem } = this.state;\n\n    if (isEqual(nextProps.patterns, patterns) && patternFilter === nextState.patternFilter && activeListItem === nextState.activeListItem) {\n      return false;\n    }\n\n    return true;\n  }\n\n  _onPatternFilterChange = (e) => {\n    this.setState({ patternFilter: e.target.value, activeListItem: -1 });\n  };\n\n  _onPatternFilterKeyDown = (e) => {\n    const { addToPattern } = this.props;\n    const { activeListItem } = this.state;\n    const ARROW_DOWN = 40;\n    const ARROW_UP = 38;\n    const ENTER = 13;\n    const listItem = this.shownListItems[activeListItem];\n\n    let newActiveListItem = 0;\n    const firstElement = document.getElementById('list-item-0');\n    let domElement;\n    let list;\n\n    switch (e.keyCode) {\n      case ARROW_DOWN:\n        newActiveListItem = activeListItem + 1;\n\n        if (activeListItem >= this.shownListItems.length) {\n          return;\n        }\n\n        domElement = document.getElementById(`list-item-${newActiveListItem}`);\n        list = domElement.parentElement;\n        list.scrollTop = domElement.offsetTop - firstElement.offsetTop;\n        this.setState({ activeListItem: newActiveListItem });\n        e.preventDefault();\n        break;\n      case ARROW_UP:\n        newActiveListItem = activeListItem - 1;\n\n        if (newActiveListItem < 0) {\n          return;\n        }\n\n        domElement = document.getElementById(`list-item-${newActiveListItem}`);\n        list = domElement.parentElement;\n        list.scrollTop = domElement.offsetTop - firstElement.offsetTop;\n        this.setState({ activeListItem: newActiveListItem });\n        e.preventDefault();\n        break;\n      case ENTER:\n        if (listItem) {\n          addToPattern(listItem);\n        }\n\n        e.preventDefault();\n        break;\n      default:\n        break;\n    }\n  };\n\n  render() {\n    const { activeListItem, patternFilter } = this.state;\n    const { addToPattern, patterns } = this.props;\n    let regExp;\n    let regExpError;\n\n    try {\n      regExp = RegExp(patternFilter, 'i');\n    } catch (error) {\n      regExpError = error?.message;\n    }\n\n    this.shownListItems = [];\n    let patternsToDisplay = [];\n\n    if (!regExpError) {\n      patternsToDisplay = patterns.filter((displayedPattern) => regExp.test(displayedPattern.name))\n        .map((displayedPattern, index) => {\n          const active = index === activeListItem;\n\n          this.shownListItems.push(displayedPattern.name);\n\n          return (\n            \n              {displayedPattern.pattern}\n              \n                \n              \n            \n          );\n        });\n    }\n\n    return (\n      <>\n        \n        {!regExpError && {patternsToDisplay}}\n      \n    );\n  }\n}\n\nexport default GrokPatternFilter;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { Row, Col, Input } from 'components/bootstrap';\n\nimport GrokPatternFilter from './GrokPatternFilter';\n\nclass GrokPatternInput extends React.Component {\n  static propTypes = {\n    pattern: PropTypes.string,\n    patterns: PropTypes.array,\n    onPatternChange: PropTypes.func,\n    className: PropTypes.string,\n  };\n\n  static defaultProps = {\n    pattern: '',\n    patterns: [],\n    onPatternChange: () => {},\n    className: '',\n  };\n\n  shownListItems = [];\n\n  _onPatternChange = (e) => {\n    const { onPatternChange } = this.props;\n\n    onPatternChange(e.target.value);\n  };\n\n  _addToPattern = (name) => {\n    const { pattern, onPatternChange } = this.props;\n    const index = this.patternInput.getInputDOMNode().selectionStart || pattern.length;\n    const newPattern = `${pattern.slice(0, index)}%{${name}}${pattern.slice(index)}`;\n\n    onPatternChange(newPattern);\n  };\n\n  render() {\n    const { className, patterns, pattern } = this.props;\n\n    this.shownListItems = [];\n\n    return (\n      \n        \n           { this.patternInput = node; }}\n                 type=\"textarea\"\n                 id=\"pattern-input\"\n                 label=\"Pattern\"\n                 help=\"The pattern which will match the log line e.g: '%{IP:client}' or '.*?'\"\n                 rows={9}\n                 onChange={this._onPatternChange}\n                 value={pattern}\n                 required />\n        \n        \n          \n        \n      \n    );\n  }\n}\n\nexport default GrokPatternInput;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { BootstrapModalForm, Input, Panel, Button } from 'components/bootstrap';\nimport withTelemetry from 'logic/telemetry/withTelemetry';\nimport { TELEMETRY_EVENT_TYPE } from 'logic/telemetry/Constants';\n\nimport GrokPatternInput from './GrokPatternInput';\n\nclass EditPatternModal extends React.Component {\n  static propTypes = {\n    id: PropTypes.string,\n    name: PropTypes.string,\n    pattern: PropTypes.string,\n    patterns: PropTypes.array,\n    create: PropTypes.bool,\n    sampleData: PropTypes.string,\n    savePattern: PropTypes.func.isRequired,\n    testPattern: PropTypes.func.isRequired,\n    validPatternName: PropTypes.func.isRequired,\n    sendTelemetry: PropTypes.func,\n  };\n\n  static defaultProps = {\n    id: '',\n    name: '',\n    pattern: '',\n    patterns: [],\n    create: false,\n    sampleData: '',\n    sendTelemetry: () => {},\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.state = {\n      showModal: false,\n      id: props.id,\n      name: props.name,\n      pattern: props.pattern,\n      sampleData: props.sampleData,\n      test_result: '',\n      test_error: undefined,\n      error: false,\n      error_message: '',\n    };\n  }\n\n  openModal = () => {\n    this.setState({ showModal: true });\n  };\n\n  _onPatternChange = (newPattern) => {\n    this.setState({ pattern: newPattern });\n  };\n\n  _onNameChange = (event) => {\n    const { validPatternName } = this.props;\n    const name = event.target.value;\n\n    if (!validPatternName(name)) {\n      this.setState({ name: name, error: true, error_message: 'Pattern with that name already exists!' });\n    } else {\n      this.setState({ name: name, error: false, error_message: '' });\n    }\n  };\n\n  _onSampleDataChange = (event) => {\n    this.setState({ sampleData: event.target.value });\n  };\n\n  _getId = (prefixIdName) => {\n    const { name } = this.state;\n\n    return name !== undefined ? prefixIdName + name : prefixIdName;\n  };\n\n  _closeModal = () => {\n    this.setState({ showModal: false });\n  };\n\n  _saved = () => {\n    const { create, sendTelemetry } = this.props;\n\n    sendTelemetry(TELEMETRY_EVENT_TYPE.GROK_PATTERN[create ? 'CREATED' : 'UPDATED'], {\n      app_pathname: 'grokpatterns',\n      app_section: 'grokpatterns',\n    });\n\n    this._closeModal();\n\n    if (create) {\n      this.setState({ name: '', pattern: '', sampleData: '', test_result: '' });\n    }\n  };\n\n  _save = () => {\n    const { savePattern } = this.props;\n    const { error } = this.state;\n\n    if (!error) {\n      savePattern(this.state, this._saved);\n    }\n  };\n\n  _sendTelemetry = () => {\n    this.props.sendTelemetry(TELEMETRY_EVENT_TYPE.GROK_PATTERN.TESTED, {\n      app_pathname: 'grokpatterns',\n      app_section: 'grokpatterns',\n    });\n  };\n\n  _testPattern = () => {\n    const { name, pattern } = this.state;\n    const { testPattern } = this.props;\n\n    if (name === '' || pattern === '') {\n      this.setState({ error: true, error_message: 'To test the pattern a name and a pattern must be given!' });\n\n      return;\n    }\n\n    this.setState({ error: false, error_message: '' });\n\n    testPattern(this.state, (response) => {\n      this.setState({ test_result: JSON.stringify(response, null, 2), test_error: undefined });\n      this._sendTelemetry();\n    }, (errMessage) => {\n      this.setState({ test_result: '', test_error: errMessage });\n      this._sendTelemetry();\n    });\n  };\n\n  render() {\n    const { create, patterns } = this.props;\n    const {\n      showModal,\n      name,\n      error,\n      error_message: errorMessage,\n      pattern,\n      test_error: testError,\n      sampleData,\n      test_result: testResult,\n    } = this.state;\n\n    let triggerButtonContent;\n\n    if (create) {\n      triggerButtonContent = 'Create pattern';\n    } else {\n      triggerButtonContent = Edit;\n    }\n\n    return (\n      \n        \n        \n          
\n \n \n {testError\n && (\n \n {testError}\n \n )}\n \n \n
\n
\n \n
\n
\n
\n );\n }\n}\n\nexport default withTelemetry(EditPatternModal);\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { Button, Input } from 'components/bootstrap';\nimport UserNotification from 'util/UserNotification';\nimport BootstrapModalForm from 'components/bootstrap/BootstrapModalForm';\nimport { GrokPatternsStore } from 'stores/grok-patterns/GrokPatternsStore';\nimport withTelemetry from 'logic/telemetry/withTelemetry';\nimport { TELEMETRY_EVENT_TYPE } from 'logic/telemetry/Constants';\n\nclass BulkLoadPatternModal extends React.Component {\n static propTypes = {\n onSuccess: PropTypes.func.isRequired,\n sendTelemetry: PropTypes.func,\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n showModal: false,\n importStrategy: 'ABORT_ON_CONFLICT',\n };\n }\n\n _openModal = () => {\n this.setState({ showModal: true });\n };\n\n _closeModal = () => {\n this.setState({ importStrategy: 'ABORT_ON_CONFLICT', showModal: false });\n };\n\n _onSubmit = (evt) => {\n evt.preventDefault();\n\n const reader = new FileReader();\n const { importStrategy } = this.state;\n const { onSuccess } = this.props;\n\n reader.onload = (loaded) => {\n const request = loaded.target.result;\n\n GrokPatternsStore.bulkImport(request, importStrategy).then(() => {\n UserNotification.success('Grok Patterns imported successfully', 'Success!');\n this._closeModal();\n\n this.props.sendTelemetry(TELEMETRY_EVENT_TYPE.GROK_PATTERN.IMPORTED, {\n app_pathname: 'grokpatterns',\n app_section: 'grokpatterns',\n });\n\n onSuccess();\n });\n };\n\n reader.readAsText(this.patternFile.getInputDOMNode().files[0]);\n };\n\n _onImportStrategyChange = (event) => this.setState({ importStrategy: event.target.value });\n\n render() {\n return (\n \n \n\n \n { this.patternFile = patternFile; }}\n name=\"patterns\"\n label=\"Pattern file\"\n help=\"A file containing Grok patterns, one per line. Name and patterns should be separated by whitespace.\"\n required />\n this._onImportStrategyChange(e)} />\n this._onImportStrategyChange(e)} />\n this._onImportStrategyChange(e)} />\n \n \n );\n }\n}\n\nBulkLoadPatternModal.defaultProps = {\n sendTelemetry: () => {},\n};\n\nexport default withTelemetry(BulkLoadPatternModal);\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\n\nimport { Popover, Table } from 'components/bootstrap';\n\nconst GrokPatternQueryHelper = () => (\n \n

Available search fields

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
FieldDescription
nameThe grok patterns name
patternThe pattern of the grok pattern
\n

Examples

\n

\n Find grok patterns containing COMMON in the pattern:
\n pattern:COMMON
\n

\n
\n);\n\nexport default GrokPatternQueryHelper;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\n\nimport {\n DataTable,\n Icon,\n IfPermitted,\n PageHeader,\n PaginatedList,\n SearchForm,\n OverlayTrigger,\n} from 'components/common';\nimport { Button, ButtonToolbar, Col, Row } from 'components/bootstrap';\nimport EditPatternModal from 'components/grok-patterns/EditPatternModal';\nimport BulkLoadPatternModal from 'components/grok-patterns/BulkLoadPatternModal';\nimport withPaginationQueryParameter from 'components/common/withPaginationQueryParameter';\nimport { GrokPatternsStore } from 'stores/grok-patterns/GrokPatternsStore';\nimport withTelemetry from 'logic/telemetry/withTelemetry';\nimport { TELEMETRY_EVENT_TYPE } from 'logic/telemetry/Constants';\n\nimport GrokPatternQueryHelper from './GrokPatternQueryHelper';\n\nconst GrokPatternsList = styled(DataTable)`\n th.name {\n min-width: 200px;\n }\n\n td {\n word-break: break-all;\n }\n`;\n\nconst testPattern = (pattern, callback, errCallback) => {\n GrokPatternsStore.testPattern(pattern, callback, errCallback);\n};\n\nconst _headerCellFormatter = (header) => {\n let formattedHeaderCell;\n\n switch (header.toLocaleLowerCase()) {\n case 'name':\n formattedHeaderCell = {header};\n break;\n case 'actions':\n formattedHeaderCell = {header};\n break;\n default:\n formattedHeaderCell = {header};\n }\n\n return formattedHeaderCell;\n};\n\nclass GrokPatterns extends React.Component {\n static propTypes = {\n paginationQueryParameter: PropTypes.object.isRequired,\n sendTelemetry: PropTypes.func,\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n patterns: [],\n pagination: {\n count: 0,\n total: 0,\n query: '',\n },\n };\n }\n\n componentDidMount() {\n this.loadData();\n }\n\n componentWillUnmount() {\n if (this.loadPromise) {\n this.loadPromise.cancel();\n }\n }\n\n loadData = (callback, page = this.props.paginationQueryParameter.page, perPage = this.props.paginationQueryParameter.pageSize) => {\n const { pagination: { query } } = this.state;\n\n this.loadPromise = GrokPatternsStore.searchPaginated(page, perPage, query)\n .then(({ patterns, pagination }) => {\n if (callback) {\n callback();\n }\n\n if (!this.loadPromise?.isCancelled()) {\n this.loadPromise = undefined;\n\n this.setState({ patterns, pagination });\n }\n });\n };\n\n validPatternName = (name) => {\n // Check if patterns already contain a pattern with the given name.\n const { patterns } = this.state;\n\n return !patterns.some((pattern) => pattern.name === name);\n };\n\n savePattern = (pattern, callback) => {\n GrokPatternsStore.savePattern(pattern, () => {\n callback();\n this.loadData();\n });\n };\n\n _onPageChange = (newPage, newPerPage) => {\n this.loadData(null, newPage, newPerPage);\n };\n\n _onSearch = (query, resetLoadingCallback) => {\n const { pagination } = this.state;\n const newPagination = Object.assign(pagination, { query: query });\n this.props.paginationQueryParameter.resetPage();\n this.setState({ pagination: newPagination }, () => this.loadData(resetLoadingCallback));\n };\n\n _onReset = () => {\n const { pagination } = this.state;\n const newPagination = Object.assign(pagination, { query: '' });\n this.props.paginationQueryParameter.resetPage();\n this.setState({ pagination: newPagination }, this.loadData);\n };\n\n confirmedRemove = (pattern) => {\n // eslint-disable-next-line no-alert\n if (window.confirm(`Really delete the grok pattern ${pattern.name}?\\nIt will be removed from the system and unavailable for any extractor. If it is still in use by extractors those will fail to work.`)) {\n GrokPatternsStore.deletePattern(pattern, () => {\n this.props.sendTelemetry(TELEMETRY_EVENT_TYPE.GROK_PATTERN.DELETED, {\n app_pathname: 'grokpatterns',\n app_section: 'grokpatterns',\n });\n\n this.loadData();\n });\n }\n };\n\n _patternFormatter = (pattern) => {\n const { patterns: unfilteredPatterns } = this.state;\n const patterns = unfilteredPatterns.filter((p) => p.name !== pattern.name);\n\n return (\n \n {pattern.name}\n {pattern.pattern}\n \n \n \n \n \n \n \n \n \n );\n };\n\n render() {\n const headers = ['Name', 'Pattern', 'Actions'];\n const { pagination, patterns } = this.state;\n\n const queryHelperComponent = (\n }>\n \n \n );\n\n return (\n
\n \n \n \n \n \n \n )}>\n \n This is a list of grok patterns you can use in your Graylog grok extractors. You can add\n your own manually or import a whole list of patterns from a so called pattern file.\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n );\n }\n}\n\nGrokPatterns.defaultProps = {\n sendTelemetry: () => {},\n};\n\nexport default withTelemetry(withPaginationQueryParameter(GrokPatterns));\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React from 'react';\n\nimport GrokPatterns from 'components/grok-patterns/GrokPatterns';\nimport { DocumentTitle } from 'components/common';\n\nconst GrokPatternsPage = () => (\n \n \n \n);\n\nexport default GrokPatternsPage;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport Reflux from 'reflux';\n\nimport fetch, { fetchPlainText } from 'logic/rest/FetchProvider';\nimport PaginationURL from 'util/PaginationURL';\nimport ApiRoutes from 'routing/ApiRoutes';\nimport { qualifyUrl } from 'util/URLUtils';\nimport UserNotification from 'util/UserNotification';\nimport { singletonStore } from 'logic/singleton';\n\ntype GrokPattern = {\n id: string,\n name: string,\n pattern: string,\n content_pack: string,\n};\n\ntype PaginatedResponse = {\n count: number,\n total: number,\n page: number,\n per_page: number,\n patterns: Array,\n};\n\ntype GrokPatternTest = {\n name: string,\n pattern: string,\n sampleData: string,\n};\n\n// eslint-disable-next-line import/prefer-default-export\nexport const GrokPatternsStore = singletonStore(\n 'core.GrokPatterns',\n () => Reflux.createStore({\n URL: qualifyUrl('/system/grok'),\n\n loadPatterns(callback: (patterns: Array) => void) {\n const failCallback = (error) => {\n UserNotification.error(`Loading Grok patterns failed with status: ${error.message}`,\n 'Could not load Grok patterns');\n };\n\n // get the current list of patterns and sort it by name\n return fetch('GET', this.URL)\n .then(\n (resp: any) => {\n const { patterns } = resp;\n\n patterns.sort((pattern1: GrokPattern, pattern2: GrokPattern) => pattern1.name.toLowerCase()\n .localeCompare(pattern2.name.toLowerCase()));\n\n callback(patterns);\n\n return resp;\n },\n failCallback,\n );\n },\n\n searchPaginated(page, perPage, query) {\n const url = PaginationURL(ApiRoutes.GrokPatternsController.paginated().url, page, perPage, query);\n\n return fetch('GET', qualifyUrl(url))\n .then((response: PaginatedResponse) => {\n const pagination = {\n count: response.count,\n total: response.total,\n page: response.page,\n perPage: response.per_page,\n query: query,\n };\n\n return {\n patterns: response.patterns,\n pagination: pagination,\n };\n })\n .catch((errorThrown) => {\n UserNotification.error(`Loading patterns failed with status: ${errorThrown}`,\n 'Could not load streams');\n });\n },\n\n testPattern(pattern: GrokPatternTest, callback: (request: any) => void, errCallback: (errorMessage: string) => void) {\n const failCallback = (error) => {\n let errorMessage = error.message;\n const errorBody = error.additional.body;\n\n if (errorBody && errorBody.message) {\n errorMessage = error.additional.body.message;\n }\n\n errCallback(errorMessage);\n };\n\n const requestPatternTest = {\n grok_pattern: {\n name: pattern.name,\n pattern: pattern.pattern,\n },\n sampleData: pattern.sampleData,\n };\n\n fetch('POST', qualifyUrl(ApiRoutes.GrokPatternsController.test().url), requestPatternTest)\n .then(\n (response) => {\n callback(response);\n\n return response;\n },\n failCallback,\n );\n },\n\n savePattern(pattern: GrokPattern, callback: () => void) {\n const failCallback = (error) => {\n let errorMessage = error.message;\n const errorBody = error.additional.body;\n\n if (errorBody && errorBody.message) {\n errorMessage = error.additional.body.message;\n }\n\n UserNotification.error(`Testing Grok pattern \"${pattern.name}\" failed with status: ${errorMessage}`,\n 'Could not test Grok pattern');\n };\n\n const requestPattern = {\n id: pattern.id,\n pattern: pattern.pattern,\n name: pattern.name,\n content_pack: pattern.content_pack,\n };\n\n let url = this.URL;\n let method;\n\n if (pattern.id === '') {\n method = 'POST';\n } else {\n url += `/${pattern.id}`;\n method = 'PUT';\n }\n\n fetch(method, url, requestPattern)\n .then(\n (response) => {\n callback();\n const action = pattern.id === '' ? 'created' : 'updated';\n const message = `Grok pattern \"${pattern.name}\" successfully ${action}`;\n\n UserNotification.success(message);\n\n return response;\n },\n failCallback,\n );\n },\n\n deletePattern(pattern: GrokPattern, callback: () => void) {\n const failCallback = (error) => {\n UserNotification.error(`Deleting Grok pattern \"${pattern.name}\" failed with status: ${error.message}`,\n 'Could not delete Grok pattern');\n };\n\n fetch('DELETE', `${this.URL}/${pattern.id}`)\n .then(\n (response) => {\n callback();\n UserNotification.success(`Grok pattern \"${pattern.name}\" successfully deleted`);\n\n return response;\n },\n failCallback,\n );\n },\n\n bulkImport(patterns: string, importStrategy: string) {\n const failCallback = (error) => {\n let errorMessage = error.message;\n const errorBody = error.additional.body;\n\n if (errorBody && errorBody.validation_errors && errorBody.validation_errors._) {\n errorMessage = '';\n const errors = errorBody.validation_errors._;\n\n // eslint-disable-next-line no-plusplus\n for (let i = 0, len = errors.length; i < len; i++) {\n errorMessage = errorMessage.concat(errors[i].error);\n }\n }\n\n UserNotification.error(`Importing Grok pattern file failed with status: ${errorMessage}`,\n 'Could not load Grok patterns');\n };\n\n const promise = fetchPlainText('POST', `${this.URL}?import-strategy=${importStrategy}`, patterns);\n\n promise.catch(failCallback);\n\n return promise;\n },\n }),\n);\n"],"names":["___CSS_LOADER_EXPORT___","module","Component","obj","props","result","options","update","e","addToPattern","activeListItem","ARROW_DOWN","ARROW_UP","ENTER","listItem","newActiveListItem","firstElement","domElement","list","nextProps","nextState","patterns","patternFilter","regExp","regExpError","error","patternsToDisplay","displayedPattern","index","active","GrokPatternInput","onPatternChange","name","pattern","newPattern","className","node","EditPatternModal","event","validPatternName","prefixIdName","create","sendTelemetry","savePattern","testPattern","response","errMessage","showModal","errorMessage","testError","sampleData","testResult","triggerButtonContent","withTelemetry","BulkLoadPatternModal","evt","reader","importStrategy","onSuccess","loaded","request","GrokPatternsStore","UserNotification","BootstrapModalForm","patternFile","GrokPatternsList","callback","errCallback","_headerCellFormatter","header","formattedHeaderCell","GrokPatterns","page","perPage","query","pagination","newPage","newPerPage","resetLoadingCallback","newPagination","unfilteredPatterns","headers","queryHelperComponent","withPaginationQueryParameter","failCallback","resp","pattern1","pattern2","url","errorThrown","errorBody","requestPatternTest","requestPattern","method","action","message","errors","i","len","promise"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy