You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* trust user guide
* adding trust user guides
* user guides
* adding user guides
* user guides
* user guides
* PR feedback
* PR feedback
* PR feedback
* Update trustedactivities.md
Updates to phrasing for brevity, clarity and style. The "Note" section within "Update a Trusted Activity" appeared to be entirely in a code block, which didn't seem right.
* Update users.md
Updates to phrasing for clarity, brevity, and style.
* style
* format note block
* tiny wording adjustments
* /s
Co-authored-by: annie-payseur <52421911+annie-payseur@users.noreply.github.com>
Once you [create an alert rule in the Code42 console](https://support.code42.com/Administrator/Cloud/Code42_console_reference/Alert_rule_settings_reference), you can use the CLI `alert-rules` commands to add and remove users from your existing alert rules.
4
+
5
+
To see a list of all the users currently in your organization:
6
+
- Export a list from the [Users action menu](https://support.code42.com/Administrator/Cloud/Code42_console_reference/Users_reference#Action_menu).
7
+
- Use the [CLI users commands](./users.md).
8
+
9
+
## View Existing Alert Rules
10
+
11
+
You'll need the ID of an alert rule to add or remove a user.
12
+
13
+
To view a list of all alert rules currently created for your organization, including the rule ID, use the following command:
14
+
```bash
15
+
code42 alert-rules list
16
+
```
17
+
18
+
Once you've identified the rule ID, view the details of the alert rule as follows:
19
+
```bash
20
+
code42 alert-rules show <rule-ID>
21
+
```
22
+
23
+
#### Example output
24
+
Example output for a single alert rule in default JSON format.
Alternatively, to add multiple users to your alert rule, fill out the `add` CSV file template, then use the `bulk add` command with the CSV file path.
91
+
```bash
92
+
code42 alert-rules bulk add users.csv
93
+
```
94
+
95
+
You can remove single or multiple users from alert rules similarly using the `remove-user` and `bulk remove` commands.
96
+
97
+
98
+
## Get CSV Template
99
+
100
+
The following command will generate a CSV template to either add or remove users from multiple alert rules at once. The CSV file will be saved to the current working directory.
To further update or view the details of your case, you'll need the case's unique number, which is assigned upon creation. To get this number, you can use the `list` command to view all cases, with optional filter values.
13
+
14
+
To print to the console all open cases created in the last 30 days:
15
+
```bash
16
+
code42 cases list --begin-create-time 30d --status OPEN
Once you've identified your case's number, you can view further details on the case, or update its attributes.
42
+
43
+
The following command will print all details of your case.
44
+
```bash
45
+
code42 cases show 42
46
+
```
47
+
48
+
If you've finished your investigation and you'd like to close your case, you can update the status of the case. Similarly, other attributes of the case can be updated using the optional flags.
49
+
```bash
50
+
code42 cases update 42 --status CLOSED
51
+
```
52
+
53
+
## Get CSV Template
54
+
55
+
The following command will generate a CSV template to either add or remove file events from multiple cases at once. The csv file will be saved to the current working directory.
## Manage File Exposure Events Associated with a Case
66
+
67
+
The following example command can be used to view all the file exposure events currently associated with a case, indicated here by case number `42`.
68
+
```bash
69
+
code42 cases file-events list 42
70
+
```
71
+
72
+
Use the `file-events add` command to associate a single file event, referred to by event ID, to a case.
73
+
74
+
Below is an example command to associate some event with ID `event_abc` with case number `42`.
75
+
```bash
76
+
code42 cases file-events add 42 event_abc
77
+
```
78
+
79
+
To associate multiple file events with one or more cases at once, enter the case and file event information into the `file-events add` CSV file template, then use the `bulk add` command with the CSV file path. For example:
Similarly, the `file-events remove` and `file-events bulk remove` commands can be used to remove a file event from a case.
85
+
86
+
## Export Case Details
87
+
88
+
You can use the CLI to export the details of a case into a PDF.
89
+
90
+
The following example command will download the details from case number `42` and save a PDF with the name `42_case_summary.pdf` to the provided path. If a path is not provided, it will be saved to the current working directory.
Copy file name to clipboardExpand all lines: docs/userguides/detectionlists.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,9 @@
2
2
3
3
Use the `departing-employee` commands to add employees to or remove employees from the Departing Employees list. Use the `high-risk-employee` commands to add employees to or remove employees from the High Risk list, or update risk tags for those users.
4
4
5
-
To see a list of all the users currently in your organization, you can export a list from the
Copy file name to clipboardExpand all lines: docs/userguides/legalhold.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,11 @@
2
2
3
3
Once you [create a legal hold matter in the Code42 console](https://support.code42.com/Administrator/Cloud/Configuring/Create_a_legal_hold_matter#Step_1:_Create_a_matter), you can use the Code42 CLI to add or release custodians from the matter.
4
4
5
+
To see a list of all the users currently in your organization:
6
+
- Export a list from the [Users action menu](https://support.code42.com/Administrator/Cloud/Code42_console_reference/Users_reference#Action_menu).
7
+
- Use the [CLI users commands](./users.md).
8
+
5
9
Use the `legal-hold` commands to manage legal hold custodians.
6
-
- To see a list of all the users currently in your organization, you can export a list from the [Users action menu](https://support.code42.com/Administrator/Cloud/Code42_console_reference/Users_reference#Action_menu).
7
10
- To view a list of legal hold matters for your organization, including the matter ID, use the following command:
8
11
`code42 legal-hold list`
9
12
- To see a list of all the custodians currently associated with a legal hold matter, enter `code42 legal-hold show <matterID>`.
Copy file name to clipboardExpand all lines: docs/userguides/siemexample.md
+70-34Lines changed: 70 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,20 +14,30 @@ First install and configure the Code42 CLI following the instructions in
14
14
[Getting Started](gettingstarted.md).
15
15
16
16
## Run queries
17
-
You can get file events in either a JSON or CEF format for use by your SIEM tool. Alerts data is available in JSON format. You can query the data as a
18
-
scheduled job or run ad-hoc queries. Learn more about [searching](../commands/securitydata.md) using the CLI.
17
+
You can get file events in either a JSON or CEF format for use by your SIEM tool. Alerts data and audit logs are available in JSON format. You can query the data as a
18
+
scheduled job or run ad-hoc queries.
19
+
20
+
Learn more about searching [File Events](../commands/securitydata.md), [Alerts](../commands/alerts.md), and [Audit Logs](../commands/auditlogs.md) using the CLI.
19
21
20
22
### Run a query as a scheduled job
21
23
22
24
Use your favorite scheduling tool, such as cron or Windows Task Scheduler, to run a query on a regular basis. Specify
23
-
the profile to use by including `--profile`. An example using the `send-to` command to forward only the new file event data since the previous request to an external syslog server:
25
+
the profile to use by including `--profile`.
26
+
27
+
#### File Exposure Events
28
+
An example using the `send-to` command to forward only the new file event data since the previous request to an external syslog server:
As a best practice, use a separate profile when executing a scheduled task. Using separate profiles can help prevent accidental updates to your stored checkpoints, for example, by adding `--use-checkpoint` to adhoc queries.
@@ -36,6 +46,8 @@ As a best practice, use a separate profile when executing a scheduled task. Usin
36
46
37
47
Examples of ad-hoc queries you can run are as follows.
38
48
49
+
#### File Exposure Events
50
+
39
51
Print file events since March 5 for a user in raw JSON format:
0 commit comments