Skip to content

Commit

Permalink
simplify solution and add query
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed Mar 1, 2021
1 parent 9caf252 commit 0cce882
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { FormattedMessage } from '@kbn/i18n/react';
import React, { FC, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useParams, useHistory } from 'react-router-dom';

import { DEFAULT_MAX_SIGNALS } from '../../../../../common/constants';
import { UpdateRulesSchema } from '../../../../../../common/detection_engine/schemas/request';
import { useRule, useUpdateRule } from '../../../../containers/detection_engine/rules';
import { useListsConfig } from '../../../../containers/detection_engine/lists/use_lists_config';
Expand Down Expand Up @@ -252,7 +251,7 @@ const EditRulePageComponent: FC = () => {
rule
),
...(ruleId ? { id: ruleId } : {}),
...(rule != null ? rule.max_signals : DEFAULT_MAX_SIGNALS),
...(rule != null ? { max_signals: rule.max_signals } : {}),
});
}
}, [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "Query With Max Signals",
"description": "Simplest query with max signals set to something other than default",
"risk_score": 1,
"severity": "high",
"type": "query",
"query": "user.name: root or user.name: admin",
"max_signals": 500
}

0 comments on commit 0cce882

Please sign in to comment.