> 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/reference.md). Agents can also search and read this documentation through its [MCP server](https://docs.flopsar.com/~gitbook/mcp).

# Reference

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

Limits, permissions, audit records, storage and messages of [Investigation](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation.md) in one place.

## Limits

| What                                                                       | Limit                                |
| -------------------------------------------------------------------------- | ------------------------------------ |
| Investigations one user owns                                               | 100                                  |
| Name of an investigation                                                   | 120 characters                       |
| Findings                                                                   | 20,000 characters                    |
| Members of one investigation                                               | 20                                   |
| Login of a member                                                          | 128 characters                       |
| Evidence items in one investigation                                        | 200                                  |
| Size of all items of one investigation                                     | 64 MB                                |
| Size of one item, or of one added file                                     | 8 MB                                 |
| Title of an item                                                           | 200 characters                       |
| Note of an item                                                            | 2,000 characters                     |
| Text of an entry                                                           | 20,000 characters                    |
| Name of an added file                                                      | 200 characters; longer names are cut |
| Calls of one stack whose parameters and exceptions are copied              | 5,000                                |
| Waiting for a thread dump                                                  | 30 seconds                           |
| Calls kept in a correlation                                                | 200                                  |
| Shift of a replay                                                          | 400 days, earlier or later           |
| Calls compared around a replayed call                                      | 30 minutes before and after          |
| Exception classes and business error rules compared in a replayed analysis | 10 each                              |
| Replays running at the same time, for all users                            | 4                                    |
| Reports made at the same time, for all users                               | 2                                    |
| Text shown in the preview of a file                                        | the first 256 KB                     |
| Recent investigations in the menus                                         | 5                                    |

## Permissions

Every request about investigations needs **View data** and **View parameters**. On top of that:

| Action                                                                                                                   | Also needs                 |
| ------------------------------------------------------------------------------------------------------------------------ | -------------------------- |
| Add a thread dump                                                                                                        | **Query agents**           |
| Add an analysis, an exception, a call, a Key-Value series or a correlation, or an entry or a file tied to an application | Access to that application |
| See an item, open it, replay it, have it in the report                                                                   | Access to its application  |
| Delete another user's private investigation                                                                              | The **Owner** role         |

What each member may do depends on their role in the investigation; see [Sharing](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/sharing.md#roles).

Access to applications is the combination of the banned applications of the role and of the user; see [Managing Roles](https://docs.flopsar.com/administrator-guide/managing-roles.md). Evidence without an application, such as an entry not tied to one, is visible to everyone who can open the investigation.

## Audit trail

These actions are recorded in the [audit trail](https://docs.flopsar.com/security/logging-monitoring-and-audit-trail.md), with the user, their address, and the outcome. The `target` names the investigation (`investigation <id>: <name>`), and for evidence also the item and its title.

| Action                  | Recorded when                                                                                   | The `reason` contains                                                                                                                                                                                                               |
| ----------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `evidence_create`       | An item is added, from any view, as an entry, a file, or a kept replay                          | What was kept (for example `call <id>`, `analysis of <from> – <thru>`, `thread dump of <instance> (<host> pid <pid>)`, `entry typed in`, `file <name> (<type>, <size> bytes, sha256 <hash>)`), its size and the SHA-256 of the copy |
| `evidence_view`         | An item is opened, a file is downloaded, an item is replayed, or the AI Assistant reads an item | `content read`, `file <name> downloaded`, `replayed in <from> – <thru>`, or `read by the AI assistant`                                                                                                                              |
| `evidence_delete`       | An item is deleted                                                                              | `deleted`                                                                                                                                                                                                                           |
| `investigation_report`  | A PDF report is made                                                                            | The numbers of the items in it and the SHA-256 of the PDF                                                                                                                                                                           |
| `investigation_share`   | A member is added or their role changes                                                         | For example `shared with jsmith as editor` or `jsmith changed from viewer to editor`                                                                                                                                                |
| `investigation_unshare` | A member is removed or leaves                                                                   | `no longer shared with jsmith; was editor`, or `jsmith left; was viewer`                                                                                                                                                            |
| `investigation_delete`  | An investigation is deleted                                                                     | The number of items deleted with it, and the owner when the **Owner** role deleted someone else's                                                                                                                                   |
| `agent_execute`         | A thread dump is requested for evidence                                                         | The live query sent to the agent                                                                                                                                                                                                    |
| `sensitive_data_view`   | A correlation is added or replayed                                                              | The searched key and value, like a search in the Correlated calls window                                                                                                                                                            |

An item read by the AI Assistant is recorded as `evidence_view` with the reason `read by the AI assistant`, under the user who asked. *Available since Flopsar 7.2.*

Not recorded: creating, renaming, making public or private, saving the findings, and editing the title or the note of an item. The investigation keeps only the time it was last changed.

## Storage and backup

Investigations, their members, and the list of evidence items with the SHA-256 hash of each copy are kept in the server database. The copies themselves are files in the server data directory (`FLOPSAR_HOME`):

```
<FLOPSAR_HOME>/storage/evidence/<investigation id>/<item id>.fev
<FLOPSAR_HOME>/storage/evidence/<investigation id>/<item id>.file.fev
```

The second file exists for attachments only and holds the added file. In the [Docker image](https://docs.flopsar.com/administrator-guide/installation/docker.md) the directory is `/opt/flopsar/storage/evidence`.

* **Encryption.** Each file is compressed and then encrypted with XChaCha20-Poly1305 under the server master key. The investigation and the item are bound into the encryption, so a file moved to another investigation or renamed cannot be read. See [Cryptography & Key Management](https://docs.flopsar.com/security/cryptography-and-key-management.md).
* **Retention.** Retention and archiving do not touch the directory. A copy stays until its item or its investigation is deleted.
* **Backup.** Back up the database, the evidence directory, and the master key together, from the same moment. A copy cannot be read without the key it was encrypted with, and the database without the directory lists copies that are not there.
* **Master key.** Changing or losing the master key makes every existing copy unreadable: the items stay in the list, but opening them fails and the report says *The content of this evidence could not be read.* Export the reports of the investigations you need before you change the key.
* **Deleting.** Deleting an investigation removes its directory. If the files cannot be removed, the investigation is deleted anyway and the server log records a warning with its id; remove `storage/evidence/<investigation id>` by hand.

## Messages

| Message                                                                     | Meaning                                                                                                                                                                                      |
| --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *View parameters permission required*                                       | Your role lacks **View parameters**; ask an administrator.                                                                                                                                   |
| *you can save at most 100 investigations*                                   | Delete investigations you no longer need.                                                                                                                                                    |
| *investigation name is required*, *investigation name is too long*          | The name is empty or longer than 120 characters.                                                                                                                                             |
| *investigation notes are too long*                                          | The findings are longer than 20,000 characters.                                                                                                                                              |
| *the investigation changed meanwhile; reload it and make the change again*  | Someone else saved first; see [When someone else saved meanwhile](https://docs.flopsar.com/user-guide/observing-and-diagnosing/investigation/findings.md#when-someone-else-saved-meanwhile). |
| *you may not change this investigation*                                     | You are a viewer or a public reader, or no longer a member.                                                                                                                                  |
| *you may not make this investigation public or private; only its owner can* | Editors cannot change who can read the investigation.                                                                                                                                        |
| *you may not share this investigation; only its owner can*                  | Only the owner adds members and changes their roles.                                                                                                                                         |
| *invalid member: the owner is in the investigation already*                 | The owner cannot be added as a member.                                                                                                                                                       |
| *an investigation can be shared with at most 20 people*                     | Remove a member first.                                                                                                                                                                       |
| *you may not change evidence jsmith added; only they and the owner can*     | Editors change only the items they added.                                                                                                                                                    |
| *an investigation can hold at most 200 evidence items*                      | Delete items, or start another investigation.                                                                                                                                                |
| *the evidence of an investigation can take at most 64 MB*                   | Delete large items.                                                                                                                                                                          |
| *the call takes N MB, more than the 8 MB an evidence item can hold*         | The copy would be too large; the same for any kind of item and for files.                                                                                                                    |
| *the call is no longer stored*, *the stack trace is no longer stored*       | The data passed out of retention before it was kept.                                                                                                                                         |
| *the analysis did not find this exception*                                  | Run the analysis again and open the exception from its result.                                                                                                                               |
| *no values of this key in the period*                                       | Nothing to keep for the key.                                                                                                                                                                 |
| *no calls carry this parameter value in the period*                         | Nothing to keep for the correlation.                                                                                                                                                         |
| *the agent did not send the thread dump in time*                            | The agent did not answer within 30 seconds.                                                                                                                                                  |
| *the file is empty*                                                         | Choose a file with content.                                                                                                                                                                  |
| *evidence text is required*, *evidence text is too long*                    | The text of an entry is empty or longer than 20,000 characters.                                                                                                                              |
| *No longer stored*                                                          | The recorded data an item was kept from is gone; only the copy is left.                                                                                                                      |
| *The content of this evidence could not be read.*                           | The copy failed its integrity check or cannot be decrypted.                                                                                                                                  |
