> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fraudeg.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Event files

> Upload your alerts, claims, and card status to measure real fraud

An event file **tells** Fraudeg what happened after each transaction: what your system
alerted on, what your customers claimed, and what state your cards are in. With that,
Fraudeg **knows** what was real fraud.

## Why they matter

Without events, Fraudeg only sees transactions. With them, it can:

* Feed **Fraud analysis**, which measures how well your alert system detects fraud. See
  [Dashboards](https://docs.fraudeg.com/en/manual/dashboards.md).
* Compare your alerts with Fraudeg's on the same transactions.
* Measure the fraud that is contained and the fraud that is lost, with the labels each file creates.

## Before you start

| | |
| - | - |
| **Where** | **Historical Tracker › Event files** |
| **To view** | `EVENT_FILE_VIEW` permission |
| **To upload** | `EVENT_FILE_UPLOAD` and `EVENT_FILE_VIEW` permissions |
| **To review and record** | `EVENT_FILE_REVIEW` permission |
| **Plan** | The maximum size depends on your plan, with a cap of 200 MB |
| **Requirements** | Transactions already loaded, so the events have something to link to |

## How it works

After recording, Fraudeg looks for each event's transaction. The ones it doesn't find at first
stay **Waiting** and keep being searched for 14 days.

## Key concepts

| Concept | What it is |
| - | - |
| **Fraud alerts** | The alerts your own system generated |
| **Customer claims** | The claims your customers made about their transactions |
| **Card status** | A snapshot of the state of your cards on a given date |
| **Already known** | Events that were already recorded before. Uploading the same file twice is safe |
| **Held rows** | Rows that couldn't be recorded. You can download them to fix them |

## Upload an event file

**1. Choose the file**

In **Event files**, go to **Upload event files**. Accepted formats are `.csv` and `.xlsx`
(not `.xls`). The Excel preview appears up to 3 MB.

**2. Enter the source (optional)**

In **Source system**, type which system the file comes from. It helps you recognize it
later.

**3. Upload**

Click **Upload file**. The file stays in **Needs review** until you confirm it.

## Review and record

In **Review before we record**, you confirm what the file contains before it counts.

**1. Confirm the type**

In **What kind of events are in this file?**, Fraudeg suggests a type and tells you how many
columns match. Change it if it isn't the right one.

**2. Match your columns**

In **Match your columns**, each row under **We need** asks for a value. Choose **Your column**
and check the **Example**. The **State** tells you whether it is **Matched**, a **Repeated
column**, whether it **Needs a column**, or whether it is **Optional**.

**3. Complete the snapshot (Card status only)**

Enter the **Snapshot date**. Turn on **This file lists every card** if the
file includes all of them, not just the ones that changed.

**4. Record**

Check **Remember this match for next time** if you'll upload files like this one again.
Click **Confirm and record**, or **Cancel this upload**.

## Read the details

| Section | What it tells you |
| - | - |
| **Totals** | **Rows read**, **Events recorded**, **Already known**, and **Held rows** |
| **Link to transactions** | **Linked**, **Waiting**, **Ambiguous**, and **Not found** |
| **Labels created** | **Prevented attempts** and **Realized losses** |

Click **Download held rows** to get a CSV with the rows that didn't make it in.

## When something doesn't add up

| If you see… | Do this |
| - | - |
| A file in **Needs review** | Open it and complete the review |
| A file in **Needs attention** | Open the details, download the held rows, and fix the source |
| **Already received** or **We already had this file** | Do nothing: nothing is duplicated |
| Many **Not found** | Check that you uploaded the transactions for that period |
| Many **Ambiguous** | Match more columns that identify the transaction, so each event points to a single one |
| **The file is empty. Choose a file that has a header and rows.** | Check that the file has a header and data |
| **Too many uploads at once. Wait a moment and try again.** | Wait and upload again |

## Related

> [card] [Dashboards](https://docs.fraudeg.com/en/manual/dashboards.md)
>
> Fraud analysis is calculated from your events.

> [card] [Chargebacks and disputes](https://docs.fraudeg.com/en/casos-de-uso/contracargos-y-disputas.md)
>
> How to use your claims to fight chargebacks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.