On this page
fxvault Logs stores the logs your FiveM server sends and lets you search them in the panel. It is included in every Media plan, with no separate price, and it works for any FiveM server, hosted with Clouduxe or anywhere else.
Your scripts do not need rewriting. Each one sends logs the way it already does, and you change an address and a key. The guided Setup tab has copy-ready lines for each sender, with your key filled in.
Ways to send logs
| Sender | What changes | Page |
|---|---|---|
ox_lib's logger (ox_inventory, qbx_core and anything on lib.logger) | Three or four convars | ox_lib |
| The fxvault resource | Exports for your own scripts, and automatic server events | The fxvault resource |
| Scripts built on Fivemanage's SDK (fmsdk), and Fivemanage's log API | The resource, or an address and a key | Fivemanage scripts |
| Scripts that post to a Discord webhook | The webhook URL | Discord webhook scripts |
| Anything else that can make an HTTPS request | A key, and a curl test | Plain HTTPS and curl |
Datasets
A dataset is a separate stream of logs, such as default, discord or economy.
Use them to keep different kinds of logs apart and to search one at a time. A
dataset name is lowercase letters and digits, with dots, underscores and hyphens
allowed, up to 64 characters. A log that names no dataset goes to default, or to
the dataset its key is bound to.
Retention per dataset
Owners and admins set how long each dataset keeps its logs, in Settings under Log datasets: 7, 15, 30, 60, 90, 180 or 365 days, never above your plan's days. The panel offers the plan's maximum and each choice below it.
- Shortening hides the older logs from search within the hour, and the nightly delete removes them.
- Choosing more days applies only to logs received from then on. It does not bring back logs that are already hidden.
Deleting a dataset
Owners and admins can delete a dataset. The panel asks you to type its name to confirm.
- The
defaultdataset cannot be deleted. - A dataset that a send key or a webhook URL is bound to cannot be deleted. Revoke that key or URL first.
- Every log the dataset received before the deletion is hidden from search within the hour, and the nightly delete removes them.
- A sender that later writes to the same name starts a new, empty dataset.
Keys
Logs use the same API keys tab as files, with two permissions of their own.
| Permission | Lets the key |
|---|---|
| Send logs | Send logs. This is the one a game server needs. |
| Read logs | Search and read logs. Give it to a script that reads logs, never to a game server. |
- The Game server logs preset makes a key that can only send logs.
- A key can be bound to a dataset. For sending, that is its default dataset. For reading, it is the only dataset the key can search.
- A key can carry a list of allowed IP addresses or CIDR ranges. A change applies within a minute.
- A webhook URL is a key that can only send logs, to one dataset, and only to the webhook address. It is shown once, when you create it, and you can revoke it like any key.
Send the key in the Authorization header, as with files. Revoke one key per script
if it leaks; the others keep working.
What happens to IP addresses and emails
Each dataset has its own settings, which admins change under Settings, in Log datasets. They apply to new logs, before anything is stored.
| Setting | Choices |
|---|---|
| IP addresses | Hashed (the default) or Removed |
| Email addresses | Kept or Removed |
A hashed address becomes ip# followed by 12 hexadecimal characters, made with a key
kept for your team. The same address gives the same token within your team, and a
different one in any other team, so you can still see that two logs came from one
address without the address itself being stored. A hashed address still counts as
personal data, so treat logs as you would any player data. A removed address
becomes [ip], and a removed email address becomes [email]. This covers IP
addresses found in messages, in attribute values and in ip: identifiers.
Who can read logs
Access is set per member.
- Owners and admins always read every dataset.
- Developers can read logs by default.
- Viewers cannot read logs unless an owner or admin gives them access.
- An owner or admin can give a developer or a viewer access to all datasets or to chosen datasets, or switch a developer's or a viewer's access off, from the Team tab. Changing a member's role puts their logs access back to the role's default.
A member without logs access sees "You cannot read logs on this team" and has no Logs tab. A member limited to some datasets can create or change a Read logs key only when it is bound to one of their datasets. Keys they made earlier keep working until an owner or admin revokes them. See Your team.
Searching
Open Logs and type in the search bar, or use the pickers for dataset, level and Add filter.
level:error resource:ox_inventory player:license:abc "gave" -admin amount>1000- Filter by level, resource, server, event and dataset.
- Filter by player with a license, steam, discord or fivem id.
- Search an exact phrase in quotes, words that must appear, and words to leave out with a minus sign.
- Filter by an attribute: equals, does not equal, contains, exists, or a number greater or smaller than a value.
- Pick a time preset, or a custom range in your local time or UTC.
- Results are newest first, 100 at a time. Load older logs shows the next 100.
- Click any value in a result to filter by it.
- Open a row to see the whole log as JSON, and copy it.
- Export the search as a file. See Exporting logs.
The search is kept in the page address, so you can bookmark it or send it to a teammate who can also read logs.
Beyond the search bar there is a chart, top values, a live view, surrounding logs, a player view, columns and saved views. See Chart, live view and saved searches.
Usage
The Logs page shows how much of your log storage is used, and the date of the oldest log you have stored. Members who can read every dataset also see each key's use this month: its logs and bytes, and the last day it sent anything. Use it to find a key that sends more than it should.
Under Settings, Usage alerts, the Discord webhook URL you added for Media also gets a message when log storage reaches 80% and 100%. See Limits and plans.
Exports, alerts, player data and performance
- Exporting logs: download a search, or everything about one player or IP address, as a CSV or NDJSON file.
- Alert rules: a Discord message when a saved view matches enough logs in a few minutes.
- Player data and erasure: erase every log that holds one identifier or IP address.
- Notices and support access: what the owner is told, and support sessions.
- Performance monitor: server frame timings, players and ping, per minute.
Not available yet
Keeping raw IP addresses, alert emails, a profiler that names the resource that is slow, and players' game FPS.
Allowances per plan
| Plan | Stored | Kept for | Sent per day | Sent per month | Rows per export |
|---|---|---|---|---|---|
| Free | 5 GB | 30 days | 1 GB | 10 GB | 10,000 |
| Starter | 20 GB | 60 days | 4 GB | 40 GB | 100,000 |
| Pro | 100 GB | 180 days | 20 GB | 100 GB | 1,000,000 |
| Network | 300 GB | 365 days | 60 GB | 300 GB | 1,000,000 |
Stored counts what is kept. Per day and per month count what is sent. Rows per export is the most rows one export holds. A log is deleted when it is older than its dataset's days, which are the plan's days unless you set fewer. See Limits and plans for what happens at a limit and after a downgrade.