> For the complete documentation index, see [llms.txt](https://docs.flopsar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation.md).

# Investigation

{% hint style="info" %}
Available since Flopsar **7.2**.
{% endhint %}

An investigation is a case file for one ticket or incident. It holds the **evidence** that shows what happened, your **findings**, and the people who work on the case with you. From it you get a **PDF report** to attach to the ticket.

Evidence is a copy. When you add a call, an analysis or a thread dump, the server reads the data again and keeps a copy with the investigation. The copy stays after the recorded data passes out of retention or is deleted, and it never changes. You can also add what the agents did not record, such as what a customer reported, a screenshot, or a log file.

Open the list of investigations from **Analytics → Investigation**.

<figure><img src="https://1957839935-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQzShZISPoFZ9zIHUdjNB%2Fuploads%2Fgit-blob-693ddb79e14db935602f2926e00a457b1c6f0235%2Finvestigation_case.png?alt=media" alt="An open investigation: the header with its buttons, the evidence list with eight items of different kinds, and the findings that refer to the evidence as [E1] to [E8]"><figcaption><p>An open investigation: evidence of seven kinds in the order it happened, and findings that refer to it.</p></figcaption></figure>

{% hint style="info" %}
An investigation holds only what the agents recorded and what you add by hand. Before relying on it, read [Forensic Investigations](https://docs.flopsar.com/user-guide/forensic-investigations.md). It explains how to prepare monitoring profiles, masking, and retention, and how to find the calls of a reported user.
{% endhint %}

## What you need

* **View data** and **View parameters**. Evidence keeps calls with their parameters, so without **View parameters** the page shows *View parameters permission required* and the server refuses every investigation request.
* **Query agents**, only to add a thread dump.
* Access to the applications. Evidence of an application that your role or your user account excludes is hidden from you in every investigation, including in the report. See [Managing Roles](https://docs.flopsar.com/administrator-guide/managing-roles.md).

## Concepts

**Investigation.** A name (usually the ticket number), the findings, the evidence, and the list of members. Every investigation has one owner, the user who created it. A user can own up to 100 investigations.

**Evidence item.** One copy kept with the investigation. Each item gets a number, **E1**, **E2** and so on, in the order it was added. Numbers are never reused, so **E5** still means the same item after **E4** is deleted. An item records when the thing it shows happened (a moment or a period), the application, a title, an optional note, who added it and when, its size, and the SHA-256 hash of the copy. Only the title and the note can be changed later.

**Kinds of evidence.** The kind says where the item came from:

| Kind        | What it keeps                                                                                    | Added from                                |
| ----------- | ------------------------------------------------------------------------------------------------ | ----------------------------------------- |
| Call        | The whole call stack of one call, with its parameters and exceptions                             | Call Stack Details                        |
| Analysis    | The result of a Data Analysis query: counts, percentiles, instances, exceptions, business errors | Data Analysis                             |
| Exception   | One exception found by an analysis, with its stack trace and how often it was thrown             | The stack trace in Data Analysis          |
| Thread dump | A new thread dump of a running instance                                                          | Instance details → Options → Threads dump |
| Key-Value   | The values of one key in a period, for every instance                                            | Key-Value                                 |
| Correlation | The calls that carried the same parameter value                                                  | Correlated calls                          |
| Entry       | Text you type in, for example what the customer reported                                         | **Add entry** in the investigation        |
| Attachment  | A file you add, for example a screenshot or a log                                                | **Add entry → File** in the investigation |

Entries and attachments are marked with an amber badge everywhere, including in the report, because they were supplied by a person and not recorded by an agent.

**Active investigation.** The investigation that **Add to case** adds to, in every view. It is shown in the top bar. See [The active investigation](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/managing-investigations.md#the-active-investigation).

**Findings.** Free text with your conclusions. Refer to evidence as `[E1]`; the report turns the references into links. See [Findings](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/findings.md).

**Members.** The owner can share an investigation with up to 20 people, each as an **Editor** or a **Viewer**, or make it public. See [Sharing](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/sharing.md).

**Replay.** Runs the queries behind the evidence again in another period, for example a day earlier, to show what is normal and what is not. See [Replay](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/replay.md).

**Report.** A PDF made by the server with the findings, a timeline, and every evidence item. See [The PDF report](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/report.md).

## A case from start to finish

1. Open **Analytics → Investigation**, select **New investigation**, and name it after the ticket, for example `INC-2381 Customer cannot sign in`. It becomes the active investigation.
2. Find the data. Search the [Data Browser](https://docs.flopsar.com/user-guide/observing-and-diagnosing/data-browser.md) for the calls of the reported user, run [Data Analysis](https://docs.flopsar.com/user-guide/observing-and-diagnosing/data-analysis.md) for the period, and look at the [Key-Value](https://docs.flopsar.com/user-guide/observing-and-diagnosing/metrics.md) series of the instances.
3. In every view that shows something relevant, select **Add to case**. Each copy goes to the active investigation.
4. Back in the investigation, select **Add entry** to record what the customer reported, and add a screenshot or a log excerpt as a file.
5. Give the items titles and notes that say what each one proves.
6. Select **Replay** with **1 day earlier** to check whether what you see also happened on a normal day.
7. Write the **Findings**, referring to the items as `[E1]`, `[E2]`, and select **Save**.
8. Select **Share** to hand the case to a colleague, or **Export PDF** to attach the report to the ticket.

## In this section

* [Managing Investigations](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/managing-investigations.md): the list, creating, renaming, the active investigation, deleting.
* [Adding Evidence](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/adding-evidence.md): **Add to case** in every view, entries and files, what a copy contains.
* [Reviewing Evidence](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/reviewing-evidence.md): the evidence list, searching and filtering, opening, editing and deleting items.
* [Findings](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/findings.md): writing and saving the findings, references, changes made by others.
* [Sharing](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/sharing.md): members, roles, and public investigations.
* [Replay](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/replay.md): comparing the evidence with another period.
* [The PDF Report](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/report.md): what the report contains and how to handle it.
* [Reference](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/reference.md): limits, permissions, the audit trail, storage and backup, messages.
