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

web-interface.assets.bb8c8232-6436.5e868a7d0249865ac2f2.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"bb8c8232-6436.5e868a7d0249865ac2f2.js","mappings":"qVA8BA,SAASA,EAAWC,EAAwBC,EAAgB,CAC1D,OAAOD,EAAM,OAASA,EAAM,MAAMC,CAAM,CAC1C,CAEA,MAAMC,KAAe,WAAO,QAAM;AAAA;AAAA,EAG5BC,EAAgB,IAgFtB,EA9EuB,IAAM,CAC3B,KAAM,CAACC,EAAoBC,CAAqB,KAAI,YAAS,EAAK,EAC5D,CAACC,EAASC,CAAU,KAAI,YAAS,MAAS,EAC1C,CAACC,EAAOC,CAAQ,KAAI,YAAe,MAAS,EAC5C,CAAE,OAAAR,CAAO,KAAI,KAAU,EACvBS,KAAU,KAAW,EACrBC,KAAO,KAAS,IAAaX,GAA2BD,EAAWC,EAAOC,CAAM,CAAC,EAEjFW,KAAY,eAAY,IAAM,CAClCP,EAAsB,EAAI,EAE1B,IAAqB,WAAWJ,EAAQE,CAAa,EAAE,KAAMU,GAAS,CACpEN,EAAWM,CAAI,EACfJ,EAAS,IAAI,IAAM,CACrB,CAAC,EAEDJ,EAAsB,EAAK,CAC7B,EAAG,CAACJ,CAAM,CAAC,KAEX,aAAU,IAAM,CACdW,EAAU,CACZ,EAAG,CAACA,CAAS,CAAC,EAEd,MAAME,EAAW,IAAM,CACrBJ,EAAQ,KAAK,KAAO,OAAO,MAAM,IAAI,CACvC,EAIA,GAFyB,CAACC,EAGxB,OAAO,gBAAC,KAAO,IAAC,EAGlB,KAAM,CAAE,cAAeI,EAAa,SAAAC,CAAS,EAAIL,EAC3CM,EACJ,gBAAC,YAAK,2CACqCd,EAAc,aAAWY,EAAY,MAAIC,EAAS,OAE3F,gBAAC,aAAM,YAAS,gBAAC,KAAS,CAAC,SAAUR,CAAA,CAAO,CAAE,CAChD,EAGIU,EACJ,gBAAC,MAAG,CA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E,CACF,CACJ,CACF,CAAC,CACH,C,mIClBO,MAAMyB,KAAwB,MACnC,wBACA,IAAM,gBAAmB,CACvB,UAAYzB,GAAW,YAAYA,CAAM,cAEzC,MAAMA,EAAQ,CACZ,SAAO,MAAM,OAAQ,KAAoB,GAAG,KAAK,UAAUA,CAAM,CAAC,QAAQ,CAAC,EACxE,KACC,IAAM,CACJ,KAAK,QAAQ,CAAC,CAAC,EACf,IAAiB,QAAQ,8CAA8CA,CAAM,GAAG,CAClF,EACCqB,GAAU,CACT,IAAiB,MAAM,kCAAkCrB,CAAM,aAAaqB,CAAK,GAC/E,+CAA+CrB,CAAM,GAAG,CAC5D,CACF,CACJ,EAEA,OAAOA,EAAQ,CACb,SAAO,MAAM,OAAQ,KAAoB,GAAG,KAAK,UAAUA,CAAM,CAAC,SAAS,CAAC,EACzE,KACC,IAAM,CACJ,KAAK,QAAQ,CAAC,CAAC,EACf,IAAiB,QAAQ,+CAA+CA,CAAM,GAAG,CACnF,EACCqB,GAAU,CACT,IAAiB,MAAM,mCAAmCrB,CAAM,aAAaqB,CAAK,GAChF,gDAAgDrB,CAAM,GAAG,CAC7D,CACF,CACJ,CACF,CAAC,CACH,C","sources":["webpack://graylog-web-interface/./src/pages/SystemLogsPage.tsx","webpack://graylog-web-interface/./src/stores/cluster/ClusterOverviewStore.js","webpack://graylog-web-interface/./src/stores/load-balancer/SystemLoadBalancerStore.js","webpack://graylog-web-interface/./src/stores/system-processing/SystemProcessingStore.js"],"sourcesContent":["/*\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';\nimport { useEffect, useState, useCallback } from 'react';\nimport styled from 'styled-components';\n\nimport { Row, Col, Button } from 'components/bootstrap';\nimport { DocumentTitle, Icon, PageHeader, Spinner, Timestamp } from 'components/common';\nimport { ClusterOverviewStore } from 'stores/cluster/ClusterOverviewStore';\nimport type { NodesStoreState } from 'stores/nodes/NodesStore';\nimport { NodesStore } from 'stores/nodes/NodesStore';\nimport Routes from 'routing/Routes';\nimport { useStore } from 'stores/connect';\nimport useParams from 'routing/useParams';\nimport useHistory from 'routing/useHistory';\n\nfunction nodeFilter(state: NodesStoreState, nodeId: string) {\n  return state.nodes && state.nodes[nodeId];\n}\n\nconst StyledButton = styled(Button)`\n  margin-left: 5px;\n`;\nconst DEFAULT_LIMIT = 5000;\n\nconst SystemLogsPage = () => {\n  const [isReloadingResults, setIsReloadingResults] = useState(false);\n  const [sysLogs, setSysLogs] = useState(undefined);\n  const [taken, setTaken] = useState(undefined);\n  const { nodeId } = useParams();\n  const history = useHistory();\n  const node = useStore(NodesStore, (state: NodesStoreState) => nodeFilter(state, nodeId));\n\n  const fetchLogs = useCallback(() => {\n    setIsReloadingResults(true);\n\n    ClusterOverviewStore.systemLogs(nodeId, DEFAULT_LIMIT).then((logs) => {\n      setSysLogs(logs);\n      setTaken(new Date());\n    });\n\n    setIsReloadingResults(false);\n  }, [nodeId]);\n\n  useEffect(() => {\n    fetchLogs();\n  }, [fetchLogs]);\n\n  const onCancel = () => {\n    history.push(Routes.SYSTEM.NODES.LIST);\n  };\n\n  const _isLoading = () => !node;\n\n  if (_isLoading()) {\n    return ;\n  }\n\n  const { short_node_id: shortNodeId, hostname } = node;\n  const title = (\n    \n      The most recent system logs (limited to {DEFAULT_LIMIT}) of node {shortNodeId} / {hostname}\n       \n      Taken at \n    \n  );\n\n  const control = (\n    \n      
\n \n \n Back\n \n
\n \n );\n\n const logs = sysLogs ?
{sysLogs}
: ;\n\n return (\n \n
\n \n \n {control}\n \n \n \n {logs}\n \n \n \n {control}\n \n
\n
\n );\n};\n\nexport default SystemLogsPage;\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 * as URLUtils from 'util/URLUtils';\nimport UserNotification from 'util/UserNotification';\nimport fetch, { fetchPeriodically, fetchStreamingPlainText } from 'logic/rest/FetchProvider';\nimport { singletonStore } from 'logic/singleton';\nimport { NodesStore } from 'stores/nodes/NodesStore';\nimport { SystemLoadBalancerStore } from 'stores/load-balancer/SystemLoadBalancerStore';\nimport { SystemProcessingStore } from 'stores/system-processing/SystemProcessingStore';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const ClusterOverviewStore = singletonStore(\n 'core.ClusterOverview',\n () => Reflux.createStore({\n sourceUrl: '/cluster',\n clusterOverview: undefined,\n\n init() {\n this.cluster();\n this.listenTo(SystemProcessingStore, this.cluster);\n this.listenTo(SystemLoadBalancerStore, this.cluster);\n this.listenTo(NodesStore, this.cluster);\n },\n\n getInitialState() {\n return { clusterOverview: this.clusterOverview };\n },\n\n cluster() {\n const promise = fetchPeriodically('GET', URLUtils.qualifyUrl(this.sourceUrl));\n\n promise.then(\n (response) => {\n this.clusterOverview = response;\n this.trigger({ clusterOverview: this.clusterOverview });\n },\n (error) => UserNotification.error(`Getting cluster overview failed: ${error}`, 'Could not get cluster overview'),\n );\n\n return promise;\n },\n\n threadDump(nodeId) {\n const promise = fetch('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/${nodeId}/threaddump`))\n .then(\n (response) => response.threaddump,\n (error) => UserNotification.error(`Getting thread dump for node '${nodeId}' failed: ${error}`, 'Could not get thread dump'),\n );\n\n return promise;\n },\n\n processbufferDump(nodeId) {\n const promise = fetch('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/${nodeId}/processbufferdump`))\n .then(\n (response) => response.processbuffer_dump,\n (error) => UserNotification.error(`Getting process buffer dump for node '${nodeId}' failed: ${error}`, 'Could not get process buffer dump'),\n );\n\n return promise;\n },\n\n systemLogs(nodeId, limit) {\n const promise = fetchStreamingPlainText('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/system/loggers/messages/recent/${nodeId}?limit=${limit}`))\n .then(\n (response) => response,\n (error) => UserNotification.error(`Getting system log messages for node '${nodeId}' failed: ${error}`, 'Could not get system log messages'),\n );\n\n return promise;\n },\n\n jvm(nodeId) {\n const promise = fetch('GET', URLUtils.qualifyUrl(`${this.sourceUrl}/${nodeId}/jvm`));\n\n promise.catch((error) => UserNotification.error(`Getting JVM information for node '${nodeId}' failed: ${error}`, 'Could not get JVM information'));\n\n return promise;\n },\n }),\n);\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 * as URLUtils from 'util/URLUtils';\nimport UserNotification from 'util/UserNotification';\nimport fetch from 'logic/rest/FetchProvider';\nimport { singletonStore } from 'logic/singleton';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const SystemLoadBalancerStore = singletonStore(\n 'core.SystemLoadBalancer',\n () => Reflux.createStore({\n sourceUrl: (nodeId) => `/cluster/${nodeId}/lbstatus`,\n\n override(nodeId, status) {\n return fetch('PUT', URLUtils.qualifyUrl(`${this.sourceUrl(nodeId)}/override/${status}`))\n .then(\n () => {\n this.trigger({});\n UserNotification.success(`Load balancer status successfully changed do '${status}' in node '${nodeId}'`);\n },\n (error) => {\n UserNotification.error(`Changing load balancer status in '${nodeId}' failed: ${error}`,\n `Could not change load balancer status to '${status}' in node '${nodeId}'`);\n },\n );\n },\n }),\n);\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 * as URLUtils from 'util/URLUtils';\nimport UserNotification from 'util/UserNotification';\nimport fetch from 'logic/rest/FetchProvider';\n\nimport { singletonStore } from '../../logic/singleton';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const SystemProcessingStore = singletonStore(\n 'core.SystemProcessing',\n () => Reflux.createStore({\n sourceUrl: (nodeId) => `/cluster/${nodeId}/processing`,\n\n pause(nodeId) {\n return fetch('POST', URLUtils.qualifyUrl(`${this.sourceUrl(nodeId)}/pause`))\n .then(\n () => {\n this.trigger({});\n UserNotification.success(`Message processing paused successfully in '${nodeId}'`);\n },\n (error) => {\n UserNotification.error(`Pausing message processing in '${nodeId}' failed: ${error}`,\n `Could not pause message processing in node '${nodeId}'`);\n },\n );\n },\n\n resume(nodeId) {\n return fetch('POST', URLUtils.qualifyUrl(`${this.sourceUrl(nodeId)}/resume`))\n .then(\n () => {\n this.trigger({});\n UserNotification.success(`Message processing resumed successfully in '${nodeId}'`);\n },\n (error) => {\n UserNotification.error(`Resuming message processing in '${nodeId}' failed: ${error}`,\n `Could not resume message processing in node '${nodeId}'`);\n },\n );\n },\n }),\n);\n"],"names":["nodeFilter","state","nodeId","StyledButton","DEFAULT_LIMIT","isReloadingResults","setIsReloadingResults","sysLogs","setSysLogs","taken","setTaken","history","node","fetchLogs","logs","onCancel","shortNodeId","hostname","title","control","ClusterOverviewStore","promise","response","error","limit","SystemLoadBalancerStore","status","SystemProcessingStore"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy