Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Update Resolver generator script documentation (#69912) #69918

Merged
merged 1 commit into from
Jun 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 4 additions & 46 deletions x-pack/plugins/security_solution/scripts/endpoint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,52 +13,10 @@ Example command sequence to get ES and kibana running with sample data after ins

`yarn es snapshot` -> starts ES

`npx yarn start --xpack.securitySolution.enabled=true --no-base-path` -> starts kibana
`npx yarn start --no-base-path` -> starts kibana. Note: you may need other configurations steps to start the security solution with endpoint support.

`cd ~/path/to/kibana/x-pack/plugins/endpoint`
`cd x-pack/plugins/security_solution/scripts/endpoint`

`yarn test:generate --auth elastic:changeme` -> run the resolver_generator.ts script
`yarn test:generate` -> run the resolver_generator.ts script

Resolver generator CLI options:

```bash
Options:
--help Show help [boolean]
--seed, -s random seed to use for document generator
[string]
--node, -n elasticsearch node url
[string] [default: "http://elastic:changeme@localhost:9200"]
--kibana, -k kibana url
[string] [default: "http://elastic:changeme@localhost:5601"]
--eventIndex, --ei index to store events in
[string] [default: "events-endpoint-1"]
--metadataIndex, --mi index to store host metadata in
[string] [default: "metrics-endpoint.metadata-default-1"]
--policyIndex, --pi index to store host policy in
[string] [default: "metrics-endpoint.policy-default-1"]
--ancestors, --anc number of ancestors of origin to create
[number] [default: 3]
--generations, --gen number of child generations to create
[number] [default: 3]
--children, --ch maximum number of children per node
[number] [default: 3]
--relatedEvents, --related number of related events to create for each
process event [number] [default: 5]
--relatedAlerts, --relAlerts number of related alerts to create for each
process event [number] [default: 5]
--percentWithRelated, --pr percent of process events to add related events
and related alerts to [number] [default: 30]
--percentTerminated, --pt percent of process events to add termination
event for [number] [default: 30]
--maxChildrenPerNode, --maxCh always generate the max number of children per
node instead of it being random up to the max
children [boolean] [default: false]
--numHosts, --ne number of different hosts to generate alerts
for [number] [default: 1]
--numDocs, --nd number of metadata and policy response doc to
generate per host [number] [default: 5]
--alertsPerHost, --ape number of resolver trees to make for each host
[number] [default: 1]
--delete, -d delete indices and remake them
[boolean] [default: false]
```
To see Resolver generator CLI options, run `yarn test:generate --help`.