-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution][Resolver] Add no process events found messaging t…
…o resolver (#91561)
- Loading branch information
1 parent
5774e97
commit 50bead6
Showing
3 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
x-pack/plugins/security_solution/public/resolver/view/resolver_no_process_events.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { i18n } from '@kbn/i18n'; | ||
import styled from 'styled-components'; | ||
import { EuiCodeBlock, EuiFlexGroup, EuiTitle, EuiSpacer, EuiText } from '@elastic/eui'; | ||
|
||
const StyledEuiCodeBlock = styled(EuiCodeBlock)` | ||
align-self: flex-start; | ||
display: inline-block; | ||
`; | ||
|
||
const StyledEuiFlexGroup = styled(EuiFlexGroup)` | ||
max-width: 600px; | ||
margin: 60px auto 0; | ||
`; | ||
|
||
export const ResolverNoProcessEvents = () => ( | ||
<StyledEuiFlexGroup data-test-subj="resolver:no-process-events" direction="column"> | ||
<EuiTitle> | ||
<h4> | ||
{i18n.translate('xpack.securitySolution.resolver.noProcessEvents.title', { | ||
defaultMessage: 'No Process Events Found', | ||
})} | ||
</h4> | ||
</EuiTitle> | ||
<EuiSpacer size="m" /> | ||
<EuiText size="s"> | ||
{i18n.translate('xpack.securitySolution.resolver.noProcessEvents.timeRange', { | ||
defaultMessage: ` | ||
The Analyze Event tool creates graphs based on process events. | ||
If the analyzed event does not have an associated process in the current time range, | ||
or stored in Elasticsearch within any time range, a graph will not be created. | ||
You can check for associated processes by expanding your time range. | ||
`, | ||
})} | ||
</EuiText> | ||
<EuiSpacer size="m" /> | ||
<EuiText size="s"> | ||
{i18n.translate('xpack.securitySolution.resolver.noProcessEvents.eventCategory', { | ||
defaultMessage: `You may also add the below to your timeline query to check for process events. | ||
If none are listed, a graph cannot be created from events found in that query.`, | ||
})} | ||
</EuiText> | ||
<EuiSpacer size="m" /> | ||
<StyledEuiCodeBlock language="html" paddingSize="s" isCopyable> | ||
{"event.category: 'process'"} | ||
</StyledEuiCodeBlock> | ||
</StyledEuiFlexGroup> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters