# Managing Investigations

The Investigations administration page allows you to create, share and manage all of your investigations in one place.

## Managing Investigations from an investigation page

### Saving an investigation <a href="#visualeditor-usingtheinvestigationresulttableforinsights" id="visualeditor-usingtheinvestigationresulttableforinsights"></a>

Click **Save as** in the top-right corner of the Investigations page to save an investigation.

Saved investigations appear on the [Manage Investigations](#managinginvestigations-accessingthemanageinvestigationspage-1) page and in the navigation panel for the Investigations module.

If you are editing an existing investigation:

* **Save** to save the changes.
* Click **Save as** to save the investigation under a different name.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-bcdeee5d87e4db887891c91f99ccb0b792bda7b5%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### Sharing saved investigation

**Share** a saved investigation with groups of Nexthink users based on their user Roles and collaborate with them on an investigation. Grant permissions to other users to view or edit the investigation.

{% hint style="info" %}
You need to have permission to **Manage all investigations** or to **Share private investigations,** to be able to **Share** investigations.
{% endhint %}

To share an investigation from the **investigation** page:

1. Click on the three dots icon in the top-right corner of the Investigations page and select **Share** to open the **Share** pop-up.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-414d55560924d4fcf733e3e1f94dd61392d2092b%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

2. In the **Add role** text field, type in the user account role you wish to share the investigation with.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-09d7201e2d4d77009a37fa16334ef878a7d35305%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

3. From the **Select permissions** drop-down menu, select the appropriate permissions for the profile. The choices are:
   * **View**: Gives a user read-only access to the investigation and the right to save a copy of it.
   * **Edit**: Allows a user to modify and save the investigation to collaborate on it with others.
4. **Clear all** to disable all permissions.
5. **Grant permissions** to share the investigation.

To remove existing **Share** permissions:

* Hover over the Permissions column for a given permission entry and click on the action menu.
* Select **Remove all permissions**.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-74a5be5948acf27bf2e613a8b3b425826d3628ec%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

All shared investigations appear in the **Shared** tab of the navigation panel. The investigations that you have editing rights to also appear on the [Manage investigations](#managinginvestigations-accessingthemanageinvestigationspage-1) page.

{% hint style="info" %}
The visibility of shared investigations is determined by the **Investigations** permissions granted to the user's [role](https://docs.nexthink.com/platform/user-guide/administration/account-management/roles).
{% endhint %}

### **Sharing an investigation without saving it**

To share an investigation without saving it, use one of the following options:

* Select **Copy link** from the menu in the top-right corner of the Investigations page. Copy link shares the search query as an URL and is always treated as a new investigation for the user you send the link to.
* Copy the page URL from the browser's address bar.
  * For an investigation that has not been saved, the link shares the search query in the URL and is treated as a new investigation.
  * For saved investigation the link opens the existing investigation.

### Exporting investigation results

Select **Export results** option from the menu in the top-right corner of the Investigations page to export data returned by the investigation in a CSV file.

Nexthink asks you to name this file before downloading it. Consider the following:

* By default, the Visual editor limits the maximum number of query results to 10,000 rows on the webpage. The export to CSV feature returns up to 1,000,000 rows.
* Selecting the **Formatted data** checkbox from the **Export results in the CSV** pop-up, allows you to format **Raw data**. Open the table below for more details.

<details>

<summary>Exporting <strong>Formatted data</strong> versus <strong>Raw data</strong></summary>

The table below displays the differences between exporting **Raw data** and **Formatted data** for most data types.

<table><thead><tr><th>Data type</th><th>Example of Raw data</th><th>Example of Formatted data</th></tr></thead><tbody><tr><td>bool/bool</td><td><p>0</p><p>1</p></td><td><p>No</p><p>Yes</p></td></tr><tr><td>bytes/bytes</td><td>5109928912799</td><td>4.65 TB</td></tr><tr><td>jsontype[]/device/antivirus</td><td><pre class="language-json" data-overflow="wrap"><code class="lang-json">[{"name":"Cortex XDR‚Ñ¢ Advanced Endpoint Protection","realTimeProtection":2,"upToDate":2},{"name":"Microsoft Defender Antivirus","realTimeProtection":3,"upToDate":2}]
</code></pre></td><td>Cortex XDR™ Advanced Endpoint Protection;<br>Microsoft Defender Antivirus</td></tr><tr><td>jsontype[]/device/cpu</td><td><pre class="language-json" data-overflow="wrap"><code class="lang-json">[{"name":"Apple M1 Pro","numberOfCores":10,"numberOfLogicalCpus":10}]
</code></pre></td><td>Apple M1 Pro</td></tr><tr><td>jsontype[]/device/disk</td><td><pre class="language-json" data-overflow="wrap"><code class="lang-json">[{"name":"APPLE SSD AP1024R","type":3,"bootDisk":true,"size":1.00055561E12}]
</code></pre></td><td>APPLE SSD AP1024R</td></tr><tr><td>jsontype[]/device/firewall</td><td><pre class="language-json" data-overflow="wrap"><code class="lang-json">[{"name":"Windows Firewall","realTimeProtection":2}]
</code></pre></td><td>Windows Firewall</td></tr><tr><td>jsontype[]/device/gpu</td><td><pre class="language-json" data-overflow="wrap"><code class="lang-json">[{"name":"NVIDIA Quadro P520","ram":"2147483648"},{"name":"Intel UHD Graphics","ram":"1073741824"}]
</code></pre></td><td>NVIDIA Quadro P520;<br>Intel UHD Graphics</td></tr><tr><td>jsontype[]/device/local_admin</td><td><pre class="language-json" data-overflow="wrap"><code class="lang-json">[{"name":"Kanopy@KAN-HDKTYD3","type":1},{"name":"localadmin@KAN-HDKTYD3","type":1}]
</code></pre></td><td>Kanopy@KAN-HDKTYD3;<br>localadmin@KAN-HDKTYD3</td></tr><tr><td>jsontype[]/device/monitor</td><td><pre class="language-json" data-overflow="wrap"><code class="lang-json">[{"name":"DELL","serialNumber":"D1CLSS2-4133544C","vendor":"DEL","manufacturingYear":2019,"maxHorizontalResolution":1920,"maxVerticalResolution":1080,"diagonalSize":27.1},{"name":"Wide viewing angle \u0026 High density FlexView Display 1920x1080","vendor":"LEN","manufacturingYear":2018,"maxHorizontalResolution":1920,"maxVerticalResolution":1080,"diagonalSize":13.9}]
</code></pre></td><td>DELL;<br>Wide viewing angle &#x26; High density FlexView Display 1920x1080</td></tr><tr><td>jsontype[]/device/volume</td><td><pre class="language-json" data-overflow="wrap"><code class="lang-json">[{"name":"disk0s1","size":5.24288E8,"usage":0.232,"freeSpace":4.02653184E8,"mount":"disk0s1"},{"name":"disk0s2","system":true,"size":4.94384808E11,"usage":0.9055235,"freeSpace":4.6707769E10,"mount":"disk0s2"},{"name":"disk0s3","size":5.3686641E9,"usage":1.0,"mount":"disk0s3"}]
</code></pre></td><td>disk0s1;<br>disk0s2;<br>disk0s3</td></tr><tr><td>numeric/duration</td><td>900</td><td>15min</td></tr><tr><td>numeric/float</td><td>4997.0634765625</td><td>5k</td></tr><tr><td>numeric/long</td><td>4111</td><td>4111</td></tr><tr><td>numeric/integer</td><td>3462</td><td>3.46k</td></tr><tr><td>numeric/numeric</td><td>65287</td><td>65287</td></tr><tr><td>string/bytes</td><td>xdt7cS8oDDrk9zGtfV6hcQ==</td><td>xdt7cS8oDDrk9zGtfV6hcQ==</td></tr><tr><td>string/datetime</td><td>2024-02-23 17:45:00</td><td>23/02/2024 17:45:00</td></tr><tr><td><a data-footnote-ref href="#user-content-fn-1">string/ipAddress</a></td><td>::ffff:192.168.1.23</td><td>::ffff:192.168.1.23</td></tr><tr><td>string/ipAddressArray</td><td>::ffff:62.2.17.60,::ffff:62.2.24.162</td><td>::ffff:62.2.17.60::ffff:62.2.24.162</td></tr><tr><td>string/jsonArrayString</td><td><pre class="language-json" data-overflow="wrap"><code class="lang-json">["Appinfo","NaturalAuthentication","TokenBroker","UserManager","XblGameSave","shpamsvc"]
</code></pre></td><td>Appinfo, NaturalAuthentication, TokenBroker, UserManager, XblGameSave, shpamsvc</td></tr><tr><td>string/string</td><td>NXT-FVFWW2RZHV2H</td><td>NXT-FVFWW2RZHV2H</td></tr><tr><td>string/uuid</td><td>a8572a66-e312-4bda-9515-9b9666555aa4</td><td>a8572a66-e312-4bda-9515-9b9666555aa4</td></tr><tr><td>string/version</td><td>[10,0,22000,653]</td><td>10.0.22000.653</td></tr></tbody></table>

</details>

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-b6c76583990b507585dbbb19a57105c1a0ea18a9%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### Exporting investigation configuration <a href="#managinginvestigations-accessingthemanageinvestigationspage" id="managinginvestigations-accessingthemanageinvestigationspage"></a>

Select **Export Investigation** option from the menu in the top-right corner of the Investigations page to export and download your investigations as a JSON file.

{% hint style="info" %}
**Rename** or **Delete** an existing investigation using the action menu from the Investigations page.
{% endhint %}

***

## Managing investigations from Manage investigations page <a href="#managinginvestigations-accessingthemanageinvestigationspage" id="managinginvestigations-accessingthemanageinvestigationspage"></a>

### Accessing the Manage investigations page <a href="#managinginvestigations-accessingthemanageinvestigationspage" id="managinginvestigations-accessingthemanageinvestigationspage"></a>

Select **Investigations** > **Manage investigations** from the main menu.

The main menu displays **Shared** and **Private** investigations sorted by [tags](#managinginvestigations-tagginginvestigationstagging).

{% hint style="info" %}
Refer to the[ Getting started with Investigations](https://docs.nexthink.com/platform/user-guide/getting-started-with-investigations#gettingstartedwithinvestigations-grantingpermissionsforinvestigationspermissions) documentation to grant permissions for Investigations.
{% endhint %}

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-c42f55d80b7cbd2f816645817f5695fbf9975294%2Fmanageinvestigation-1700575781.png?alt=media" alt="" width="760"><figcaption></figcaption></figure>

### Managing investigations

From the **Manage investigations** page:

1. Click on the name of an investigation to edit it or view the results of the NQL query.
2. Sort the listed investigations by name or by typing/selecting investigation tags.
3. **Import** an investigation by choosing or dragging multiple files—in JSON—from your hard drive to import them into the system as investigations.
   * All imported items will be categorized as custom content.
4. Hover over an investigation to reveal the action menu on the right side of the table.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-5cc593937ca4229e02b052609b3c5c2c7a97bfa1%2Fimage%20(307).png?alt=media" alt="Managing investigations."><figcaption></figcaption></figure>

Hovering over the action menu on the right side of the table allows you to:

* **View**: See the results of the query on the Investigations page.
* **Rename**: Change the name of the investigation.
* **Manage tags**: Create, assign and edit [investigation tags](#managinginvestigations-tagginginvestigationstagging).
* **Share**: Grant permissions to other users to view or edit the investigation. Refer to the [Sharing saved investigation](#sharing-saved-investigation) section on this page.
* **Export:** Export the investigation to a JSON file. Refer to the [Exporting investigation](#exporting-investigation) section on this page.
* **Duplicate**: Create a copy of the investigation.
* **Delete**: Remove the investigation from the system.

### Tagging investigations <a href="#managinginvestigations-tagginginvestigationstagging" id="managinginvestigations-tagginginvestigationstagging"></a>

Tagging allows you to quickly sort and filter investigations. Open the **Tags** right-side panel to:

* Search for a specific tag at the top of the panel.
* Select one or more tags to filter the investigations table.

To add one or more tags to a monitor, from the **Investigations > Manage Investigations** page:

1. Hover over an investigation to display the action menu and choose **Manage tags**.
2. From the **Manage tags** pop-up you can:
   * Type in a new tag or choose an existing one to add it to the investigation.
   * Open the action menu of a specific tag item to **Delete tag** or change the tag color.
     * Deleting a tag only removes it from the investigation it is associated with.
3. Alternatively, select multiple investigations to **Manage tags** in bulks.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-81d94c0525cc7992437f2f39847c0d5a12b08a50%2Fimage.png?alt=media" alt="Managing tags in bulks."><figcaption></figcaption></figure>

[^1]: The systems uses IPv6 notation for both raw and formatted data.
