Skip to content

Search, filter and export#

The Empowerment Center Audit screen shows the entries from the most recent to the oldest, with filters to find what you are looking for and a detail of each entry with its SQL. What you find can be exported to CSV to open it in a spreadsheet or hand it to whoever asks for it.

Before you start#

You need the System administration privilege. Open Administration › Audit.

The list#

Column What it shows
Date and time When it happened, in your local time.
Category Access, Queries, Workbooks…
Action What was done, with the Failed mark if it did not go well.
User The login, with the channel next to it if it was not in a session (Scheduled task, API…).
Description The entry's sentence.
Connection The connection, if there is one.
Duration How long a query took.

Below the title, a line says how long each category is kept and, if it is turned off, “Queries are not recorded.”.

The list is loaded in pages: press Load more at the end to see the next ones. It does not say how many entries there are in total (counting them in a large table would be slow), and those that arrive while you go through it do not shift it.

Filter#

The filters are buttons at the top. Press one to choose its value; when it has a value it shows it, and its cross removes it. Clear all filters removes them all at once. All the filters go in the page address, so you can save or share a search.

Filter What it does
Dates Today, Last 7 days, Last 30 days or Custom, with From and Until (days in your local time, both included).
User The exact Login, case-insensitive. To search for part of the login, use Contains.
Category One category, or All.
Outcome Successful, Failed or All.
Channel One channel (Session, Scheduled task, Subscription delivery, API…), or All.
Connection One connection, or All.
Contains A Text that is searched for in the object, the description and the SQL.

The Channel filter list also offers Assistant: that of an assistant in the application that ECenter 8.0 no longer has. Only entries from before it was removed carry it, while they are kept; if there are none, choosing it leaves the list empty. The MCP server is Assistant (MCP).

Searching text with “Contains”#

Contains searches for the text anywhere in the object, the description or the SQL, case-insensitive. It needs at least 3 consecutive letters or digits: with fewer, the filter is not applied and it says so below the field. Symbols and spaces do not count: “(?)” or “= ?” search for nothing. That way, with the own database in PostgreSQL, the search uses an index and responds in milliseconds even with millions of entries.

Tip

Search for specific words: the name of a table (PEDIDOS), of a workbook or of a customer. A text that appears in thousands of entries (a word of the SQL that appears in almost every query) may take a few seconds; narrow it down as well with the dates or the user.

With the own database in Oracle#

With the own database in an Oracle schema, Contains has no text index: it goes through the entries from the most recent backwards and looks at the text in each one, until it fills the page or reaches the end of the period. The screen and its rules are the same; what changes is how long it takes.

  • With a “From” (or with Today, Last 7 days or Last 30 days), what is gone through is bounded: it takes as long as the entries in that period require.
  • Without a “From”, a text that appears often responds immediately, because the page fills quickly. A rare one, or one that is not there, forces it to go through the whole audit.

If a search with Contains and without From does not finish in 10 seconds (ecenter.audit.contains-timeout), ECenter cuts it off in the database, where it stops running. Then:

  • The list says “The search was stopped: it was taking too long without a period.”, with the Choose the dates button.
  • Dates opens and, below From, a message asks you to choose from which date to search and try again.

An Until alone is not enough: it says where the search starts, not where it ends. The rule is the same with the own database in PostgreSQL, but there the search uses its index and does not reach that time.

Always set Dates when searching text with Contains, and the shorter the period, the better. The other filters work the same with both engines.

Note

As a guide: in a test with 710,000 entries in an Oracle XE 21c, searching without a period for a text that was in none of them took between 3 and 4 seconds, and with the last day, about 50 milliseconds. The time grows with the number of entries kept (see Retention, purge and SIEM).

Include and exclude from an entry#

Press an entry to open its detail on the right. Next to the user, the connection and the object there are two buttons:

Button What it does
Include Filters by that exact value. For the object, it adds the Object filter.
Exclude Removes from the list the entries with that value. It appears as “User ≠ ana”. You can exclude up to 20 of each kind; with more, the detail asks you to remove one.

An entry without a user, without a connection or without an object is not removed when excluding one: “without comercial.norte” still shows the system's entries.

In the detail, these also have Include:

  • Channel, if the entry has a reference: it adds the Reference filter, which shows everything that scheduled run, that delivery or that credential did.
  • Job: it adds the Job filter, which shows its queries, its denied queries, the list refreshes it did and its end.

Examples#

Question How
Who tried to sign in last night without success? Dates › Custom, Category › Access, Outcome › Failed.
What did ana query on the orders table? User ana, Category › Queries, Contains PEDIDOS.
What did the six o'clock scheduled task do? Open its Scheduled run entry and press Include next to the channel.
Why did that cube take so long? Open the Job entry and press Include next to the job: its queries appear with their duration.
Who changed the production connection? Category › Administration, Connection › the production one.

The detail of an entry#

The detail of a query entry with the SQL, the Copy button and the numbered parameter valuesThe detail of a query entry with the SQL, the Copy button and the numbered parameter values
The detail of a query entry with the SQL, the Copy button and the numbered parameter values

The detail shows the outcome (Successful or Failed), the date, the description and the entry's data: User (with its identifier), Channel, Job, Address, Connection, Object, Rows, Duration and the data specific to its action, with names in words (Identity provider, Inserts, Had it open…). Instants are in your local time.

In a query the SQL section also appears:

  • The statement as it was run, with Copy to take it to the clipboard.
  • Parameter values, numbered in the order of the ? in the SQL. A null value is distinguished from an empty text.

With the SQL and its values you can reproduce the query in the client database to check its figures.

Export to CSV#

  1. Set the filters of what you want to export.
  2. Press Export in the header. Meanwhile it says Exporting….
  3. The browser downloads auditoria-AAAAMMDD-HHMM.csv.

The file contains what the list shows with the same filters, in these columns (their headings are in Spanish): Fecha y hora (date and time), Categoría, Acción, Resultado, Usuario, Conexión, Dirección, Objeto, Descripción, Filas, Duración (ms), SQL, Parámetros (separated by |), Canal, Referencia del canal, Fecha y hora (UTC) and Trabajo.

  • It is separated by ;, with quotes and the UTF-8 mark at the beginning, so that a spreadsheet in Spanish opens it correctly.
  • The date and time are in your time zone; the UTC column is for matching it with the server log, and it does not repeat when the clocks go back in autumn.
  • A text that starts with =, +, -, @, a tab or a carriage return gets an apostrophe in front, so that the spreadsheet does not take it for a formula: anyone can type the login of a failed attempt.
  • At most 100,000 entries are exported (ecenter.audit.export-max-rows). If there are more, the last line says so («Hay más entradas: la exportación se corta en 100000…»): narrow the search (dates, user, category) to see the rest.
  • With Contains and without From, the export follows the list's rule. If its beginning does not finish in time, nothing is downloaded and the screen asks for the period. If it is cut off later, the file has what was read up to there and its last line says it is not complete («La exportación no está entera…»): choose from which date to search and export again.
  • The download can last up to 30 minutes (ecenter.audit.export-timeout). If there is another proxy in front of ECenter's, it must not cut it off before.

See also#