Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Tutorials
Tutorials
Explore in-depth tutorials for operating your VTEX store.
Tutorials
Security
Platform security resources
Audit
Audit
5 min read

To increase transparency and trust among your store admin users, VTEX records different operations, their authors and timestamps in Audit, a module used to query and investigate this history through filters.

To access the Audit page in the VTEX Admin, go to Apps > Installed Apps > Audit, or type Audit in the search bar. On this page, you can do the following:

To view Audit events, you must have a role associated with the Insights Metrics resource.

{"base64":"  ","img":{"width":798,"height":402,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":32013,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/Security/Platform%20security%20resources/audit_1.png"}}

Querying events in Audit

Audit allows you to query events using filters related to the following information: application, date, action, author, and event details. Below, we explain how to use Audit filters and how the results are displayed. We also use practical examples to demonstrate the use of filters.

Filters

Follow the instructions to search for an event using the filters available in Audit:

  1. In the VTEX Admin, go to Apps > Installed Apps > Audit, or type Audit in the search bar. You will be redirected to the Audit Events tab.

  2. In the Application menu under Filters, select the application related to the query.

  3. In the Date menu, choose a predefined date for the query. If you prefer to set the exact date range for the query, select the Custom option and choose the Start and End dates for the query.

    Only records from the last 3 months are stored.

  4. If you wish, add a filter by Action. To do this, in the field next to Action must be, type the name of the action and press Enter. You can enter more than one value by pressing Enter after each selection. Check the name of each action in Events available in Audit.

  5. If necessary, you can add specific filters to search for events more accurately. To do this, click the Add Filter button.

  6. Select the filter parameter (Author or Event Details) and enter the value to which the parameter should be compared.

    When adding filters with the same parameter (for example: Action = Change Promotion Configuration or Change Coupon Configuration), the results include events that match any of the values entered. When adding filters with different parameters (for example: Action = Change Coupon Configuration and Author = email@mail.com), the criteria are combined. Note that you can repeat steps 4 and 5 to add more filters.

    For example, the query in the image below returns results for Change Promotion Configuration or Change Coupon Configuration actions whose author is email@mail.com.

    {"base64":"  ","img":{"width":1226,"height":507,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":31013,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/Security/Platform%20security%20resources/audit_2.png"}}

  7. Click the Apply button to obtain the events found.

    Check the Results section to see how the events are displayed.

The query results correspond exactly to the content entered in the filter field. To avoid unexpected results, make sure you haven't typed extra spaces in the query terms.

If you wish, you can share a query with another user. To do this, click Share Query in the top right-hand corner of the page. The link to the Audit search will be copied to your clipboard.

Results

The Results section lists all events found in the query and displays information about each event, as shown in the table below.

ColumnDescription
CopyButton to copy the event information displayed in the table to the clipboard.
Event TimeDate and time of the event, displayed in the browser or operating system timezone.
ActionAction performed in the selected application for the query. Check the possible actions in the list of events available in Audit.
Event DetailsAdditional information about the event. Check the details displayed for each event in the list of events available in Audit.
AuthorEmail, ID, or token of the user who performed the event.
More DetailsButton that opens a modal with more information about the event, when applicable. The details displayed may include:
  • Entity name: The ID of the entity that was changed.
  • Entity before action: dInformation about the entity before the event, in JSON format.
  • Entity after action: Information about the entity after the event, in JSON format.
Depending on the event, not all the information above is displayed. For example, an event that deleted information only displays the entity before the action. In contrast, an event that added information only displays the entity after the action.

Some events have no additional information. In such cases, the modal is left blank.

Query examples

Below, we've listed some common query scenarios to illustrate how filters should be arranged depending on what you want to query.

Product activation

To query if a product was activated in the Catalog on a given date:

  1. Select the desired date.
  2. In the Application menu, select Catalog (Admin).
  3. Add a filter whose Action must be Product Activation.
  4. Add a filter whose Event Details must be equal to activated product ID "X", where X must be replaced by the ID of the product queried.

Price change

To query whether the price of an SKU changed on a given date:

  1. Select the desired date.
  2. In the Application menu, select Prices.
  3. Add a filter whose Action must be Put Price.
  4. Add a filter whose Event Details must be the SKU ID of the item queried.

Warehouse deletion

To query whether a warehouse was deleted on a given date:

  1. Select the desired date.
  2. In the Application menu, select Inventory & Shipping.
  3. Add a filter whose Action must be Warehouse Delete.
  4. Add a filter whose Event Details must be the ID of the item queried.

Carrier deletion

To query whether a carrier was deleted on a given date:

  1. Select the desired date.
  2. In the Application menu, select Inventory & Shipping.
  3. Add a filter whose Action must be Carrier Delete.
  4. Add a filter whose Event Details must be the ID of the carrier queried.

Viewing the last queries in Audit

Every query made in Audit is saved in the Last queries tab. To redo a query in this tab, click the button corresponding to the query you want to redo.

See below the information available in this tab:

ColumnDescription
Queried onDate and time the query was made in Audit.
ApplicationVTEX application in which the events were queried.
TermsFilters applied to the query.
PeriodStart and end date of the period selected for the query.
Redo QueryButton to redo the query.

The Last queries tab only saves up to 50 queries. If you want to save a query beyond this limit, add it to your browser favorites.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback